List of Objects
Engines
| Type | Description |
|---|---|
| Manual | Processes 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. |
| Offline | Renders the graph from audio files to audio files as fast as possible, without real-time constraints. |
| Realtime | Runs 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. |
| WebSocket | Runs 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
| Type | Description |
|---|---|
| AudioPlayer | Plays 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. |
| BusSelect | Forwards one of several input audio buses, chosen by selectedBus, to its single output bus. |
| BusSplitter | Copies its single input audio bus to every output bus, so one signal can feed several nodes. |
| BusSwitch | Routes its single input audio bus to one of several output buses, chosen by selectedBusIndex. |
| ChannelSplitter | Splits a multichannel input audio bus into mono output buses, one per channel: input channel i goes to output bus i. |
| ClippingDetector | Detects clipping in a mono input on every buffer. |
| Counter | Holds an integer counter that starts at 0 and is changed with the increment and reset actions. |
| Crossfader | Blends two input buses into one output bus. |
| DiagnosticRecorder | Passes 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. |
| Discard | Consumes the audio on its single input bus and does nothing with it. |
| Gain | Multiplies the audio on all channels by a linear gain factor. |
| Invert | Inverts the polarity of the audio on all channels by multiplying every sample by -1. |
| Limiter | Keeps the signal's peaks at or below ceilingDB. |
| LoudnessNormalizer | Brings audio to targetLoudness by slowly steering its gain, so sources mastered at different levels, such as radio stations and podcasts, play equally loud. |
| Mixer | Mixes multiple input audio buses into a single output bus by summing them sample by sample, without attenuation, so the sum can exceed full scale. |
| MonoBusMerger | Merges n mono input audio buses into a single output bus with n channels, where input bus i becomes output channel i. |
| MonoToMultiChannel | Copies a mono input audio bus to every channel of a multichannel output bus. |
| MultiChannelToMono | Mixes a multichannel input audio bus down to a mono output bus by averaging all input channels. |
| MusicDucking | Lowers the level of a music signal while a voice signal is present. |
| Mute | Silences or passes through the audio on a single bus, controlled by isMuted. |
| NoiseGate | Silences a stereo signal while its level is below a threshold. |
| Offset | Adds a constant DC offset to every sample on all channels. |
| Passthrough | Copies its input audio bus to its output bus unchanged. |
| PipeSink | Writes 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. |
| PipeSource | Outputs the audio written by the Pipe Sink node whose pipeID matches. |
| Recorder | Records the audio arriving on its input bus. |
| ResampledSink | Runs 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. |
| ResampledSource | Runs 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. |
| Resampler | Resamples a mono audio bus from one sample rate to another, set with the inputSampleRate and outputSampleRate configuration values. |
| Silence | Outputs silence (zero-valued samples) on all channels of its single output bus. |
| SineGenerator | Generates a sine wave with the given frequency and amplitude, writing the same signal to every output channel. |
| SquareGenerator | Generates a square wave with the given frequency, amplitude and duty cycle. |
| StereoBusMerger | Merges 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). |
| StereoPanner | Pans 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. |
| StreamPlayer | Plays an MP3 or AAC stream from an http(s) URL, such as internet radio or an HLS playlist. |
| SubgraphProcessor | Runs an embedded audio graph, created from the graph configuration in graph, as a single processor node. |
| SubgraphSink | Runs an embedded audio graph, created from the graph configuration in graph, as a single sink node. |
| SubgraphSource | Runs an embedded audio graph, created from the graph configuration in graph, as a single source node. |
| SynchronizedAudioPlayer | Plays a loaded audio file in sync with a Timeline node. |
| Synth | Generates a sine wave shaped by an ADSR envelope, writing the same signal to every output channel. |
| Timeline | Generates a timeline position signal that can be started, paused, stopped, looped and reversed, for driving SynchronizedAudioPlayer and TimelineQuantizedTrigger nodes. |
| TimelineQuantizedTrigger | Starts a synchronized player on the next quantization boundary. |
| Timer | Emits a tick event at a fixed interval, timed by counting the audio frames arriving on its input bus. |
| VAD | Detects voice activity from the level of the input. |
| VUMeter | Measures the RMS and peak level of a mono input, averaged over smoothingDurationMs. |
| WebSocketClient | Connects to a WebSocket server when created and outputs the audio it receives. |
| WebSocketServer | Runs a WebSocket server and streams its mono input to every connected client. |
| WhiteNoiseGenerator | Generates 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.