zerberus: long release samples do not play in their entirety
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 #4 in the project.
Result: The release sample ("ride_cymbal_hit_F_1.ogg") only plays for about 3 seconds then quits.
Expected result: The sample should play in its entirety.
Attachment | Size |
---|---|
Zerberus_test_01.zip | 427.27 KB |
Comments
Test sample (Zerberus_test_01_samples/ride_cymbal_hit_F_1.ogg) properties:
Sample Rate = 44100
Number of Channels = 2
Number of Frames = 304564
According to the simple computation: (Number of Frames) / [ (Number of Channels) * (Sample Rate) ] = 3.45 seconds
When I open the file in Media Player it shows 7 seconds duration and Chris is expecting 7 seconds duration as well. What am I missing?
Ah, if I get it right, number of frames is specified per channel, so there is a mistake in zerberus calculations.
Fixed in branch 2.3, commit baeaf50581
fix #271722: long release samples do not play in their entirety
The reason was reducing the duration of ALL samples by (Number of channels).
Fixed in branch master, commit 5d3b5e1c96
fix #271722: long release samples do not play in their entirety
The reason was reducing the duration of ALL samples by (Number of channels).
Automatically closed -- issue fixed for 2 weeks with no activity.