pub struct LfoState {
pub phase: f64,
pub value: f64,
pub hold_counter: usize,
pub rng_state: u64,
pub last_time: f64,
}Expand description
Runtime state of an LFO automaton.
Tracks the current phase, output value, random state, and timing.
Fields§
§phase: f64Current phase in radians.
value: f64Current output value.
hold_counter: usizeSamples remaining in hold phase (for sample-and-hold / stepped waveforms).
rng_state: u64Internal RNG state for randomised waveforms.
last_time: f64Timestamp of the last update (seconds).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LfoState
impl RefUnwindSafe for LfoState
impl Send for LfoState
impl Sync for LfoState
impl Unpin for LfoState
impl UnsafeUnpin for LfoState
impl UnwindSafe for LfoState
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