AudioBuffer_v2 Op

AudioBuffer

Holds an audio file / sample in a buffer



Full Name
  • Ops.WebAudio.AudioBuffer_v2
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches


Example Patch AudioBufferPlayer_v2 & AudioBuffer_v2 example

Example for AudioBufferPlayer_v2 and AudioBuffer_v2.

Open In Editor

INPUT PORTS


URL (String)

<p>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. It is also possible to pass a data URL (from a local file) to the buffer.</p>

Create Loading Task (Number:

<i>boolean</i>

)

OUTPUT PORTS


Audio Buffer (Object)

<p>The loaded audio buffer, can be connected to e.g. AudioBufferPlayer</p>

Finished Loading (Number)

<p>True when the file is loaded</p>

Sample Rate (Number)

<p>Samples per second of the PCM data stored in the buffer.</p>

Length (Number)

<p>Length of the buffer, in sample-frames, of the PCM data stored in the buffer.</p>

Duration (Number)

<p>Duration, in seconds, of the PCM data stored in the buffer</p>

Number of Channels (Number)

<p>How many channels the audio file contains, 2 is stereo, 1 is mono</p>

isLoading (

<i>boolean</i>

Number)

<p>indicates if buffer is currently loading</p>


Patches using AudioBuffer_v2

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatartim - 2020-09-09 16:17