Enum instrument::mode::Dynamic
[−]
[src]
pub enum Dynamic { Mono(Mono), Poly(Poly), }
The mode in which the Synth will handle notes.
Variants
Mono(Mono)
Single voice (normal or legato) with a stack of fallback notes.
Poly(Poly)
Multiple voices.
Methods
impl Dynamic
[src]
fn retrigger() -> Dynamic
Construct a default Retrigger mono mode.
fn legato() -> Dynamic
Construct a default Legato mono mode.
fn poly() -> Dynamic
Construct a default Poly mode.
Trait Implementations
impl Clone for Dynamic
[src]
fn clone(&self) -> Dynamic
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Dynamic
[src]
impl PartialEq for Dynamic
[src]
fn eq(&self, __arg_0: &Dynamic) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Dynamic) -> bool
This method tests for !=
.
impl Mode for Dynamic
[src]
fn note_on<NFG>(
&mut self,
note_hz: NoteHz,
note_vel: NoteVelocity,
detune: f32,
note_freq_gen: &NFG,
voices: &mut [Voice<NFG::NoteFreq>]
) where
NFG: NoteFreqGenerator,
&mut self,
note_hz: NoteHz,
note_vel: NoteVelocity,
detune: f32,
note_freq_gen: &NFG,
voices: &mut [Voice<NFG::NoteFreq>]
) where
NFG: NoteFreqGenerator,
Handle a note_on event.
fn note_off<NFG>(
&mut self,
note_hz: NoteHz,
detune: f32,
note_freq_gen: &NFG,
voices: &mut [Voice<NFG::NoteFreq>]
) where
NFG: NoteFreqGenerator,
&mut self,
note_hz: NoteHz,
detune: f32,
note_freq_gen: &NFG,
voices: &mut [Voice<NFG::NoteFreq>]
) where
NFG: NoteFreqGenerator,
Handle a note_off
event.
fn stop(&mut self)
Handle a stop
event.