Struct instrument::note_freq::Portamento [] [src]

pub struct Portamento(pub Samples);

A PortamentoNote generator that applies a glissando for the given number of samples.

Trait Implementations

impl PartialEq for Portamento
[src]

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

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

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

This method tests for !=.

impl Debug for Portamento
[src]

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

Formats the value using the given formatter.

impl Clone for Portamento
[src]

fn clone(&self) -> Portamento

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

impl NoteFreqGenerator for Portamento
[src]

type NoteFreq = PortamentoFreq

The note frequency generated by the NoteFreqModulator type.

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

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