Skip to main content
Version: Next

OscillatorType

OscillatorType is a string that specifies the shape of an oscillator wave.

type OscillatorType =
| 'sine'
| 'square'
| 'sawtooth'
| 'triangle'
| 'custom';

Below you can see possible names with shapes corresponding to them.

Sine
Square
Sawtooth
Triangle

custom​

This value can't be set explicitly, but it allows user to set any shape. See setPeriodicWave for reference.

We are Software Mansion.