Skip to main content

ExpRamp

Struct ExpRamp 

Source
pub struct ExpRamp<const BUFSIZE: usize> { /* private fields */ }
Expand description

Exponential Ramp

Implementations§

Source§

impl<const BUFSIZE: usize> ExpRamp<BUFSIZE>

Source

pub fn new(from: f32, to: f32, ramp_time: f32, samplerate: f32) -> Self

Trait Implementations§

Source§

impl<const BUFSIZE: usize> Clone for ExpRamp<BUFSIZE>

Source§

fn clone(&self) -> ExpRamp<BUFSIZE>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const BUFSIZE: usize> Copy for ExpRamp<BUFSIZE>

Source§

impl<const BUFSIZE: usize> MonoSource<BUFSIZE> for ExpRamp<BUFSIZE>

Source§

fn reset(&mut self)

Source§

fn finish(&mut self)

Source§

fn is_finished(&self) -> bool

Source§

fn set_modulator( &mut self, _: SynthParameterLabel, _: f32, _: Modulator<BUFSIZE>, )

Source§

fn set_parameter(&mut self, _: SynthParameterLabel, _: &SynthParameterValue)

Source§

fn get_next_block( &mut self, start_sample: usize, _: &[SampleBuffer], ) -> [f32; BUFSIZE]

Source§

fn set_param_or_modulator( &mut self, par: SynthParameterLabel, val_or_mod: ValueOrModulator<BUFSIZE>, )

default impl so we have a common interface …
Source§

fn get_next_block_with_input( &mut self, start_sample: usize, _input: &[f32; BUFSIZE], in_buffers: &[SampleBuffer], ) -> [f32; BUFSIZE]

Auto Trait Implementations§

§

impl<const BUFSIZE: usize> Freeze for ExpRamp<BUFSIZE>

§

impl<const BUFSIZE: usize> RefUnwindSafe for ExpRamp<BUFSIZE>

§

impl<const BUFSIZE: usize> Send for ExpRamp<BUFSIZE>

§

impl<const BUFSIZE: usize> Sync for ExpRamp<BUFSIZE>

§

impl<const BUFSIZE: usize> Unpin for ExpRamp<BUFSIZE>

§

impl<const BUFSIZE: usize> UnsafeUnpin for ExpRamp<BUFSIZE>

§

impl<const BUFSIZE: usize> UnwindSafe for ExpRamp<BUFSIZE>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<const BUFSIZE: usize, T> MonoSourceClone<BUFSIZE> for T
where T: 'static + MonoSource<BUFSIZE> + Clone + Send + Sync,

Source§

fn clone_box(&self) -> Box<dyn MonoSource<BUFSIZE> + Send + Sync>

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.