参考 getType()

getType()

Returns current type of oscillator eg. 'sine', 'triangle', 'sawtooth' or 'square'.

Returns

String: type of oscillator eg . '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!

相关参考