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
Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!