From 12808c7bd2153984b2d3a181746a3ec4eb573822 Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Sun, 12 May 2019 21:27:37 +0200 Subject: Fix for #7755: initialize reverb and chorus of fluidsynth object The reverb and chorus states in the fluidsynth object need to be initialized to 0 (false) in accordance with the initial state of a-fluidsynth's v_port[...]. Otherwise they are not updated in the first run() and remain to fluidsynth's default state 1 (true) even though the plugin's state requires 0. --- libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libs/plugins/a-fluidsynth.lv2') diff --git a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc index 3c585f2cbf..06c633dee5 100644 --- a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc +++ b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc @@ -336,6 +336,9 @@ instantiate (const LV2_Descriptor* descriptor, fluid_synth_set_polyphony (self->synth, 32); fluid_synth_set_sample_rate (self->synth, (float)rate); + fluid_synth_set_reverb_on (self->synth, 0); + fluid_synth_set_chorus_on (self->synth, 0); + self->fmidi_event = new_fluid_midi_event (); if (!self->fmidi_event) { -- cgit v1.2.3