-
Notifications
You must be signed in to change notification settings - Fork 98
Add support for MIDI type 1 files #24
Comments
ETA? Need help? |
@carlthome I've got a fix now, I just need some files to test it with (I'll google around a bit and let you know if I don't find anything). |
These maybe? |
@nikreiman Hi Nik, I'm currently evaluating MrsWatson for a project and would like to extend midi support a bit. Specifically I've run into problems for midi0 files that cannot be rendered properly. I've tried a simple file from wikipedia here https://en.wikipedia.org/wiki/List_of_musical_scales_and_modes. The file simply contains 8 notes: C5 (0x3C) vel 0x56 Here is some debugging output from MrsWatson D 00000000 000172 MIDI file is type 0, has 1 tracks, and time division 256 (type 1) The result is note 1 being played continuously for a few seconds, then the last note is played. Do you have any ideas what could cause this issue? Thanks for sharing this great tool. |
Hi again, I've committed a few changes to my fork that seem to solve the problems with aforementioned file. |
Right now, only MIDI type 0 files are supported. Type 1 is very common, and should also be supported.
At the moment, I think that the program should just take the first track from such files, but a command-line switch could be added here.
The text was updated successfully, but these errors were encountered: