Synthesizer constructor

Synthesizer({
  1. required SoundFont soundFont,
  2. required int sampleRate,
  3. required int blockSize,
  4. required int maximumPolyphony,
  5. required int minimumVoiceDuration,
  6. required double masterVolume,
  7. required Map<int, Preset> presetLookup,
  8. required Preset defaultPreset,
  9. required List<double> blockLeft,
  10. required List<double> blockRight,
  11. required double inverseBlockSize,
  12. required int blockRead,
  13. required bool enableReverbAndChorus,
  14. required Reverb? reverb,
  15. required List<double>? reverbInput,
  16. required List<double>? reverbOutputLeft,
  17. required List<double>? reverbOutputRight,
  18. required Chorus? chorus,
  19. required List<double>? chorusInputLeft,
  20. required List<double>? chorusInputRight,
  21. required List<double>? chorusOutputLeft,
  22. required List<double>? chorusOutputRight,
})

Implementation

Synthesizer({
  required this.soundFont,
  required this.sampleRate,
  required this.blockSize,
  required this.maximumPolyphony,
  required this.minimumVoiceDuration,
  required this.masterVolume,
  required Map<int, Preset> presetLookup,
  required Preset defaultPreset,
  required List<double> blockLeft,
  required List<double> blockRight,
  required double inverseBlockSize,
  required int blockRead,
  required bool enableReverbAndChorus,
  required Reverb? reverb,
  required List<double>? reverbInput,
  required List<double>? reverbOutputLeft,
  required List<double>? reverbOutputRight,
  required Chorus? chorus,
  required List<double>? chorusInputLeft,
  required List<double>? chorusInputRight,
  required List<double>? chorusOutputLeft,
  required List<double>? chorusOutputRight,
})  : _presetLookup = presetLookup,
      _defaultPreset = defaultPreset,
      _blockLeft = blockLeft,
      _blockRight = blockRight,
      _inverseBlockSize = inverseBlockSize,
      _blockRead = blockRead,
      _enableReverbAndChorus = enableReverbAndChorus,
      _reverb = reverb,
      _reverbInput = reverbInput,
      _reverbOutputLeft = reverbOutputLeft,
      _reverbOutputRight = reverbOutputRight,
      _chorus = chorus,
      _chorusInputLeft = chorusInputLeft,
      _chorusInputRight = chorusInputRight,
      _chorusOutputLeft = chorusOutputLeft,
      _chorusOutputRight = chorusOutputRight;