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
This commit is contained in:
jjceresa 2021-06-11 22:40:17 +02:00 committed by GitHub
parent bf574c6f03
commit de478947bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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); synth->storeid = fluid_voice_get_id(voice);
} }
/* Force the voice into release stage (pedaling is ignored) */ /* Force the voice into release stage except if pedaling
fluid_voice_release(voice); (sostenuto or sustain) is active */
fluid_voice_noteoff(voice);
} }
} }
} }