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
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
impl NoteFreqGenerator for ()
impl NoteFreqGenerator for Portamento
impl NoteFreqGenerator for DynamicGenerator