Save As .wav wrapping

Project:MuseScore
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When saving as a .wav file, the signal is being wrapped. Attached is a screen shot of audacity of a piano soundfont playing a C and E half note at the same time. I compiled the source and found a bug in the following line in exportaudio.cpp:

if (qAbs(buffer[i] > peak))

should be

if (qAbs(buffer[i]) > peak)

Ken

AttachmentSize
wav wrap bug.JPG101.8 KB
#1
Status:active» fixed

Good catch! Fixed in r2889. Patches are always very welcome!

#2

I think this also fixes what I was hearing in this bug: http://musescore.org/node/4908

Now if the volume is up to high is sounds like clipping (which you would expect) instead of gargling.

#3

Normally it's not linked. The save method is different from the playback method.

#4
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

Syndicate content