zerberus: long release samples play louder and louder if notes duration is too short
If a "trigger=release" region is still playing when a second instance of the same region is triggered, the second instance will play louder than the first. If further instances continue to be triggered in a similar manner, subsequent samples will play progressively louder until you are left with a distorted mess.
Steps to reproduce:
1. Download the attached test file.
2. Copy the .sfz file and sample folder to MuseScore's SoundFont directory.
3. Load the test .mscz file into MuseScore.
4. Go to "View" -> "Synthesizer" and click "Load from Score" to load the samples.
5. Play test #3 in the project. WARNING! This test gets extremely loud, so be ready to turn down the volume.
According to the SFZ spec for the behavior of "trigger=release": When the trigger is set to "release", the region will play on note-off. The velocity used to play the note-off sample is the velocity value of the corresponding (previous) note-on message.
Attachment | Size |
---|---|
Zerberus_test_01.zip | 427.27 KB |
Comments
Ok, the reason is another region in the sfz with the long release sample. If I remove this sample, sound becomes correct.
So, I will use mentioned region for testing.
Fixed in branch 2.3, commit c704c7a316
fix #271719: sound accumulation on noteOff
Fixed extra calling trigger after voice has already been stopped
Fixed in branch 2.3, commit 24789fd952
Merge pull request #3702 from anatoly-os/LoudSamplesNoteOffFix23
fix #271719: sound accumulation on noteOff
Fixed in branch master, commit c8618b766a
fix #271719: sound accumulation on noteOff
Fixed extra calling trigger after voice has already been stopped
Fixed in branch master, commit 4ef02caa89
Merge pull request #3701 from anatoly-os/LoudSamplesNoteOffFix30
fix #271719: sound accumulation on noteOff
Automatically closed -- issue fixed for 2 weeks with no activity.