pub struct OscillatorParams {
pub enabled: bool,
pub waveform: f32,
pub frequency: f32,
pub level: f32,
}Expand description
Oscillator parameters.
Fields§
§enabled: boolEnable/disable oscillator output.
waveform: f32Waveform index mapped through Waveform::from_index.
frequency: f32Frequency in Hz. factor = 2.5 gives a logarithmic feel in the UI.
level: f32Output level (0 % – 100 %).
Trait Implementations§
Source§impl Clone for OscillatorParams
impl Clone for OscillatorParams
Source§fn clone(&self) -> OscillatorParams
fn clone(&self) -> OscillatorParams
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 Default for OscillatorParams
impl Default for OscillatorParams
Source§impl ProcessorParams for OscillatorParams
impl ProcessorParams for OscillatorParams
Source§fn param_specs() -> &'static [ParamSpec]
fn param_specs() -> &'static [ParamSpec]
Returns the parameter specifications for this processor.
Source§fn from_param_defaults() -> Self
fn from_param_defaults() -> Self
Builds parameter values initialized from each
ParamSpec::default. Read moreAuto Trait Implementations§
impl Freeze for OscillatorParams
impl RefUnwindSafe for OscillatorParams
impl Send for OscillatorParams
impl Sync for OscillatorParams
impl Unpin for OscillatorParams
impl UnsafeUnpin for OscillatorParams
impl UnwindSafe for OscillatorParams
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