I'm trying to integrate libpd with an xcode project created from pythonista. So far I've managed to get it working in the simulator. The libpd AudioUnit runs in the background while the python interpreter runs a script. I can even use the pythonista sound module at the same time, and the sounds mix together.
However, it doesn't work so well on an real device (an iPad 2). libpd starts ok and makes sound, but then stops when the python interpreter loads. The libpd AudioUnit call back is still running ok, but somehow being silenced.
Any ideas as to what could be the problem, and what I might try?
Secondly, if I can solve this problem, the next issue is how to communicate with libpd from a python script. I can wrap the functions that send messages to/from libpd in a python c extension, but how do I make this module available to a pythonista script? I realise I can't load a library dynamically, so is there a way to let the python interpreter know it's there?
Any ideas or pointers would be much appreciated, as I think adding libpd to pythonista would create a very powerful platform.