Reading General MIDI files

Sep 4, 2013 at 9:00am

Reading General MIDI files

I want to be able to read in General MIDI files (either type 0 or type 1) into my patch (which will be turned into a Max standalone). In addition to obviously getting the note info out, I also need to be able to extract program change messages and continuous controller (CC) messages from the file. For reasons which I’ll spare you, I also can’t use Java, so no mxj objects allowed. Here’s what I’ve looked at, and challenges:

seq – doesn’t read in type 1 (multi-track) MIDI files
detonate – reads in type 0 and type 1 files, but no ability to read program change or CC data from files. This thread identifies the same problem.
midifile by John MacCallum – mxj objects not OK.
ajm.midi2coll by Adam Murray – doesn’t output program changes, and also dependent on mxj.

Any other ideas or leads??

#264241
Sep 6, 2013 at 11:16am

I had an idea to try and see if there were Javascript tools to tackle this. I found jasmid, which has two sub-components, midifile.js and stream.js which seem like they populate a Javascript array with the MIDI info.

I stink at Javascript though, and wondering if anyone out there could tweak the above files to work in a Max-land js object? Ideally, I’d love to be able to give the object the path to the .mid file, and then get all the info out the other end…

#264512
Oct 29, 2013 at 8:42am

Also have a look at note~ (noteformax.com – I think) and bachproject.net. I’ve been irking with them trying to decide which one fits my needs best. Still haven’t decided but they seem to be further ahead than detonate.

#269479
Oct 29, 2013 at 8:52am

well, last but not least there is [filein].

#269480
Oct 29, 2013 at 9:14am

@Artmusicsouth – thanks, those are good ideas to explore, I didn’t know that they had MIDI support…

#269483

You must be logged in to reply to this topic.