Module web_audio_api::node
source · Expand description
The AudioNode interface and concrete types
Structs§
AnalyserNode
represents a node able to provide real-time frequency and time-domain analysis information.- Options for constructing an
AnalyserNode
AudioBufferSourceNode
represents an audio source that consists of an in-memory audio source (i.e. an audio file completely loaded in memory), stored in anAudioBuffer
.- Options for constructing an
AudioBufferSourceNode
- The AudioDestinationNode interface represents the terminal node of an audio graph in a given context. usually the speakers of your device, or the node that will “record” the audio data with an OfflineAudioContext.
- Options that can be used in constructing all AudioNodes.
- BiquadFilterNode is an AudioNode processor implementing very common low-order IIR filters.
- Options for constructing a
BiquadFilterNode
- Config for up/down-mixing of input channels for audio nodes
- AudioNode for combining channels from multiple audio streams into a single audio stream.
- Options for constructing a
ChannelMergerNode
- AudioNode for accessing the individual channels of an audio stream in the routing graph
- Options for constructing a
ChannelSplitterNode
- Audio source whose output is nominally a constant value. A
ConstantSourceNode
can be used as a constructibleAudioParam
by automating the value of its offset. - Options for constructing an
ConstantSourceNode
- Processing node which applies a linear convolution effect given an impulse response.
ConvolverNode
options- Node that delays the incoming audio signal by a certain amount
- Options for constructing a
DelayNode
DynamicsCompressorNode
provides a compression effect.- Options for constructing a
DynamicsCompressorNode
- AudioNode for volume control
- Options for constructing a
GainNode
- IIRFilterNode is an AudioNode processor implementing a general IIR (infinite impulse response)Filter.
- Options for constructing a
IIRFilterNode
- An audio source from an
<audio>
element - Options for constructing a
MediaElementAudioSourceNode
- An audio stream destination (e.g. WebRTC sink)
- An audio source from a
MediaStream
(e.g. microphone input) - Options for constructing a
MediaStreamAudioSourceNode
- An audio source from a
MediaStreamTrack
(e.g. the audio track of the microphone input) - Options for constructing a
MediaStreamTrackAudioSourceNode
OscillatorNode
represents an audio source generating a periodic waveform. It can generate a few common waveforms (i.e. sine, square, sawtooth, triangle), or can be set to an arbitrary periodic waveform using aPeriodicWave
object.- Options for constructing an
OscillatorNode
PannerNode
positions / spatializes an incoming audio stream in three-dimensional space.- Options for constructing a
PannerNode
- An AudioNode which can generate, process, or analyse audio directly using a script (deprecated)
- Options for constructing an
ScriptProcessorNode
StereoPannerNode
positions an incoming audio stream in a stereo image- Options for constructing a
StereoPannerOptions
WaveShaperNode
allows to apply non-linear distortion effect on a audio signal. Arbitrary non-linear shaping curves may be specified.WaveShaperNode
options
Enums§
- Biquad filter types
- How channels must be matched between the node’s inputs and outputs.
- The meaning of the channels, defining how audio up-mixing and down-mixing will happen.
- Algorithm to reduce the volume of an audio source as it moves away from the listener
- Type of the waveform rendered by an
OscillatorNode
- enumerates the oversampling rate available for
WaveShaperNode
- Spatialization algorithm used to position the audio in 3D space
Traits§
- This interface represents audio sources, the audio destination, and intermediate processing modules.
- Interface of source nodes, controlling start and stop times. The node will emit silence before it is started, and after it has ended.