Save As .wav wrapping
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
Attachment | Size |
---|---|
wav wrap bug.JPG | 101.8 KB |
Comments
Good catch! Fixed in r2889. Patches are always very welcome!
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.
Normally it's not linked. The save method is different from the playback method.
Automatically closed -- issue fixed for 2 weeks with no activity.