[][src]Struct bae_rs::modifiers::adsr::ADSR

pub struct ADSR { /* fields omitted */ }

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,