musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.25k stars 2.65k forks source link

Audio clipping when mixing larger scores at higher dynamics #16839

Open majenkotech opened 1 year ago

majenkotech commented 1 year ago

Issue type

General playback bug

Bug description

When mixing the channels of a score with more than just one or two instruments, and using "higher" dynamics, like ff etc, the result displays clipping of the sound. This clipping is not visible in a waveform editor, as the resultant sound may be well below the peak limit, and it's not there when individual tracks are exported. It's most noticeable with MuseSounds instruments like the choir voices, but not limited to them.

Steps to reproduce

Export (or even just playback) any score with loud dynamics and a larger number of voices.

Screenshots/Screen recordings

(samples forthcoming as I manage to create them in a reliable way)

MuseScore Version

4.0.2.230651553

Regression

Yes, this used to work in Musescore 3.x and now is broken

Operating system

Windows 10 and Linux

Additional context

No response

majenkotech commented 1 year ago

Addendum: I'm getting clipping and popping when just mixing two voices of MS Soprano at louder dynamics. If you open the attached OGG in Audacity you can see that it doesn't approach peak volume except where there are sudden spikes that appear to be erroneously generated and are the actual clipping sound (not the sound being clipped but the sound of the clipping, if that makes sense) - there's clipping sounds that don't come even anywhere near max. And it always seems to be in the right channel on this sample. Clipping.zip