mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
wip: focus refactor, e40
This commit is contained in:
parent
94a16b9dbc
commit
364769a2e0
10 changed files with 198 additions and 279 deletions
|
|
@ -72,45 +72,45 @@ macro_rules! impl_midi_player {
|
|||
}
|
||||
impl MidiInputApi for $Struct {
|
||||
fn midi_ins (&self) -> &Vec<Port<jack::MidiIn>> {
|
||||
todo!("midi_ins")
|
||||
&self$(.$field)*.midi_ins
|
||||
}
|
||||
fn midi_ins_mut (&self) -> &mut Vec<Port<jack::MidiIn>> {
|
||||
todo!("midi_ins_mut")
|
||||
fn midi_ins_mut (&mut self) -> &mut Vec<Port<jack::MidiIn>> {
|
||||
&mut self$(.$field)*.midi_ins
|
||||
}
|
||||
fn recording (&self) -> bool {
|
||||
todo!("recording")
|
||||
self$(.$field)*.recording
|
||||
}
|
||||
fn recording_mut (&mut self) -> &mut bool {
|
||||
todo!("recording_mut")
|
||||
&mut self$(.$field)*.recording
|
||||
}
|
||||
fn monitoring (&self) -> bool {
|
||||
todo!("monitoring")
|
||||
self$(.$field)*.monitoring
|
||||
}
|
||||
fn monitoring_mut (&mut self) -> &mut bool {
|
||||
todo!("monitoring_mut")
|
||||
&mut self$(.$field)*.monitoring
|
||||
}
|
||||
fn overdub (&self) -> bool {
|
||||
todo!("overdub")
|
||||
self$(.$field)*.overdub
|
||||
}
|
||||
fn overdub_mut (&mut self) -> &mut bool {
|
||||
todo!("overdub_mut")
|
||||
&mut self$(.$field)*.overdub
|
||||
}
|
||||
fn notes_in (&self) -> &Arc<RwLock<[bool; 128]>> {
|
||||
todo!("notes_in")
|
||||
&self$(.$field)*.notes_in
|
||||
}
|
||||
}
|
||||
impl MidiOutputApi for $Struct {
|
||||
fn midi_outs (&self) -> &Vec<Port<jack::MidiOut>> {
|
||||
todo!("midi_outs")
|
||||
&self$(.$field)*.midi_outs
|
||||
}
|
||||
fn midi_outs_mut (&mut self) -> &mut Vec<Port<jack::MidiOut>> {
|
||||
todo!("midi_outs_mut")
|
||||
&mut self$(.$field)*.midi_outs
|
||||
}
|
||||
fn midi_note (&mut self) -> &mut Vec<u8> {
|
||||
todo!("midi_note")
|
||||
&mut self$(.$field)*.note_buf
|
||||
}
|
||||
fn notes_out (&self) -> &Arc<RwLock<[bool; 128]>> {
|
||||
todo!("notes_out")
|
||||
&self$(.$field)*.notes_in
|
||||
}
|
||||
}
|
||||
impl MidiPlayerApi for $Struct {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue