Feature request: export track names when exporting MIDI file

• Aug 13, 2018 - 17:05

Track names are not being exported when exporting MIDI file.

Track names are written in MIDI files as meta-messages (the ones starting with 0xFF) and flagged by 0x03 following the 0xFF. See: https://www.recordingblogs.com/wiki/midi-track-name-meta-message

Then this code could be useful for converting those messages into names. This C++ code is useful for converting Hex values into strings (ascii conversion, see Zwol's answer, I used it on my OpenSource software): https://stackoverflow.com/questions/3790613/how-to-convert-a-string-of-…

The opposite should be done to convert strings into hex for exporting MIDI. This should show how to do it in both ways: https://stackoverflow.com/questions/3381614/c-convert-string-to-hexadec…

Tip: a message looking like "ff 3 7 50 69 63 63 6f 6c 6f" is a meta-message (FF), is a track name (3) but the track name starts at 50. I didn't check what is this third term, actually, but the code may not compile if it is included. So parsing to a function HexToString "50 69 63 63 6f 6c 6f " (this way we may have to exclude spaces) we get "Piccolo". Check: https://www.rapidtables.com/convert/number/hex-to-ascii.html

Greets! :-)


Comments

Man I've just discovered tracks were not named for MIDI export, which was my goal using Musescore. Lots of time lost retrieving each track. This is a must have in my opinion.

Do you still have an unanswered question? Please log in first to post your question.