pub struct EnvelopeState {
pub period: u16,
pub shape: u8,
pub shape_name: &'static str,
pub is_sustaining: bool,
pub frequency_hz: Option<f32>,
}Expand description
Envelope generator state.
Fields§
§period: u16Envelope period from registers (16-bit).
shape: u8Envelope shape (0-15).
shape_name: &'static strHuman-readable shape description.
is_sustaining: boolWhether envelope is in “sustain” mode (shapes 8-15).
frequency_hz: Option<f32>Envelope frequency in Hz (None if period is 0).
Trait Implementations§
Source§impl Clone for EnvelopeState
impl Clone for EnvelopeState
Source§fn clone(&self) -> EnvelopeState
fn clone(&self) -> EnvelopeState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnvelopeState
impl Debug for EnvelopeState
Source§impl Default for EnvelopeState
impl Default for EnvelopeState
Source§fn default() -> EnvelopeState
fn default() -> EnvelopeState
Returns the “default value” for a type. Read more
impl Copy for EnvelopeState
Auto Trait Implementations§
impl Freeze for EnvelopeState
impl RefUnwindSafe for EnvelopeState
impl Send for EnvelopeState
impl Sync for EnvelopeState
impl Unpin for EnvelopeState
impl UnwindSafe for EnvelopeState
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