pub struct ToneParams {
pub x: f32,
pub y: f32,
pub z: f32,
pub w: f32,
pub freq: f32,
pub amp: f32,
pub lfo_rate: f32,
pub lfo_depth: f32,
}Expand description
Parameters for one positional tone.
Fields§
§x: f32World-space position of the sound source.
y: f32§z: f32§w: f324th-dimension value: drives a sub-oscillator at freq * w * 0.007 Hz
that cross-modulates the main carrier (0 → no 4D effect).
freq: f32Carrier frequency in Hz.
amp: f32Linear amplitude (0..1 recommended).
lfo_rate: f32LFO rate in Hz (vibrato speed).
lfo_depth: f32LFO depth as a fraction of freq (0.03 = ±3 % pitch wobble).
Trait Implementations§
Source§impl Clone for ToneParams
impl Clone for ToneParams
Source§fn clone(&self) -> ToneParams
fn clone(&self) -> ToneParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToneParams
impl Debug for ToneParams
Auto Trait Implementations§
impl Freeze for ToneParams
impl RefUnwindSafe for ToneParams
impl Send for ToneParams
impl Sync for ToneParams
impl Unpin for ToneParams
impl UnsafeUnpin for ToneParams
impl UnwindSafe for ToneParams
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