Enum oxcable_basic_devices::adsr::Message [] [src]

pub enum Message {
    NoteDown,
    NoteUp,
    SetAttack(f32),
    SetDecay(f32),
    SetSustain(f32),
    SetRelease(f32),
}

Defines the messages that the ADSR supports.

Variants

NoteDown

Triggers an attack.

NoteUp

Triggers a release.

SetAttack

Sets the attack time, in seconds.

SetDecay

Sets the decay time, in seconds.

SetSustain

Sets the sustain amplitude.

SetRelease

Sets the relase time, in seconds.

Trait Implementations

Derived Implementations

impl Debug for Message

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

impl Copy for Message

impl Clone for Message

fn clone(&self) -> Message

fn clone_from(&mut self, source: &Self)