Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rtmidi opening ports?

Tags:

c++

midi

I am working on a C++-based MIDI sending app and it's the first time I'm working with MIDI.

I chose the RtMidi library because it seems to be the most complete library around, but I'm open to suggestions.

The OS that I'm working on is Windows 7 and I have an USB-MID interface installed and it's working with other programs (i.e. Roland UM-One).

Now I may be way off-track, but I'd expect that when you do a search for ports, it should show this device.

When compiling the example code for RtMidi i get no ports; in or out.

What am I missing? Do i need to open a virtual port?

like image 262
user3248657 Avatar asked Feb 18 '26 03:02

user3248657


1 Answers

This is also for others experiencing a similar issue as well:-

When I first started using RtMIDI, if you don't specify (on OSX at least) a macro define for the target system, the example code by default uses a dummy MIDI device, and this will have no MIDI ports.

Once I had specified MAC_OSX_CORE, then RtMIDI used the correct architecture and returned the MIDI devices on my system as expected. Perhaps you have to do something similar for your system - check the docs under "Compiling":

http://www.music.mcgill.ca/~gary/rtmidi/index.html#compiling

like image 142
beely Avatar answered Feb 20 '26 17:02

beely