New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For large scores exported as audio or played continuously, MuseSounds staves are out of sync with the other staves #19232
Comments
This comment was marked as outdated.
This comment was marked as outdated.
Please ZIP and attach a score that demonstrates this issue, and describe exactly where in the exported audio to listen in order to hear the problem. |
Please find attach a simplified score for the issue, as well as the result when exported as mp3 in MuseScore 4.2.0 with MuseSampler 0.5.1.62. In this example, Piano 1 uses MuseSounds Grand Piano, while Piano 2 has MS Basic Grand Piano. You should listen to bars 1-4 (beginning of the score, 0-8 s in the exported audio), and then 1126-1129 (end of the score, 37:29-37:37 in the exported audio). |
I've investigated further, and the issue seems very different from what I had described at first.
[1] This has probably something to do with sample rates, since scores exported at 44100 Hz are more out of sync than those with 48000 Hz (see the corresponding files).
|
Completing Point 4 of my previous comment: it turns out that I fortunately have a backup for version v0.3.2.18 of MuseSampler (dating back to December 2022). I could force MuseScore to use it by putting "MuseSamplerCoreLib.dll" directly into the "\bin" folder of the app (it works well in nightly builds too). In my tests, the issue proves to be present since at least MuseSampler v0.3.2, as can be heard in the exported audio here (Sampler 0.3.2.18, MuseScore 4.3.0). Note that MuseSounds falls silent at 35'47 due to #15768 affecting v0.3, but the desynchronization can be heard before. I found the issue using MuseSampler v0.3.2.18 in Master (4.3), 4.2.0, and Beta 4.1.0, but I could not check earlier versions of either MuseScore or MuseSampler. I hope this helps ! |
Issue type
General playback bug & Muse Sounds bug
Bug description
When a score becomes large enough and is exported as audio (e.g. mp3) or played without interruption, there comes a point when the staves that use MuseSounds will sound distinctly out of sync with (specifically, ahead of) the ones that don't use MuseSounds. The delay between staves is increasing gradually. It happens in the exported audio file, and it is reflected in the playback of the score if the latter is sustained long enough.
Steps to reproduce
Create a new empty score with at least one staff using a MuseSounds instrument, and one that doesn't;
Add many bars (for instance 999);
Go to the beginning of the score;
Write the same notes on the two staves mentioned above, so that they should play at the same time. During playback, hear that they are indeed synchronized;
Export the score as mp3;
Notice that the notes of the two staves are synchronized in the exported mp3 file, as expected.
Now repeat steps 1. to 5., but write the notes at the end of the score instead. Notice that the notes of the two staves are out of sync in the exported mp3 file.
Screenshots/Screen recordings
I provide a video here where I apply the steps that I mentioned before (the piano uses MS Basic, while the violin uses Muse Sounds).
Here is also a proof of concept on a toy score, showing that the delay is growing progressively.
MuseScore Version
Checked in 4.1.1, 4.2.0, 4.3.0 and master (4.4).
Regression
I don't know
Operating system
Win10 (22H2); RAM: 16Go; CPU: Intel Core i5-9300H (2.40GHz)
Additional context
Like #20019, it seems to be depending on the sample rate (files exported at 44100 Hz show more delay than those at 48000 Hz, in particular).
It has been reported on musescore.org in https://musescore.org/en/node/361212 and https://musescore.org/en/node/344031#comment-1203191.
The text was updated successfully, but these errors were encountered: