cables is under heavy development.
There might be one or another bug, please let us know about it!

op id:2cf4b0a1-b657-405b-8bf9-8555dbd5c231
Holds an audio file / sample

summary (oneliner)

WebAudio Node Reference: AudioBuffer



youtube id


related ops


URL (string Number)

The audio file to load. Mostly you will drag an audio file into the cables window and select it via the file-chooser in the op parameter view. Depending on the browser you use (or user who will see / hear your exported patch) only certain file types can be played back. MP3 seems to be the best supported audio format.


Audio Buffer (Object)

The loaded audio buffer, can be connected to e.g. AudioBufferPlayer

Finished Loading (Number)

true when the file is loaded

Sample Rate (Number)

The sample rate of the sample in samples per second, of the PCM data stored in the buffer.

Length (Number)

Length of the buffer, in sample-frames, of the PCM data stored in the buffer.

Duration (Number)

Duration, in seconds, of the PCM data stored in the buffer

Number of Channels (Number)

How many channels the audio file contains, 2 means stereo

Play Audio Loop from File:

Plays an audio file from a sample (mp3 / ogg / …)


Caught a mistake or want to contribute to the documentation?

Edit this documentcancel save

Examples using AudioBuffer

Public Patches using AudioBuffer