Struct synthizer::FastSineBankGenerator [−][src]
pub struct FastSineBankGenerator(_);
Implementations
pub fn new(
context: &Context,
initial_frequency: f64,
waves: &[SineBankWave]
) -> Result<FastSineBankGenerator>
pub fn new_square(
context: &Context,
initial_frequency: f64,
partials: u32
) -> Result<FastSineBankGenerator>
pub fn new_triangle(
context: &Context,
initial_frequency: f64,
partials: u32
) -> Result<FastSineBankGenerator>
pub fn new_saw(
context: &Context,
initial_frequency: f64,
partials: u32
) -> Result<FastSineBankGenerator>
Try to cast this object to another object type. Will return
Ok(None)
if this is because of a type mismatch, otherwise Err
.
Clones self
on success in order to prevent throwing the object
away on error.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for FastSineBankGenerator
impl Send for FastSineBankGenerator
impl Sync for FastSineBankGenerator
impl Unpin for FastSineBankGenerator
impl UnwindSafe for FastSineBankGenerator
Blanket Implementations
Mutably borrows from an owned value. Read more