zerberus: long release samples play louder and louder if notes duration is too short

• Apr 24, 2018 - 15:01
Reported version
2.2
Type
Functional
Severity
S3 - Major
Status
closed
Project
Tags

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

Title zerberus: repeated release samples play louder and louder until everything is a distorted mess zerberus: long release samples play louder and louder if notes duration is too short
Severity S4 - Minor S3 - Major

Ok, the reason is another region in the sfz with the long release sample. If I remove this sample, sound becomes correct.

 sample=Zerberus_test_01_samples/ride_cymbal_hit_F_1.ogg  trigger=release  ampeg_attack=0.01  volume=-2

So, I will use mentioned region for testing.

Attachment Size
loud_long_samples.mscz 4.06 KB
Status (old) active fixed
Status active fixed

Fixed in branch 2.3, commit c704c7a316

fix #271719: sound accumulation on noteOff

Fixed extra calling trigger after voice has already been stopped