Incorrect M4A import on OSX
Brought to you by:
cannam
(Version 2.0)
When loading certain M4A files on OSX, the track duration and pitch are both incorrect. For example, a track that should read as 4m57s instead comes out as 4m33s and with higher pitch. (Mediainfo dump of an offending track is attached.)
The Linux build does not appear to have this bug.
iTunes on OSX also processes the file correctly.
mediainfo output on an offending track
Sounds like the file is being opened at the wrong sample rate (that is, a 44100 file is being treated as 48000).
Is this the only file in the SV session? (SV takes the sample rate for the session from the first audio file loaded into it. If you load more than one audio file at different sample rates into the same session, the second and subsequent will have the wrong rate unless you have resampling switched on in the preferences. But SV should warn you about that anyway.)
Yes, it's the only file in the session, and it's the first file loaded upon starting SV.
SV did not throw any warnings about resampling.
OK, I think I see the cause of the bug. It's a confusion between the file rate and sample rate members in the CoreAudio reader. Will fix, but I'm out of time to complete a new build on OS/X today -- I should be able to do this tomorrow.
Thanks for the report and info.
Excellent. Thanks!
Hi -- can you try the new build at https://code.soundsoftware.ac.uk/attachments/download/682/Sonic%20Visualiser-2.0.1.dmg please, and let me know how it goes?
Looks like it works. Many thanks!
(Fixed in 2.0.1)