Struct instrument::note_freq::PortamentoFreq [] [src]

pub struct PortamentoFreq {
    pub current_sample: Samples,
    pub target_samples: Samples,
    pub start_mel: Mel,
    pub target_mel: Mel,
}

A note that interpolates between to given frequencies over the given duration.

Fields

current_sample: Samples target_samples: Samples start_mel: Mel target_mel: Mel

Trait Implementations

impl PartialEq for PortamentoFreq
[src]

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

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

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

This method tests for !=.

impl Debug for PortamentoFreq
[src]

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

Formats the value using the given formatter.

impl Clone for PortamentoFreq
[src]

fn clone(&self) -> PortamentoFreq

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

impl NoteFreq for PortamentoFreq
[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.