bye chain

This commit is contained in:
🪞👃🪞 2024-07-03 18:46:19 +03:00
parent 316fe45b2a
commit 2601592d17
8 changed files with 115 additions and 164 deletions

View file

@ -112,7 +112,7 @@ pub struct App {
pub time_cursor: usize,
}
process!(App |self, client, scope| {
process!(App |self, _client, scope| {
let transport = self.transport.as_ref().unwrap().query().unwrap();
self.playing = Some(transport.state);
self.playhead = transport.pos.frame() as usize;
@ -208,9 +208,6 @@ impl App {
self.scenes.get_mut(id).map(|t|(id, t))
} }
}
pub fn chain (&self) -> Option<&Chain> {
Some(&self.track()?.1.chain)
}
pub fn phrase_id (&self) -> Option<usize> {
let (track_id, _) = self.track()?;
let (_, scene) = self.scene()?;