我正在尝试制作一个 Android 应用程序,使用 Android 处理进行视觉方面,使用 puredata 进行声音合成。这可行吗?
我正在尝试为 Android 构建一个声音玩具,并且我最熟悉视觉方面的 Processing,已移植到Android。我想使用 Puredata 来处理声音,因为目前它似乎是 Android 上 dsp 的最佳选择。 我在处理论坛上被告知,通过 Puredata 与处理通信的最佳方式是使用 TCP 或 UDP 消息。我不知道如何执行此操作,因为我正在处理环境中创建 .apk,并且我不知道如何通过处理启动 Puredata 补丁。这只能在纯 Java 中实现吗?或者我是否必须同时启动一个单独的 Puredata 应用程序。有没有什么好的资源可以学习如何发送 TCP/UDP 消息?任何帮助将不胜感激,我可以澄清它是否会让事情变得更容易。
编辑:似乎 OSC 使用 TCP 协议,所以我不太确定为什么我不能使用 OSC。我唯一感到困惑的部分是如何将处理草图和 Puredata 补丁打包到一个 APK 中。
谢谢
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 ported 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道 Android 平台开发的具体细节,但您需要能够从一个应用程序运行另一个应用程序。 此堆栈溢出问题向您展示了如何这样做。完成此操作后,您将能够通过 osc 向您的 pd 实例发送命令。
另一种选择是使用 libpd。据其中一位开发人员称,他们正在开发 将其打包为处理库。如果您用 c 语言编写可视化代码,那么您将能够链接到此 libpd 进行音频处理。
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.