OscillatorOptions constructor

OscillatorOptions({
  1. OscillatorType? type,
  2. double? frequency,
  3. double? detune,
  4. 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);