Enum synth::dynamic::Mode
[−]
[src]
pub enum Mode { 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 Mode for Dynamic
[src]
fn note_on<NFG>(
&mut self,
note_hz: f32,
note_vel: f32,
detune: f32,
note_freq_gen: &NFG,
voices: &mut [Voice<<NFG as NoteFreqGenerator>::NoteFreq>]
) where
NFG: NoteFreqGenerator,
&mut self,
note_hz: f32,
note_vel: f32,
detune: f32,
note_freq_gen: &NFG,
voices: &mut [Voice<<NFG as NoteFreqGenerator>::NoteFreq>]
) where
NFG: NoteFreqGenerator,
Handle a note_on event.
fn note_off<NFG>(
&mut self,
note_hz: f32,
detune: f32,
note_freq_gen: &NFG,
voices: &mut [Voice<<NFG as NoteFreqGenerator>::NoteFreq>]
) where
NFG: NoteFreqGenerator,
&mut self,
note_hz: f32,
detune: f32,
note_freq_gen: &NFG,
voices: &mut [Voice<<NFG as NoteFreqGenerator>::NoteFreq>]
) where
NFG: NoteFreqGenerator,
Handle a note_off
event.
fn stop(&mut self)
Handle a stop
event.
impl PartialEq<Dynamic> 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 Debug for Dynamic
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
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