Struct web_audio_api::node::OscillatorNode [−][src]
pub struct OscillatorNode { /* fields omitted */ }
Expand description
Audio source generating a periodic waveform
Implementations
Returns the frequency audio parameter The oscillator frequency is calculated as follow: frequency * 2^(detune/1200)
Returns the detune audio parameter. detune unity is cents. The oscillator frequency is calculated as follow: frequency * 2^(detune/1200)
Returns the oscillator type
set the oscillator type to custom and generate
a perdioc waveform following the PeriodicWave
characteristics
Trait Implementations
OscillatorNode
is a source node. A source node is by definition with no input
OscillatorNode
is a mono source node.
The BaseAudioContext which owns this AudioNode.
Connect the output of this AudioNode to the input of another node.
fn connect_at<'a>(
&self,
dest: &'a dyn AudioNode,
output: u32,
input: u32
) -> Result<&'a dyn AudioNode, IndexSizeError>
fn connect_at<'a>(
&self,
dest: &'a dyn AudioNode,
output: u32,
input: u32
) -> Result<&'a dyn AudioNode, IndexSizeError>
Connect a specific output of this AudioNode to a specific input of another node.
Disconnects all outputs of the AudioNode that go to a specific destination AudioNode.
Disconnects all outgoing connections from the AudioNode.
Represents an enumerated value describing the way channels must be matched between the node’s inputs and outputs. Read more
Represents an enumerated value describing the meaning of the channels. This interpretation will define how audio up-mixing and down-mixing will happen. Read more
Represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node. Read more