I have to write an application (like a step sequencer or arpeggiator) that sends MIDI note to a generic DAW , so I think that only way to implement such thing is to create a virtual MIDI device that should be recognised as a MIDI input/output interface by the OS.
I was wondering if this could be developed using Portmidi or if I need something more complicated.
OS X support is a must, Linux and Windows support is a nice to have.
Virtual MIDI Piano Keyboard is a MIDI events generator and receiver. It doesn't produce any sound by itself, but can be used to drive a MIDI synthesizer (either hardware or software, internal or external). You can use the computer's keyboard to play MIDI notes, and also the mouse.
Virtual MIDI on MacLaunch the "Audio MIDI Setup" application which you can find in the Applications > Utilities directory. Open the MIDI Studio Window. Double click the IAC Driver icon and enable the driver by checking the option "Device is online". Now you can add, remove and rename Ports to your preferences.
Portmidi's design is based on the Windows MIDI API, which does not allow applications to create virtual ports (without installing a separate driver).
On OS X, you can create a virtual port with MIDISourceCreate; on Linux, by creating a port with the (SUBS_)READ/WRITE flags.
If you want to use a portable library, try RtMidi, which supports virtual ports on all platforms that have them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With