createPeriodicWave method

PeriodicWave createPeriodicWave(
  1. JSArray<JSNumber> real,
  2. JSArray<JSNumber> imag, [
  3. PeriodicWaveConstraints constraints
])

The createPeriodicWave() method of the BaseAudioContext Interface is used to create a PeriodicWave, which is used to define a periodic waveform that can be used to shape the output of an OscillatorNode.

Implementation

external PeriodicWave createPeriodicWave(
  JSArray<JSNumber> real,
  JSArray<JSNumber> imag, [
  PeriodicWaveConstraints constraints,
]);