Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c++

input

midi

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?)

like image 354
user1511417 Avatar asked Sep 22 '12 09:09

user1511417


2 Answers

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/

like image 151
Simon Meister Avatar answered Oct 01 '22 23:10

Simon Meister


If you are on windows, you may use Windows multimedia API.

It's quite simple.

MSDN MIDI Reference

There are several articles on codeproject :

http://www.codeproject.com/Articles/2771/Wrapper-Library-for-Windows-MIDI-API

http://www.codeproject.com/Articles/36313/MIDI-Star

like image 26
rkosegi Avatar answered Oct 01 '22 22:10

rkosegi