Trait synth::note_freq::NoteFreqGenerator [] [src]

pub trait NoteFreqGenerator {
    type NoteFreq: NoteFreq;
    fn generate(&self, note_hz: NoteHz, detune: f32, voice: Option<&Voice<Self::NoteFreq>>) -> Self::NoteFreq;
}

Types designed to modulate the state of a Node.

Associated Types

type NoteFreq: NoteFreq

The note frequency generated by the NoteFreqModulator type.

Required Methods

fn generate(&self, note_hz: NoteHz, detune: f32, voice: Option<&Voice<Self::NoteFreq>>) -> Self::NoteFreq

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

Implementors