Skip to main content

List of Objects

Engines​

TypeDescription
ManualProcesses the graph on demand: each call to the process action runs one buffer through it on the caller's thread, with the input and output buffers each optional.
OfflineRenders the graph from audio files to audio files as fast as possible, without real-time constraints.
RealtimeRuns the graph in real time on the platform's audio I/O: the graph's input node receives the microphone or selected input device, and its output node plays to the speaker or selected output device.
WebSocketRuns a WebSocket server that processes each binary message it receives through the graph and replies with the graph's output.

Graphs​

There is only a single implementation of AudioGraph which you can read about here.

Nodes​

TypeDescription
AudioPlayerPlays an audio file on its output bus, either decoded into memory or streamed from disk, or an MP3 or AAC stream from an http(s) URL, such as internet radio or an HLS playlist.
BusSelectForwards one of several input audio buses, chosen by selectedBus, to its single output bus.
BusSplitterCopies its single input audio bus to every output bus, so one signal can feed several nodes.
BusSwitchRoutes its single input audio bus to one of several output buses, chosen by selectedBusIndex.
ChannelSplitterSplits a multichannel input audio bus into mono output buses, one per channel: input channel i goes to output bus i.
ClippingDetectorDetects clipping in a mono input on every buffer.
CounterHolds an integer counter that starts at 0 and is changed with the increment and reset actions.
CrossfaderBlends two input buses into one output bus.
DiagnosticRecorderPasses audio through unchanged while keeping the most recent sampleSeconds of it in memory, so it can be written to a WAV file with the dump action.
DiscardConsumes the audio on its single input bus and does nothing with it.
GainMultiplies the audio on all channels by a linear gain factor.
InvertInverts the polarity of the audio on all channels by multiplying every sample by -1.
LimiterKeeps the signal's peaks at or below ceilingDB.
LoudnessNormalizerBrings audio to targetLoudness by slowly steering its gain, so sources mastered at different levels, such as radio stations and podcasts, play equally loud.
MixerMixes multiple input audio buses into a single output bus by summing them sample by sample, without attenuation, so the sum can exceed full scale.
MonoBusMergerMerges n mono input audio buses into a single output bus with n channels, where input bus i becomes output channel i.
MonoToMultiChannelCopies a mono input audio bus to every channel of a multichannel output bus.
MultiChannelToMonoMixes a multichannel input audio bus down to a mono output bus by averaging all input channels.
MusicDuckingLowers the level of a music signal while a voice signal is present.
MuteSilences or passes through the audio on a single bus, controlled by isMuted.
NoiseGateSilences a stereo signal while its level is below a threshold.
OffsetAdds a constant DC offset to every sample on all channels.
PassthroughCopies its input audio bus to its output bus unchanged.
PipeSinkWrites its input into a named pipe that a Pipe Source node reads from, so audio can be fed back to an earlier point of the graph without creating a cycle.
PipeSourceOutputs the audio written by the Pipe Sink node whose pipeID matches.
RecorderRecords the audio arriving on its input bus.
ResampledSinkRuns an embedded single-input sink node, created from the node configuration in node, at the sample rate given in sampleRate, and resamples the incoming audio to that rate before passing it on.
ResampledSourceRuns an embedded single-output source node, created from the node configuration in node, at the sample rate given in sampleRate, and resamples its audio to the sample rate of the graph.
ResamplerResamples a mono audio bus from one sample rate to another, set with the inputSampleRate and outputSampleRate configuration values.
SilenceOutputs silence (zero-valued samples) on all channels of its single output bus.
SineGeneratorGenerates a sine wave with the given frequency and amplitude, writing the same signal to every output channel.
SquareGeneratorGenerates a square wave with the given frequency, amplitude and duty cycle.
StereoBusMergerMerges n stereo input audio buses into a single output bus with n*2 channels, where input bus i fills output channels 2i (left) and 2i+1 (right).
StereoPannerPans a stereo signal between the left and right channels by linearly attenuating the opposite channel, while the channel being panned towards stays at full level.
StreamPlayerPlays an MP3 or AAC stream from an http(s) URL, such as internet radio or an HLS playlist.
SubgraphProcessorRuns an embedded audio graph, created from the graph configuration in graph, as a single processor node.
SubgraphSinkRuns an embedded audio graph, created from the graph configuration in graph, as a single sink node.
SubgraphSourceRuns an embedded audio graph, created from the graph configuration in graph, as a single source node.
SynchronizedAudioPlayerPlays a loaded audio file in sync with a Timeline node.
SynthGenerates a sine wave shaped by an ADSR envelope, writing the same signal to every output channel.
TimelineGenerates a timeline position signal that can be started, paused, stopped, looped and reversed, for driving SynchronizedAudioPlayer and TimelineQuantizedTrigger nodes.
TimelineQuantizedTriggerStarts a synchronized player on the next quantization boundary.
TimerEmits a tick event at a fixed interval, timed by counting the audio frames arriving on its input bus.
VADDetects voice activity from the level of the input.
VUMeterMeasures the RMS and peak level of a mono input, averaged over smoothingDurationMs.
WebSocketClientConnects to a WebSocket server when created and outputs the audio it receives.
WebSocketServerRuns a WebSocket server and streams its mono input to every connected client.
WhiteNoiseGeneratorGenerates white noise with samples uniformly distributed between -1 and 1, writing the same signal to every output channel.

Extensions​

The list of available nodes can be expanded by implementing a custom Switchboard SDK extension. For more details on how to create your own extension, please contact us.