Reference saveSound()

saveSound()

Save a p5.SoundFile as a .wav file. The browser will prompt the user to download the file to their device. For uploading audio to a server, use p5.SoundFile.saveBlob.

Syntax

saveSound(soundFile, fileName)

Parameters

soundFile
p5.SoundFile:

p5.SoundFile that you wish to save

fileName
String:

name of the resulting .wav file.

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