[][src]Trait bae_rs::generators::FreqMod

pub trait FreqMod {
    fn new(f: MathT) -> Self;
fn set_frequency(&mut self, f: MathT);
fn get_frequency(&self) -> MathT; }

Frequency Moderator. This trait defines types who take in a frequency as a primary argument.

Required methods

fn new(f: MathT) -> Self

Creates a new object for the given frequency.

Parameters

  • f - The frequency for the new object

fn set_frequency(&mut self, f: MathT)

Sets the frequency of the given object.

Parameters

  • f - The new frequency.

fn get_frequency(&self) -> MathT

Gets the current frequency of the given object.

Loading content...

Implementors

impl FreqMod for Sawtooth[src]

impl FreqMod for Sine[src]

impl FreqMod for Square[src]

impl FreqMod for Triangle[src]

Loading content...