mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
switchable monitoring
This commit is contained in:
parent
e30dd94d23
commit
edadfde1a4
5 changed files with 94 additions and 107 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue