Enum instrument::note_freq::Dynamic [] [src]

pub enum Dynamic {
    Portamento(PortamentoFreq),
    Constant(Hz),
}

A warpper for switching between different NoteFreqs at runtime.

Variants

Portamento(PortamentoFreq)Constant(Hz)

Trait Implementations

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

impl NoteFreq for Dynamic
[src]

fn hz(&self) -> Hz

Get the current Hz from the NoteFreq.

fn next_hz(&mut self) -> Hz

Calls NoteFreq::hz and then steps forward Self by one frame.