Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
libpd
-
Hi
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.
-
Just a shot in the dark, but is there any chance you might have activated the mute switch on the device? (note that this wouldn't prevent music/video playback, so you might not notice it in regular use).
-
Thanks for your reply. No, it's not the mute switch, as I get audio when my app starts. The sound stops when the python interpreter loads. Is is perhaps the way you are setting up audio in pythonista - making it have exclusive use? What I don't understand is that it's fine in the simulator.
-
"....I think adding libpd to pythonista would create a very powerful platform"
Agreed! Please keep us updated on your progress. :)