WebAudioAPI
Types
analyserNode
A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. See AnalyserNode on MDN
Record fields
Module
There are methods and helpers defined in AnalyserNode .
analyserOptions
Record fields
channelCount
channelCountMode
channelInterpretation
fftSize
maxDecibels
minDecibels
smoothingTimeConstant
audioBuffer
A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. See AudioBuffer on MDN
Record fields
Module
There are methods and helpers defined in AudioBuffer .
audioBufferOptions
Record fields
numberOfChannels
length
sampleRate
audioBufferSourceNode
An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. See AudioBufferSourceNode on MDN
Record fields
Module
There are methods and helpers defined in AudioBufferSourceNode .
audioBufferSourceOptions
Record fields
buffer
detune
loop
loopEnd
loopStart
playbackRate
audioContext
An audio-processing graph built from audio modules linked together, each represented by an AudioNode. See AudioContext on MDN
Record fields
Module
There are methods and helpers defined in AudioContext .
audioContextOptions
Record fields
latencyHint
sampleRate
audioContextState
audioDestinationNode
AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. See AudioDestinationNode on MDN
Record fields
audioListener
The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. See AudioListener on MDN
Record fields
audioNode
A generic interface for representing an audio processing module. Examples include: See AudioNode on MDN
Record fields
Module
There are methods and helpers defined in AudioNode .
audioNodeOptions
Record fields
channelCount
channelCountMode
channelInterpretation
audioParam
The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). See AudioParam on MDN
Record fields
Module
There are methods and helpers defined in AudioParam .
audioParamMap
audioProcessingEvent
The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. See AudioProcessingEvent on MDN
Record fields
type_
Returns the type of event, e.g. "click", "hashchange", or "submit". Read more on MDN
target
Returns the object to which event is dispatched (its target). Read more on MDN
currentTarget
Returns the object whose event listener's callback is currently being invoked. Read more on MDN
eventPhase
Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. Read more on MDN
bubbles
Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. Read more on MDN
cancelable
Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. Read more on MDN
defaultPrevented
Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. Read more on MDN
composed
Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. Read more on MDN
isTrusted
Returns true if event was dispatched by the user agent, and false otherwise. Read more on MDN
timeStamp
Returns the event's timestamp as the number of milliseconds measured relative to the time origin. Read more on MDN
Module
There are methods and helpers defined in AudioProcessingEvent .
audioProcessingEventInit
Record fields
bubbles
cancelable
composed
playbackTime
inputBuffer
outputBuffer
audioScheduledSourceNode
Record fields
Module
There are methods and helpers defined in AudioScheduledSourceNode .
audioTimestamp
Record fields
contextTime
performanceTime
audioWorklet
audioWorkletNodeOptions
Record fields
channelCount
channelCountMode
channelInterpretation
numberOfInputs
numberOfOutputs
outputChannelCount
parameterData
processorOptions
biquadFilterNode
A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. See BiquadFilterNode on MDN
Record fields
Module
There are methods and helpers defined in BiquadFilterNode .
biquadFilterOptions
Record fields
channelCount
channelCountMode
channelInterpretation
type_
q
detune
frequency
gain
biquadFilterType
channelCountMode
channelInterpretation
channelMergerNode
The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. See ChannelMergerNode on MDN
Record fields
Module
There are methods and helpers defined in ChannelMergerNode .
channelMergerOptions
Record fields
channelCount
channelCountMode
channelInterpretation
numberOfInputs
channelSplitterNode
The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. See ChannelSplitterNode on MDN
Record fields
Module
There are methods and helpers defined in ChannelSplitterNode .
channelSplitterOptions
Record fields
channelCount
channelCountMode
channelInterpretation
numberOfOutputs
constantSourceNode
Record fields
Module
There are methods and helpers defined in ConstantSourceNode .
constantSourceOptions
Record fields
offset
convolverNode
An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. See ConvolverNode on MDN
Record fields
Module
There are methods and helpers defined in ConvolverNode .
convolverOptions
Record fields
channelCount
channelCountMode
channelInterpretation
buffer
disableNormalization
decodeErrorCallback
decodeSuccessCallback
delayNode
A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. See DelayNode on MDN
Record fields
Module
There are methods and helpers defined in DelayNode .
delayOptions
Record fields
channelCount
channelCountMode
channelInterpretation
maxDelayTime
delayTime
distanceModelType
doubleRange
Record fields
max
min
dynamicsCompressorNode
Inherits properties from its parent, AudioNode. See DynamicsCompressorNode on MDN
Record fields
Module
There are methods and helpers defined in DynamicsCompressorNode .
dynamicsCompressorOptions
Record fields
channelCount
channelCountMode
channelInterpretation
attack
knee
ratio
release
threshold
gainNode
A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. See GainNode on MDN
Record fields
Module
There are methods and helpers defined in GainNode .
gainOptions
Record fields
channelCount
channelCountMode
channelInterpretation
gain
iirFilterNode
The IIRFilterNode interface of the Web Audio API is a AudioNode processor which implements a general infinite impulse response (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. See IIRFilterNode on MDN
Record fields
iirFilterOptions
Record fields
channelCount
channelCountMode
channelInterpretation
feedforward
feedback
mediaElementAudioSourceNode
A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. See MediaElementAudioSourceNode on MDN
Record fields
Module
There are methods and helpers defined in MediaElementAudioSourceNode .
mediaStreamAudioDestinationNode
Record fields
Module
There are methods and helpers defined in MediaStreamAudioDestinationNode .
mediaStreamAudioSourceNode
A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. See MediaStreamAudioSourceNode on MDN
Record fields
Module
There are methods and helpers defined in MediaStreamAudioSourceNode .
mediaStreamAudioSourceOptions
Record fields
mediaStream
mediaTrackCapabilities
Record fields
width
height
aspectRatio
frameRate
facingMode
sampleRate
sampleSize
echoCancellation
autoGainControl
noiseSuppression
channelCount
deviceId
groupId
backgroundBlur
displaySurface
mediaTrackConstraints
Record fields
width
height
aspectRatio
frameRate
facingMode
sampleRate
sampleSize
echoCancellation
autoGainControl
noiseSuppression
channelCount
deviceId
groupId
backgroundBlur
displaySurface
advanced
mediaTrackConstraintSet
Record fields
width
height
aspectRatio
frameRate
facingMode
sampleRate
sampleSize
echoCancellation
autoGainControl
noiseSuppression
channelCount
deviceId
groupId
backgroundBlur
displaySurface
mediaTrackSettings
Record fields
width
height
aspectRatio
frameRate
facingMode
sampleRate
sampleSize
echoCancellation
autoGainControl
noiseSuppression
channelCount
deviceId
groupId
backgroundBlur
displaySurface
offlineAudioCompletionEvent
The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. See OfflineAudioCompletionEvent on MDN
Record fields
type_
Returns the type of event, e.g. "click", "hashchange", or "submit". Read more on MDN
target
Returns the object to which event is dispatched (its target). Read more on MDN
currentTarget
Returns the object whose event listener's callback is currently being invoked. Read more on MDN
eventPhase
Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. Read more on MDN
bubbles
Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. Read more on MDN
cancelable
Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. Read more on MDN
defaultPrevented
Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. Read more on MDN
composed
Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. Read more on MDN
isTrusted
Returns true if event was dispatched by the user agent, and false otherwise. Read more on MDN
timeStamp
Returns the event's timestamp as the number of milliseconds measured relative to the time origin. Read more on MDN
Module
There are methods and helpers defined in OfflineAudioCompletionEvent .
offlineAudioCompletionEventInit
Record fields
bubbles
cancelable
composed
renderedBuffer
offlineAudioContext
An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. See OfflineAudioContext on MDN
Record fields
Module
There are methods and helpers defined in OfflineAudioContext .
offlineAudioContextOptions
Record fields
numberOfChannels
length
sampleRate
oscillatorNode
The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. See OscillatorNode on MDN
Record fields
Module
There are methods and helpers defined in OscillatorNode .
oscillatorOptions
Record fields
channelCount
channelCountMode
channelInterpretation
type_
frequency
detune
periodicWave
oscillatorType
overSampleType
pannerNode
A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels! See PannerNode on MDN
Record fields
Module
There are methods and helpers defined in PannerNode .
pannerOptions
Record fields
channelCount
channelCountMode
channelInterpretation
panningModel
distanceModel
positionX
positionY
positionZ
orientationX
orientationY
orientationZ
refDistance
maxDistance
rolloffFactor
coneInnerAngle
coneOuterAngle
coneOuterGain
panningModelType
periodicWave
PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). See PeriodicWave on MDN
Module
There are methods and helpers defined in PeriodicWave .
periodicWaveConstraints
Record fields
disableNormalization
periodicWaveOptions
Record fields
disableNormalization
real
imag
requestCredentials
stereoPannerNode
The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. See StereoPannerNode on MDN
Record fields
Module
There are methods and helpers defined in StereoPannerNode .
stereoPannerOptions
Record fields
channelCount
channelCountMode
channelInterpretation
pan
uLongRange
Record fields
max
min
waveShaperNode
A WaveShaperNode always has exactly one input and one output. See WaveShaperNode on MDN
Record fields
Module
There are methods and helpers defined in WaveShaperNode .