Reference getAudioContext()

getAudioContext()

Returns the Audio Context for this sketch. Useful for users who would like to dig deeper into the Web Audio API .

Some browsers require users to startAudioContext with a user gesture, such as touchStarted in the example below.

Examples

Returns

Object: AudioContext for this sketch
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