pub struct SoundDesignParams {Show 13 fields
pub volume_adsr: AdsrEnvelope,
pub pitch_lfo: Lfo,
pub amplitude_lfo: Lfo,
pub pitch_random_range_semitones: f32,
pub volume_random_range_db: f32,
pub start_offset_random_s: f32,
pub pitch_semitones: f32,
pub fine_tune_cents: f32,
pub looping: bool,
pub loop_start_s: f32,
pub loop_end_s: f32,
pub fade_in_s: f32,
pub fade_out_s: f32,
}Fields§
§volume_adsr: AdsrEnvelope§pitch_lfo: Lfo§amplitude_lfo: Lfo§pitch_random_range_semitones: f32§volume_random_range_db: f32§start_offset_random_s: f32§pitch_semitones: f32§fine_tune_cents: f32§looping: bool§loop_start_s: f32§loop_end_s: f32§fade_in_s: f32§fade_out_s: f32Implementations§
Source§impl SoundDesignParams
impl SoundDesignParams
pub fn new() -> Self
pub fn pitch_ratio(&self, random_seed: f32) -> f32
pub fn volume_linear(&self, random_seed: f32) -> f32
Trait Implementations§
Source§impl Clone for SoundDesignParams
impl Clone for SoundDesignParams
Auto Trait Implementations§
impl Freeze for SoundDesignParams
impl RefUnwindSafe for SoundDesignParams
impl Send for SoundDesignParams
impl Sync for SoundDesignParams
impl Unpin for SoundDesignParams
impl UnsafeUnpin for SoundDesignParams
impl UnwindSafe for SoundDesignParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.