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

AudioRecorder Op

Ops.WebAudio.AudioRecorder


AudioRecorder
Namespace: Ops.WebAudio

Op author: simod

record, playback and download audio


This op let's you record any webaudio stream in your patch.

How to use:

  1. Connect audio to the input
  2. Click/Trigger "Start Recording"
  3. Record as long as you want
  4. Click/Trigger "Stop Recording"
  5. The recorded audio will be processed
  6. To playback the recorded loop, connect the "Recorded Out" output and click "Start Playback"
  7. To download, click "Download .wav file"
  8. To stop playback, click "Stop Playback"
  9. If you want to delete what you recorded, press "Clear Buffer"

The AudioRecorder has 5 states:

"idling" - there is nothing in the recording buffer, nothing is playing back
"recording" - the recorder is currently recording
"processing" - the recorder is currently processing the recorded audio
"ready" - the recorder is ready to play back/download
"playing" - the recorder is currently playing back the recorded audio



Inputs

Audio In (Object)

audio input

Recording

Start Recording (Trigger)

click/trigger to start recording

Stop Recording (Trigger)

click/trigger to stop recording

Input Gain (Number)

volume of incoming audio

Playback

Start Playback (Trigger)

click/trigger to start playback

Stop Playback (Trigger)

click/trigger to stop playback

Clear Buffer (Trigger)

click/trigger to clear buffer (revert to "idling" state)

Playback Gain (Number)

volume of recorded audio playback

Loop Playback (boolean /Number)

check to loop the playback of the recorded audio

Download .wav File (Trigger)

click/trigger to download the recorded file

Outputs

Audio Out (Object)

audio output, pass through for incoming signal

Recorded Audio Out (Object)

output of the recorded audio

Is Recording (boolean Number)

true if currently recording

Is Playing Back (boolean Number)

true if currently playing back

State (String)

one of 5 states: "idling", "recording", "processing", "ready", "playing"

AudioBuffer Out (Object)

audiobuffer output

Data URL (String)
Caught a mistake or want to contribute to the documentation?

Edit Documentation 

AudioRecorder example

AudioRecorder OP allows you to record an audio source and download the audio as a file.

In this example an mp3 file is the sound source of the AudioRecorder OP.

Trigger Playback of the sound source by pressing the Play button in the middle of the patch screen, then press Start Recording in the Sidebar.
After stopping the recording and the source audio, you can preview your recorded audio buffer loop by pressing start and stop playback.

In this example the sound source is panned to the left and recorded audio will be on the right.

Open Example In Editor


Patches using AudioRecorder

Changelog


created op
2021-03-02 - simod

Ops.User.simod.AudioRecorder renamed to Ops.WebAudio.AudioRecorder
2021-03-02 - simod