WAVE files exported in 44.1KHz and 48KHz don't have the same duration

• Jun 20, 2012 - 12:11
Type
Functional
Severity
S4 - Minor
Status
closed
Project

In MuseScore 0775f63c60 I created the attached file and export it to a WAVE file in 44.1KHz and 48KHz by changing the sample rate in Edit -> Preferences -> Export.

Each file has a different duration (they are > 3MB so not attached)
- 44100Hz -> 20203ms
- 48000Hz -> 21989ms

The headers of the file seems to be ok since VLC and audacity report the file with the good sample rate.


Click to zoom

Attachment Size
flute.mscz 1.96 KB
screenshot44vs48.jpg 226.8 KB

Comments

In my tests the 48k sample played slightly faster (and hence was a shorter time) than the 44.1k sample. The pitch was not affected.

Edit, my sample files are exactly the same byte size, which is impossible for different bit rates.

"my sample files are exactly the same byte size, which is impossible for different bit rates."

This suggests that MuseScore is not rendering them correctly.

These are not bit rates in the same way that you would understand them regarding MP3 files.

It is perfectly possible for a WAV file encoded at 44.1kHz to take up the same space as one encoded at 48kHz.

You will find. however that they will play back at different speeds, as you have already discovered :)

I'm not sure why you want to use the 48kHz format anyway given that this is an obsolete sample rate used to acommodate some Emu samplers in the late 90's.

The basic standard is 44.1kHZ which is the format CDs use. If you need more digital overhead for quiet recordings then 96kHz has been used, but most recording software I know about opts for maintaining the 44.1kHz CD standard, but upping the bitrate to 24 or even 32bit which drastically improves the overhead available.

Personally I have always found 44.1kHz 16bit to be good enough for nearly all basic recording.

I am quite familiar with sampling, and the differences between WAV and MP3 bitrates. My tests were only done to confirm the issue Lasconic presented, I have no other vested interest in this topic. Personally, I see no reason to include 48K either.