pub struct Envelope {
pub attack_ms: u32,
pub decay_ms: u32,
pub sustain: u8,
pub release_ms: u32,
}Expand description
Linear attack, decay and release in milliseconds, and a sustain level in percent. A note’s attack starts from the channel’s current level, so retriggering does not click.
Fields§
§attack_ms: u32§decay_ms: u32§sustain: u80 through 100.
release_ms: u32Trait Implementations§
impl Copy for Envelope
impl Eq for Envelope
impl StructuralPartialEq for Envelope
Auto Trait Implementations§
impl Freeze for Envelope
impl RefUnwindSafe for Envelope
impl Send for Envelope
impl Sync for Envelope
impl Unpin for Envelope
impl UnsafeUnpin for Envelope
impl UnwindSafe for Envelope
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