extract _cmd modules

This commit is contained in:
🪞👃🪞 2024-10-11 21:00:51 +03:00
parent e20f195c20
commit 60c129d868
7 changed files with 270 additions and 267 deletions

View file

@ -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)
}