[−][src]Struct oscen::envelopes::Adsr
Implementations
impl Adsr
[src]
pub fn new(a_param: Real, d_param: Real, r_param: Real) -> Self
[src]
pub fn linear() -> Self
[src]
pub fn exp_20() -> Self
[src]
pub fn attack<T: Into<In>>(&mut self, arg: T) -> &mut Self
[src]
pub fn decay<T: Into<In>>(&mut self, arg: T) -> &mut Self
[src]
pub fn sustain<T: Into<In>>(&mut self, arg: T) -> &mut Self
[src]
pub fn release<T: Into<In>>(&mut self, arg: T) -> &mut Self
[src]
pub fn calc_level(&mut self, rack: &Rack) -> Real
[src]
pub fn on(&mut self)
[src]
pub fn off(&mut self)
[src]
Trait Implementations
impl Builder for Adsr
[src]
fn build(&mut self) -> Self where
Self: Sized + Clone,
[src]
Self: Sized + Clone,
fn wrap(&mut self) -> ArcMutex<Self> where
Self: Sized + Clone,
[src]
Self: Sized + Clone,
fn rack(&mut self, rack: &mut Rack) -> ArcMutex<Self> where
Self: Signal + Send + Sized + Clone,
[src]
Self: Signal + Send + Sized + Clone,
fn rack_pre(&mut self, rack: &mut Rack) -> ArcMutex<Self> where
Self: Signal + Send + Sized + Clone,
[src]
Self: Signal + Send + Sized + Clone,
impl Clone for Adsr
[src]
impl Copy for Adsr
[src]
impl Gate for Adsr
[src]
impl<'_> Index<&'_ str> for Adsr
[src]
type Output = In
The returned type after indexing.
fn index(&self, index: &str) -> &Self::Output
[src]
impl<'_> IndexMut<&'_ str> for Adsr
[src]
impl Signal 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>,