OscillatorOptions constructor
OscillatorOptions({
- OscillatorType? type,
- double? frequency,
- double? detune,
- PeriodicWave? periodicWave,
Implementation
factory OscillatorOptions(
{OscillatorType? type,
double? frequency,
double? detune,
PeriodicWave? periodicWave}) =>
OscillatorOptions._(
type: type?.value ?? OscillatorType.sine.value,
frequency: frequency ?? 440,
detune: detune ?? 0,
periodicWave: periodicWave ?? undefined);