mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-03-13 11:50:44 +01:00
parent
cb989baf83
commit
b6559fc904
7 changed files with 2459 additions and 2416 deletions
|
|
@ -545,14 +545,16 @@ pub trait HasPlayClip: HasClock {
|
|||
}
|
||||
|
||||
pub trait MidiMonitor: HasMidiIns + HasMidiBuffers {
|
||||
/// Input note flags.
|
||||
fn notes_in (&self) -> &Arc<RwLock<[bool;128]>>;
|
||||
/// Current monitoring status.
|
||||
fn monitoring (&self) -> bool;
|
||||
/// Mutable monitoring status.
|
||||
fn monitoring_mut (&mut self) -> &mut bool;
|
||||
fn toggle_monitor (&mut self) {
|
||||
*self.monitoring_mut() = !self.monitoring();
|
||||
}
|
||||
fn monitor (&mut self, scope: &ProcessScope) {
|
||||
}
|
||||
/// Enable or disable monitoring.
|
||||
fn toggle_monitor (&mut self) { *self.monitoring_mut() = !self.monitoring(); }
|
||||
/// Perform monitoring.
|
||||
fn monitor (&mut self, _scope: &ProcessScope) { /* do nothing by default */ }
|
||||
}
|
||||
|
||||
pub trait MidiRecord: MidiMonitor + HasClock + HasPlayClip {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue