Reference record()

record()

Start recording. To access the recording, provide a p5.SoundFile as the first parameter. The p5.SoundRecorder will send its recording to that p5.SoundFile for playback once recording is complete. Optional parameters include duration (in seconds) of the recording, and a callback function that will be called once the complete recording has been transfered to the p5.SoundFile.

Syntax

record(soundFile, [duration], [callback])

Parameters

soundFile
p5.SoundFile:

p5.SoundFile

duration
Number:

Time (in seconds)

callback
Function:

The name of a function that will be called once the recording completes

This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!

Related References