pub struct Ramp { /* private fields */ }Expand description
When input 0 changes, move smoothly to the new value over the time in seconds given by input 1.
Implementations§
Trait Implementations§
Source§impl Gen for Ramp
impl Gen for Ramp
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 Freeze for Ramp
impl RefUnwindSafe for Ramp
impl Send for Ramp
impl Sync for Ramp
impl Unpin for Ramp
impl UnwindSafe for Ramp
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.