Synthesizer constructor
Synthesizer({
- required SoundFont soundFont,
- required int sampleRate,
- required int blockSize,
- required int maximumPolyphony,
- required int minimumVoiceDuration,
- required double 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,
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;