svelte-audio-renderer

Elements

Each tag is a create…() method of BaseAudioContext, without the “create”.

Tags

GroupTags
Sourcesoscillator, bufferSource, constantSource, mediaElementSource*, mediaStreamSource*
Effectsgain, biquadFilter, iirFilter, delay, dynamicsCompressor, waveShaper, convolver, stereoPanner, panner
Analysisanalyser
ChannelschannelSplitter, channelMerger
OutputmediaStreamDestination*
CustomaudioWorklet

* Only on a live AudioContext, not an OfflineAudioContext.

When a node is created

An element is created with the options it has when it first renders: creation options such as maxDelayTime, feedforward or numberOfInputs are passed to create…(). Every other attribute is then set on the node.

<!-- context.createDelay(2), then delay.delayTime.value = 0.3 -->
<delay maxDelayTime={2} delayTime={0.3}></delay>

Nodes are created once their element is inside a tree that has an AudioContext, and the whole subtree is connected before it starts playing.