pub struct TestToneProcessorParams {
pub enabled: bool,
pub frequency: f32,
pub level: f32,
}Expand description
Test tone processor parameters.
Fields§
§enabled: boolEnable/disable test tone generation.
frequency: f32Frequency in Hz. factor = 2.5 gives a logarithmic feel in the UI.
level: f32Output level as normalized amplitude (0.0 – 1.0).
Trait Implementations§
Source§impl Clone for TestToneProcessorParams
impl Clone for TestToneProcessorParams
Source§fn clone(&self) -> TestToneProcessorParams
fn clone(&self) -> TestToneProcessorParams
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 TestToneProcessorParams
impl Default for TestToneProcessorParams
Source§impl ProcessorParams for TestToneProcessorParams
impl ProcessorParams for TestToneProcessorParams
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 moreSource§fn apply_plain_values(&mut self, values: &[f32])
fn apply_plain_values(&mut self, values: &[f32])
Applies plain parameter values in
param_specs() order. Read moreSource§fn plain_value_count() -> usize
fn plain_value_count() -> usize
Returns how many plain values
Self::apply_plain_values expects. Read moreAuto Trait Implementations§
impl Freeze for TestToneProcessorParams
impl RefUnwindSafe for TestToneProcessorParams
impl Send for TestToneProcessorParams
impl Sync for TestToneProcessorParams
impl Unpin for TestToneProcessorParams
impl UnsafeUnpin for TestToneProcessorParams
impl UnwindSafe for TestToneProcessorParams
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