switchable monitoring

This commit is contained in:
🪞👃🪞 2024-07-02 19:51:50 +03:00
parent e30dd94d23
commit edadfde1a4
5 changed files with 94 additions and 107 deletions

View file

@ -17,7 +17,7 @@ impl Phrase {
Self { name: name.to_string(), length, notes: notes.unwrap_or(BTreeMap::new()) }
}
/** Write a chunk of MIDI events to an output port. */
pub fn chunk_out (
pub fn process_out (
&self,
output: &mut MIDIChunk,
notes_on: &mut Vec<bool>,
@ -56,7 +56,7 @@ impl Phrase {
}
}
/** Read a chunk of MIDI events from an input port. */
pub fn chunk_in (
pub fn process_in (
&mut self,
input: ::jack::MidiIter,
notes_on: &mut Vec<bool>,
@ -111,3 +111,9 @@ impl Phrase {
}
}
impl Default for Phrase {
fn default () -> Self {
Self::new("", 0, None)
}
}