A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/apis/webaudio/OscillatorNode/type below:

type · WebPlatform Docs

type Summary

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

Syntax
var result = OscillatorNode.type;
OscillatorNode.type = value;
Return Value

Returns an object of type unsigned shortunsigned short

Uses one of the following constant values:

Examples
var oscillator = audioCtx.createOscillator();
oscillator.type = 'square';
Related specifications
W3C Web Audio API
W3C Editor’s Draft

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