C++ MIDI file reading library

I'm trying to write some software to read a MIDI file into an internal data format and use it to control 3D simulated instruments. My biggest problem is reading the MIDI data in from a file, and I'd like to avoid writing all the import code.

Does anyone know of a free (preferably Open Source), cross-platform MIDI file reading library? What features does it have? Can it import other note-based music formats?


I once wrote a Midi file read/write library in C. If you want to have a look here it is: http://code.google.com/p/middl/

It's a very basic library that allows you to define a callback function for each MIDI event type, for C++ you might want to encapsulate it into some sort of "Midi reader" class (or just use it as it is :) .

You could try Timidity, an open source midi player written in c. Its quite easy to hack into what you want.

Need Your Help

How many actions should a servlet perform?

java servlets

I'm new to web development and am just wondering about best practices for java servlets. Should each servlet perform exactly one action, ie a servlet for login, a servlet for registration etc, or s...

Multinomial logit model

r package mlogit

I am going to use mlogit package. I run it like example but it still gives me an error and I don't know what to do about it.