wip: p.54, e=85

This commit is contained in:
🪞👃🪞 2024-11-18 16:51:43 +01:00
parent 76af9d9bac
commit 54fb5b6ece
9 changed files with 629 additions and 571 deletions

View file

@ -20,25 +20,37 @@ pub trait TransportControl {
impl TransportControl for TransportTui {
fn bpm (&self) -> &BeatsPerMinute {
self.bpm()
&self.current.timebase.bpm
}
fn quant (&self) -> &Quantize {
self.quant()
&self.quant
}
fn sync (&self) -> &LaunchSync {
self.sync()
&self.sync
}
}
impl TransportControl for SequencerTui {
fn bpm (&self) -> &BeatsPerMinute {
self.bpm()
&self.current.timebase.bpm
}
fn quant (&self) -> &Quantize {
self.quant()
&self.quant
}
fn sync (&self) -> &LaunchSync {
self.sync()
&self.sync
}
}
impl TransportControl for ArrangerTui {
fn bpm (&self) -> &BeatsPerMinute {
&self.current.timebase.bpm
}
fn quant (&self) -> &Quantize {
&self.quant
}
fn sync (&self) -> &LaunchSync {
&self.sync
}
}