pub struct PinkNoise { /* private fields */ }
Expand description
Pink noise
Usually outputs in the +-0.75 range and cannot surpass +-1.0
Computed using the Voss-MacCartney method of stacking white noise in lower and lower octaves. Algorithms from: https://www.firstpr.com.au/dsp/pink-noise/#Filtering
Implementations§
Trait Implementations§
source§impl Gen for PinkNoise
impl Gen for PinkNoise
source§fn process(
&mut self,
ctx: GenContext<'_, '_>,
resources: &mut Resources
) -> GenState
fn process( &mut self, ctx: GenContext<'_, '_>, resources: &mut Resources ) -> GenState
The input and output buffers are both indexed using [in/out_index][sample_index]. Read more
source§fn num_inputs(&self) -> usize
fn num_inputs(&self) -> usize
The number of inputs this
Gen
takes. Determines how big the input buffer is.source§fn num_outputs(&self) -> usize
fn num_outputs(&self) -> usize
The number of outputs this
Gen
produces. Determines how big the output buffer is.source§fn input_desc(&self, input: usize) -> &'static str
fn input_desc(&self, input: usize) -> &'static str
Return a label for a given input channel index. This sets the label in the
Connection
API.source§fn output_desc(&self, output: usize) -> &'static str
fn output_desc(&self, output: usize) -> &'static str
Return a label for a given output channel index. This sets the label in the
Connection
API.Auto Trait Implementations§
impl RefUnwindSafe for PinkNoise
impl Send for PinkNoise
impl Sync for PinkNoise
impl Unpin for PinkNoise
impl UnwindSafe for PinkNoise
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.