Struct web_audio_api::node::OscillatorOptions
source · pub struct OscillatorOptions {
pub type_: OscillatorType,
pub frequency: f32,
pub detune: f32,
pub periodic_wave: Option<PeriodicWave>,
pub channel_config: ChannelConfigOptions,
}Expand description
Options for constructing an OscillatorNode
Fields§
§type_: OscillatorTypeThe shape of the periodic waveform
frequency: f32The frequency of the fundamental frequency.
detune: f32A detuning value (in cents) which will offset the frequency by the given amount.
periodic_wave: Option<PeriodicWave>Optionnal custom waveform, if specified (set type to “custom”)
channel_config: ChannelConfigOptionschannel config options
Trait Implementations§
source§impl Clone for OscillatorOptions
impl Clone for OscillatorOptions
source§fn clone(&self) -> OscillatorOptions
fn clone(&self) -> OscillatorOptions
Returns a copy 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 more