Enum instrument::note_freq::DynamicGenerator [] [src]

pub enum DynamicGenerator {
    Portamento(Portamento),
    Constant,
}

A wrapper for switching between NoteFreqGenerators at runtime.

Variants

Portamento(Portamento)Constant

Methods

impl DynamicGenerator
[src]

fn portamento(samples: Samples) -> DynamicGenerator

Construct a default portamento.

Trait Implementations

impl PartialEq for DynamicGenerator
[src]

fn eq(&self, __arg_0: &DynamicGenerator) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &DynamicGenerator) -> bool

This method tests for !=.

impl Debug for DynamicGenerator
[src]

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

Formats the value using the given formatter.

impl Clone for DynamicGenerator
[src]

fn clone(&self) -> DynamicGenerator

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 DynamicGenerator
[src]

impl NoteFreqGenerator for DynamicGenerator
[src]

type NoteFreq = Dynamic

The note frequency generated by the NoteFreqModulator type.

fn generate(&self, note_hz: NoteHz, detune: f32, maybe_voice: Option<&Voice<Dynamic>>) -> Dynamic

Construct a new note_freq from the note_hz given by a note_event and the last voice that handled a note. Read more