Re: [LAD] Communicating between python UI and C++ engine for real time audio?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Iain Duncan <iainduncanlists@...>
Cc: Arnold Krille <arnold@...>, <linux-audio-dev@...>
Date: Thursday, November 3, 2011 - 8:52 pm

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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] Communicating between python UI and C++ engine for..., Paul Coccoli, (Thu Nov 3, 8:52 pm)
Re: [LAD] Communicating between python UI and C++ engine for..., Gabriel M. Beddingfield, (Thu Nov 3, 2:05 am)
Re: [LAD] Communicating between python UI and C++ engine for..., Vytautas Jancauskas, (Thu Nov 3, 7:49 am)