mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-11 13:21:03 +00:00
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:
parent
bf574c6f03
commit
de478947bf
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue