[−][src]Struct bae_rs::modifiers::adsr::ADSR
Attack-decay-sustain-release filter.
Creates a simple envelope for the given signal.
Methods
impl ADSR
[src]
pub fn new(a: Duration, d: Duration, s: MathT, r: Duration) -> Self
[src]
Constructs an ADSR filter object.
Parameters
a
- Attack time.d
- Decay time.s
- Sustain level in decibels. Value is clamped to be less than 0.r
- Release time.
pub fn release(&mut self)
[src]
Changes adsr state to release
Trait Implementations
impl Clone for ADSR
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Modifier for ADSR
[src]
Auto Trait Implementations
impl RefUnwindSafe for ADSR
impl Send for ADSR
impl Sync for ADSR
impl Unpin for ADSR
impl UnwindSafe for ADSR
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,