transport -> clock

This commit is contained in:
🪞👃🪞 2025-01-02 13:04:57 +01:00
parent 7f57465b3a
commit 7a4fa1692b
15 changed files with 37 additions and 36 deletions

View file

@ -11,7 +11,7 @@ mod arranger_h;
/// Root view for standalone `tek_arranger`
pub struct ArrangerTui {
jack: Arc<RwLock<JackConnection>>,
pub clock: ClockModel,
pub clock: Clock,
pub phrases: PoolModel,
pub tracks: Vec<ArrangerTrack>,
pub scenes: Vec<ArrangerScene>,
@ -69,7 +69,7 @@ impl ArrangerTui {
}
}
from_jack!(|jack| ArrangerTui {
let clock = ClockModel::from(jack);
let clock = Clock::from(jack);
let phrase = Arc::new(RwLock::new(MidiClip::new(
"New", true, 4 * clock.timebase.ppq.get() as usize,
None, Some(ItemColor::random().into())