Set type to 'sine', 'triangle', 'sawtooth' or 'square'.
Syntax
setType(type)
Parameters
type
'sine', 'triangle', 'sawtooth' or 'square'.
Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!