How to fetch MIDI input-data in C++?

user1511417 picture user1511417 · Sep 22, 2012 · Viewed 14k times · Source

I've already googled the **** out of the web in search of a simple way to get data from a connected midi device. I'm using I Visual Studio 2010 on a Win7 64bit PC.

I've already tried libaries like Improv, JDKSmidi, Portmidi All their example programs compiled with errors and Portmidi did not really provide a useful documentation.

All I want to do, is to read midi input on windows in my program. (Maybe even without an extern libary?)

Answer

Simon Meister picture Simon Meister · Sep 22, 2012

Take a look at rtmidi. It is small (2 headers and one .cpp file) and very easy to use. http://www.music.mcgill.ca/~gary/rtmidi/