mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
fix randomizing clip color in arrangement
This commit is contained in:
parent
e4a51c80eb
commit
1d8b5d75b9
3 changed files with 15 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue