MuseScore MIDI Import error - while reading Samplitude MIDI Export file
Hi,
I exported a MIDI file with Samplitude Music Studio 2014.
Due to an error in creating MIDI files, Samplitude inserts unused bytes between Tracks.
( newer versions up to the actual Samplitude release may still have this bug .. )
So MuseScore fails to load the exported MIDI file.
=> MuseScore Error message: "bad midifile: MTrk expected"
As Windows' MediaPlayer plays the MIDI file with no error,
I tried to find out how to fix the bug on loading a MIDI file.
Fix looks like this:
- Fileread pointer should point to "MTrk", but there is no, so ..
- step up for up to 8 bytes to try to find "MTrk" (loop byte for byte)
- If not found (or EOF ..), stop reading => file error
- if found, continue reading file
MuseScore Version: 3.5.2.311459983 under Windows 10 (actual stable release)
Cheers, Peter
Attachment | Size |
---|---|
Only Bass n Drums.mid | 12.48 KB |
Comments
OS: Linux Mint 20, Arch.: x86_64, MuseScore version (64-bit): 3.6.0.389455351, revision: 4983887
In reply to OS: Linux Mint 20, Arch.:… by Shoichi
Does this mean, this is already fixed in the developer version ?
In reply to Does this mean, this is… by peterschneide
So it seems, and it is not the most recent.
In reply to So it seems, and it is not… by Shoichi
Thanks, nice to see.
When is the next stable release ?
In reply to Thanks, nice to see. When is… by peterschneide
They beta will probably be sometime this week. The stable will probably be at least 2 weeks after that depending on what kinds of problems are found.
In reply to They beta will probably be… by mike320
Thanks a lot for this high speed reaction !
Cheers, Peter.
No problem here to open your attached midi with MS 3.5.2 and Linux.
In reply to No problem here to open your… by kuwitt
Whyever .. ;-)
In reply to Whyever .. ;-) by peterschneide
So seems to be a Windows-issue? Maybe check a nightly build of the upcoming version 3.6.0 yourself to see if it's fixed for you with Windows.
In reply to So seems to be a Windows… by kuwitt
Yes, looks to be a "Windows only" issue.
I was able to load the mscz, uploaded here.
MuseScore complained about "file was created with newer version"
but finally the Score showed up well, and is usable for me, thanks !
In reply to Yes, looks to be a "Windows… by peterschneide
FWIW attached the mscz of the imported midi with MS 3.5.2 an Linux.
In reply to FWIW attached the mscz of… by kuwitt
Thanks, this loads well, without warning message.
In reply to So seems to be a Windows… by kuwitt
I just downloadad and tried nightly build (Windows)
MuseScoreNightly-202012070426-3.x-8c98ded-x86_64
Bug is still there, my MIDI file doesn't load.
Same error messagebox as with stable release 3.5.2.
In reply to I just downloadad and tried… by peterschneide
My selfbuilt 3.6 dev version happily loads it as well (without error message).
I'd wait for the official beta and then retry in that.
In reply to So seems to be a Windows… by kuwitt
Also, QtWebEngineProcess.exe didn't close after terminating the program.
I had to manually close 5 instances of this in task manager, after several program starts.