开发者

I'm trying to make an Android app using Android Processing for the visual side, and puredata for sound synthesis. Is this feasible?

I'm trying to build a sound toy for Android, and I'm the most familiar with Processing for the visual side, which has been po开发者_开发技巧rted for Android. I want to use Puredata for sound, because at the moment it seems like the best option for dsp on Android. I've been told on the Processing forums that the best way to communicate with Processing through Puredata is to use TCP or UDP messages. I have no idea how to do this, because I am creating the .apk in the Processing environment and I don't see how I can launch the Puredata patch through Processing. Would this only be possible in pure Java? Or would I somehow have to launch a separate Puredata app at the same time. And are there any good resources for learning how to send TCP/UDP messages? Any help would be appreciated, and I can clarify if it makes it easier.

EDIT: It seems as if OSC uses the TCP protocol, so I'm not really sure why I can't use OSC. The only part I'm confused about is how to package the Processing sketch and the Puredata patch into one APK.

Thanks


I don't know the specifics of android platform development, but you would need to be able to run one app from within the other. This stack overflow question shows you how to do that. Once you have done that, you will be able to send commands over osc to you pd instance.

Another option would be using libpd. According to one of the devs, they are working on packing it up as a processing lib. If you wrote your visual code in c, then you would be able to link down to this libpd for your audio processing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜