Generic methods for p5 sound nodes that GENERATE audio.
Methods
start
Starts the p5 sound source. Should be called from a user interaction, such as MousePressed() in order respect the browser's autoplay policy.
stop
Stops the p5 sound source.
Notice any errors or typos? Please let us know. Please feel free to edit src/core/p5soundSource.js and open a pull request!
Related References
getAudioContext
Get the window's audio context.
setAudioContext
Sets the AudioContext to a specified context to enable cross library compatibility.
userStartAudio
starts audio processing in the window when called from a user interaction (such as mousePressed()).
userStopAudio
stops audio processing in the browser window.