createReverb method

  1. @override
SynthizerBackendReverb createReverb(
  1. ReverbPreset preset
)
override

Create a new reverb.

Implementation

@override
SynthizerBackendReverb createReverb(final ReverbPreset preset) {
  final reverb = context.createGlobalFdnReverb()
    ..meanFreePath.value = preset.meanFreePath
    ..t60.value = preset.t60
    ..lateReflectionsLfRolloff.value = preset.lateReflectionsLfRolloff
    ..lateReflectionsLfReference.value = preset.lateReflectionsLfReference
    ..lateReflectionsHfRolloff.value = preset.lateReflectionsHfRolloff
    ..lateReflectionsHfReference.value = preset.lateReflectionsHfReference
    ..lateReflectionsDiffusion.value = preset.lateReflectionsDiffusion
    ..lateReflectionsModulationDepth.value =
        preset.lateReflectionsModulationDepth
    ..lateReflectionsModulationFrequency.value =
        preset.lateReflectionsModulationFrequency
    ..lateReflectionsDelay.value = preset.lateReflectionsDelay
    ..gain.value = preset.gain;
  return SynthizerBackendReverb(
    backend: this,
    reverb: reverb,
  );
}