Enum synth::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 Encodable for Dynamic
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Decodable for Dynamic
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Dynamic, __D::Error>

impl Debug for Dynamic
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

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

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

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

Handle a note_off event.

fn stop(&mut self)

Handle a stop event.