Skip to content

Commit

Permalink
When playing the same note more than once the (#905)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jjceresa authored Jun 11, 2021
1 parent bf574c6 commit de47894
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/synth/fluid_synth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit de47894

Please sign in to comment.