Enum synth::mode::MonoKind [] [src]

pub enum MonoKind {
    Retrigger,
    Legato,
}

The state of monophony.

Variants

Retrigger

New notes will reset the voice's playheads

Legato

If a note is already playing, new notes will not reset the voice's playheads. A stack of notes is kept - if a NoteOff occurs on the current note, it is replaced with the note at the top of the stack if there is one. The stacked notes are reset if the voice becomes inactive.

Trait Implementations

impl Encodable for MonoKind
[src]

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

impl Decodable for MonoKind
[src]

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

impl Debug for MonoKind
[src]

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

Formats the value using the given formatter.

impl Clone for MonoKind
[src]

fn clone(&self) -> MonoKind

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 Copy for MonoKind
[src]