The shape of the periodic waveform. It may directly be set to any of the type constant values except for CUSTOM. The setWaveTable() method can be used to set a custom waveform, which results in this attribute being set to CUSTOM.
Property of apis/webaudio/OscillatorNodeapis/webaudio/OscillatorNode
Syntaxvar result = OscillatorNode.type;
OscillatorNode.type = value;
Return Value
Returns an object of type unsigned shortunsigned short
Uses one of the following constant values:
var oscillator = audioCtx.createOscillator();
oscillator.type = 'square';
Related specifications
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4