CoderLine / alphaTab

alphaTab is a cross platform music notation and guitar tablature rendering library.
http://www.alphatab.net
Mozilla Public License 2.0
1.23k stars 199 forks source link

fix: Ensure smooth synth ending #1609

Closed Danielku15 closed 1 month ago

Danielku15 commented 1 month ago

Issues

Fixes #1599

Proposed changes

We currently have a hard stop when we reach the end of the song. This leads to a cut-off on the samples and results in weird clicking noises. This PR changes the stop sequence of the synthesizer to:

  1. Request a fast stop of all voices being played (not instantly)
  2. Waiting for all voices to really stop providing samples before finishing

This way we have a smooth ramp-down of the audio (still fast though).

Checklist

Further details