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
1 changed files with 3 additions and 2 deletions

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);
}
/* 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);
}
}
}