pub struct ChirpParams {
pub start_freq_hz: f32,
pub end_freq_hz: f32,
pub duration_ms: u32,
pub volume: f32,
pub attack_ratio: f32,
pub decay_ratio: f32,
pub harmonics: Vec<f32>,
pub vibrato_rate_hz: f32,
pub vibrato_depth: f32,
}Fields§
§start_freq_hz: f32§end_freq_hz: f32§duration_ms: u32§volume: f32§attack_ratio: f32§decay_ratio: f32§harmonics: Vec<f32>§vibrato_rate_hz: f32§vibrato_depth: f32Implementations§
Source§impl ChirpParams
impl ChirpParams
pub fn new() -> Self
pub fn start_freq(self, hz: f32) -> Self
pub fn end_freq(self, hz: f32) -> Self
pub fn duration(self, ms: u32) -> Self
pub fn volume(self, v: f32) -> Self
pub fn attack(self, ratio: f32) -> Self
pub fn decay(self, ratio: f32) -> Self
pub fn harmonics(self, harms: Vec<f32>) -> Self
pub fn vibrato(self, rate_hz: f32, depth: f32) -> Self
Trait Implementations§
Source§impl Clone for ChirpParams
impl Clone for ChirpParams
Source§fn clone(&self) -> ChirpParams
fn clone(&self) -> ChirpParams
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 ChirpParams
impl Debug for ChirpParams
Auto Trait Implementations§
impl Freeze for ChirpParams
impl RefUnwindSafe for ChirpParams
impl Send for ChirpParams
impl Sync for ChirpParams
impl Unpin for ChirpParams
impl UnsafeUnpin for ChirpParams
impl UnwindSafe for ChirpParams
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