From de478947bf740228c32ad57221bfd8a92b90e4ed Mon Sep 17 00:00:00 2001 From: jjceresa <32781294+jjceresa@users.noreply.github.com> Date: Fri, 11 Jun 2021 22:40:17 +0200 Subject: [PATCH] When playing the same note more than once the (#905) When playing the same note more than once the previous note is forced in release stage except if pedaling (sostenuto or sustain) is active. This makes it sound more like a real piano. See https://lists.nongnu.org/archive/html/fluid-dev/2021-06/msg00001.html --- src/synth/fluid_synth.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/synth/fluid_synth.c b/src/synth/fluid_synth.c index d9946317..fc0d35fc 100644 --- a/src/synth/fluid_synth.c +++ b/src/synth/fluid_synth.c @@ -6819,8 +6819,9 @@ fluid_synth_release_voice_on_same_note_LOCAL(fluid_synth_t *synth, int chan, synth->storeid = fluid_voice_get_id(voice); } - /* Force the voice into release stage (pedaling is ignored) */ - fluid_voice_release(voice); + /* Force the voice into release stage except if pedaling + (sostenuto or sustain) is active */ + fluid_voice_noteoff(voice); } } }