PeriodicWave Class

An arbitrary periodic waveform for an OscillatorNode (https://webaudio.github.io/web-audio-api/#PeriodicWave), defined by the coefficients of its Fourier series.

public sealed class PeriodicWave

Constructors

NameDescription
PeriodicWave(BaseAudioContext, PeriodicWaveOptions?)Creates a periodic wave.

PeriodicWave(BaseAudioContext, PeriodicWaveOptions?)

PeriodicWave.cs

Creates a periodic wave.

public PeriodicWave(BaseAudioContext context, PeriodicWaveOptions? options = null)

Parameters

context BaseAudioContext
options PeriodicWaveOptions?

Exceptions

DomException
The coefficient arrays have different lengths, or a length less than 2 (an IndexSizeError).

See also