pub struct Props<KD: SigT<Item = bool>, KP: SigT<Item = bool>, A: SigT<Item = f32>, D: SigT<Item = f32>, S: SigT<Item = f32>, R: SigT<Item = f32>> { /* private fields */ }Implementations§
Source§impl<KD: SigT<Item = bool>, KP: SigT<Item = bool>, A: SigT<Item = f32>, D: SigT<Item = f32>, S: SigT<Item = f32>, R: SigT<Item = f32>> Props<KD, KP, A, D, S, R>
impl<KD: SigT<Item = bool>, KP: SigT<Item = bool>, A: SigT<Item = f32>, D: SigT<Item = f32>, S: SigT<Item = f32>, R: SigT<Item = f32>> Props<KD, KP, A, D, S, R>
pub fn new(key_down_gate: KD) -> Props<KD, bool, f32, f32, f32, f32>
pub fn key_press_trig<X>(self, key_press_trig: X) -> Props<KD, X, A, D, S, R>
pub fn attack_s<X>(self, attack_s: X) -> Props<KD, KP, X, D, S, R>
pub fn decay_s<X>(self, decay_s: X) -> Props<KD, KP, A, X, S, R>
pub fn sustain_01<X>(self, sustain_01: X) -> Props<KD, KP, A, D, X, R>
pub fn release_s<X>(self, release_s: X) -> Props<KD, KP, A, D, S, X>
pub fn build(self) -> Sig<AdsrLinear01<KD, KP, A, D, S, R>>
Auto Trait Implementations§
impl<KD, KP, A, D, S, R> Freeze for Props<KD, KP, A, D, S, R>
impl<KD, KP, A, D, S, R> RefUnwindSafe for Props<KD, KP, A, D, S, R>where
KD: RefUnwindSafe,
KP: RefUnwindSafe,
A: RefUnwindSafe,
D: RefUnwindSafe,
S: RefUnwindSafe,
R: RefUnwindSafe,
impl<KD, KP, A, D, S, R> Send for Props<KD, KP, A, D, S, R>
impl<KD, KP, A, D, S, R> Sync for Props<KD, KP, A, D, S, R>
impl<KD, KP, A, D, S, R> Unpin for Props<KD, KP, A, D, S, R>
impl<KD, KP, A, D, S, R> UnwindSafe for Props<KD, KP, A, D, S, R>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more