mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
implement phrase_get
This commit is contained in:
parent
cae8556c91
commit
efdc135cae
1 changed files with 6 additions and 1 deletions
|
|
@ -300,7 +300,12 @@ impl<E: Engine> Arrangement<E> {
|
||||||
}
|
}
|
||||||
pub fn phrase_get (&mut self) {
|
pub fn phrase_get (&mut self) {
|
||||||
if let ArrangementFocus::Clip(track, scene) = self.selected {
|
if let ArrangementFocus::Clip(track, scene) = self.selected {
|
||||||
todo!("phrase_get")
|
if let Some(phrase) = &self.scenes[scene].clips[track] {
|
||||||
|
let mut phrases = self.phrases.write().unwrap();
|
||||||
|
if let Some(index) = phrases.index_of(&*phrase.read().unwrap()) {
|
||||||
|
phrases.phrase = index;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn phrase_next (&mut self) {
|
pub fn phrase_next (&mut self) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue