mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
simplify main process callback
This commit is contained in:
parent
9d46cb7619
commit
47b2c5da29
3 changed files with 77 additions and 64 deletions
|
|
@ -59,6 +59,13 @@ impl Track {
|
|||
None
|
||||
}
|
||||
}
|
||||
pub fn phrase_mut (&mut self) -> Option<&mut Phrase> {
|
||||
if let Some(phrase) = self.sequence {
|
||||
return self.phrases.get_mut(phrase)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ports!(Track {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue