On Wed, Nov 2, 2011 at 8:26 PM, Iain Duncan wrote:
I have some code somewhere that uses Boost.Python to expose a Jack
MIDI port. So I can generate MIDI in Python, then pass it to the jack
thread vi jack_ringbuffer, then out the app's MIDI port. Using
pygame, for example, I wrote a simple python app that turned joystick
button presses into MIDI notes so I could play drums with my gamepad.
I also interfaced it to the mingus python package
[http://code.google.com/p/mingus/] so that I could write mingus apps
that send midi data to the jack midi app of my choice instead of
mingus' built-in fluidsynth. I have a simple llittle pygtk app that
draws a button for each chord in the chosen key and sends that chord
out as midi on button presses. Fun!
I hope to one day clean it all up and put it somewhere, plus add
support for passing NumPy arrays to the jack thread to send out an
audio port, yada yada, more hot air and empty promises, etc...
There was another thread a few months back about message passing in
C++ for jack apps. It might be worthwhile to revisit that thread in
the context of wrapping things with Boost.Python.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.