O'Reilly logo

Programming Sound with Pure Data by Tony Hillerson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating with the Native Apps

Now we have a patch that sounds the way we want and that we can configure a bit to our taste, and it presents an API we can work with in the native apps. Let’s look at the app code for the Android and iOS platforms side by side, and see how we use libpd to control the patch.

If you’re not familiar with one of the platforms, just ignore that code or compare and get a sense for similarities and differences. In pretty much all the cases used in these apps, the code is strikingly similar.

Setting Up Pd

Let’s start with Android. The structure of the Android app is pretty standard, with one main activity, TasksActivity. Since there are a few different user interactions in this activity and the list item, I’ve consolidated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required