mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 21:26:43 +01:00
extract _cmd modules
This commit is contained in:
parent
e20f195c20
commit
60c129d868
7 changed files with 270 additions and 267 deletions
|
|
@ -10,9 +10,9 @@ pub(crate) use palette::{*, convert::*, okhsl::*};
|
|||
use rand::distributions::uniform::UniformSampler;
|
||||
|
||||
submod! {
|
||||
arranger arranger_tui
|
||||
sequencer sequencer_tui
|
||||
transport transport_tui
|
||||
arranger arranger_cmd arranger_tui
|
||||
sequencer sequencer_cmd sequencer_tui
|
||||
transport transport_cmd transport_tui
|
||||
}
|
||||
|
||||
pub const PPQ: usize = 96;
|
||||
|
|
@ -39,8 +39,8 @@ tui_style!(STYLE_VALUE =
|
|||
pub fn random_okhsl () -> Okhsl<f32> {
|
||||
let mut rng = thread_rng();
|
||||
UniformOkhsl::new(
|
||||
Okhsl::new(-180.0, 0.05, 0.1),
|
||||
Okhsl::new( 180.0, 0.9, 0.5),
|
||||
Okhsl::new(-180.0, 0.01, 0.05),
|
||||
Okhsl::new( 180.0, 0.9, 0.5),
|
||||
).sample(&mut rng)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue