OscillatorOptions Class

The options of an OscillatorNode (https://webaudio.github.io/web-audio-api/#OscillatorOptions).

public sealed class OscillatorOptions : AudioNodeOptions
Inheritance
AudioNodeOptions OscillatorOptions

Constructors

NameDescription
OscillatorOptions()

OscillatorOptions()

OscillatorNode.cs
public OscillatorOptions()

No documentation is available.

Properties

NameDescription
DetuneGets the initial detune in cents.
FrequencyGets the initial frequency in Hz.
PeriodicWaveGets the custom waveform (the type is then OscillatorType.Custom).
TypeGets the waveform.

Gets the initial detune in cents.

public float Detune { get; init; }

Gets the initial frequency in Hz.

public float Frequency { get; init; }

PeriodicWave

OscillatorNode.cs

Gets the custom waveform (the type is then OscillatorType.Custom).

public PeriodicWave? PeriodicWave { get; init; }

Gets the waveform.

public OscillatorType Type { get; init; }