Question

I am trying to use MIDI under Linux Ubuntu with C++. After a day of using several tools (e.g., JACK) with no success (JACK lags like mad on my machine), I am now trying to use Timidity as the MIDI server. However, I am not able to find any references on the web about how to programmatically connect to Timidity using C++. Is there anyway to do this?

Thanks for any suggestions!

Notes:

I've tried search google with the following:

alsa server connect

timidity connect program

But no answer.

Was it helpful?

Solution

use the ALSA sequencer methods to create MIDI messages.

the documentation for the C library is here: http://www.alsa-project.org/alsa-doc/alsa-lib/group___sequencer.html

OTHER TIPS

Have a look at the RtMidi library. It is cross-platform (Win, OS X, Linux, SGI), written in C++ and easy to compile and include in your project.

Then start Timidity as a server (Ubuntu includes an init script for this), which will create several ALSA sequencer client ports for Timidity. Open one of these ports as an output in RtMidi and start sending midi messages.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top