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 ...

Get Programming Sound with Pure Data now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.