wip: 1 more pass, 82e, near there
Some checks are pending
/ build (push) Waiting to run

gotta replace that Measure thing with RwLock<[u16;2]>
This commit is contained in:
okay stopped screaming 2026-03-22 00:00:21 +02:00
parent 60dbd89fc9
commit 9ef63324af
6 changed files with 26 additions and 21 deletions

View file

@ -57,6 +57,10 @@ pub mod view;
use clap::{self, Parser, Subcommand};
use builder_pattern::Builder;
use self::{
arrange::*, clock::*, dialog::*, browse::*, select::*, sequence::*, device::*,
config::*, mode::*, view::*, bind::*
};
extern crate xdg;
pub(crate) use ::xdg::BaseDirectories;
@ -961,14 +965,9 @@ impl Draw<Tui> for App {
}
}
}
impl <T: AsRef<Clock>+AsMut<Clock>> HasClock for T {}
impl <T: AsRef<Sequencer>+AsMut<Sequencer>> HasSequencer for T {}
impl <T: AsRefOpt<MidiEditor>+AsMutOpt<MidiEditor>> HasEditor for T {}
impl <T: NotePoint+TimePoint> MidiPoint for T {}
impl <T: TimeRange+NoteRange> MidiRange for T {}
impl HasClipsSize for App { fn clips_size (&self) -> &Measure<Tui> { &self.project.size_inner } }
impl HasJack<'static> for App { fn jack (&self) -> &Jack<'static> { &self.jack } }
impl_default!(AppCommand: Self::Nop);
impl_default!(AppCommand: Self::Nop);
primitive!(u8: try_to_u8);
primitive!(u16: try_to_u16);
primitive!(usize: try_to_usize);