fluidsynth icon indicating copy to clipboard operation
fluidsynth copied to clipboard

Fix behavior of volume envelope delay phase

Open derselbst opened this issue 2 months ago • 2 comments

Previously, fluidsynth used an optimization that allowed silent voices to be completely skipped rendering. While this behavior might make sense from a performance point of view, it does break the expected behavior of the delay phase demanded by the SF2, see #1312 for details. Essentially, the delay phase shall not postpone the sample, rather the sample should be played "silently". And that's what this PR does. However, as the rendered samples will always become zero, the nearest neighbor interpolation is used as a minor optimization in this case.

Fixes #1312.

derselbst avatar Apr 05 '24 19:04 derselbst