fix randomizing clip color in arrangement

This commit is contained in:
🪞👃🪞 2024-10-18 19:04:45 +03:00
parent e4a51c80eb
commit 1d8b5d75b9
3 changed files with 15 additions and 4 deletions

View file

@ -274,7 +274,16 @@ impl<E: Engine> Arrangement<E> {
},
_ => todo!("arrangement: move forward")
}
}
pub fn randomize_color (&mut self) {
match self.selected {
ArrangementFocus::Mix => {},
ArrangementFocus::Track(t) => { todo!("randomize track color") },
ArrangementFocus::Scene(s) => { todo!("randomize scene color") },
ArrangementFocus::Clip(t, s) => if let Some(phrase) = &self.scenes[s].clips[t] {
phrase.write().unwrap().color = random_color();
}
}
}
}
/// Methods for tracks in arrangement