io.github.libpd.android:pd-core

Pure Data for Android

License

License

GroupId

GroupId

io.github.libpd.android
ArtifactId

ArtifactId

pd-core
Last Version

Last Version

1.2.1-rc6
Release Date

Release Date

Type

Type

aar
Description

Description

io.github.libpd.android:pd-core
Pure Data for Android
Project URL

Project URL

https://github.com/libpd/pd-for-android
Source Code Management

Source Code Management

https://github.com/libpd/pd-for-android

Download pd-core

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.libpd.android/pd-core/ -->
<dependency>
    <groupId>io.github.libpd.android</groupId>
    <artifactId>pd-core</artifactId>
    <version>1.2.1-rc6</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/io.github.libpd.android/pd-core/
implementation 'io.github.libpd.android:pd-core:1.2.1-rc6'
// https://jarcasting.com/artifacts/io.github.libpd.android/pd-core/
implementation ("io.github.libpd.android:pd-core:1.2.1-rc6")
'io.github.libpd.android:pd-core:aar:1.2.1-rc6'
<dependency org="io.github.libpd.android" name="pd-core" rev="1.2.1-rc6">
  <artifact name="pd-core" type="aar" />
</dependency>
@Grapes(
@Grab(group='io.github.libpd.android', module='pd-core', version='1.2.1-rc6')
)
libraryDependencies += "io.github.libpd.android" % "pd-core" % "1.2.1-rc6"
[io.github.libpd.android/pd-core "1.2.1-rc6"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Download Release Build

Join the chat at https://gitter.im/libpd/pd-for-android - Try the chat for problems with setting up the library to work with your app

StackOverflow - For questions regarding libpd

How to use the library

Make sure you have JCenter in your repositories:

allprojects {
    repositories {
        jcenter()
        // ... other repositories
    }
}

Add the dependency to your app:

dependencies {
    implementation 'org.puredata.android:pd-core:1.2.1-rc1'
    
    // ... other dependencies
}

Please note that pd-for-android depends on the vanilla version of Pure Data. Currently this is Pure Data vanilla version 0.51-3. You can get desktop distributions of it here: http://msp.ucsd.edu/software.html

If you're building the patch for your app using the extended distribution of Pure Data, or any other distribution that is not vanilla, you should be careful not to use PD objects that are not part of the vanilla distribution, because these will not work with libpd out of the box. It is however possible to add PD externals to your pd-for-android app. For a simple example as to how this could be done see the PdTest app in this repository, specifically the jni folder and the build.gradle file. If you take this path, you'll need to clone this repository and use it as the base folder for your app, similar to the way described in the following section on creating an .aar file.

How to create an .aar file of pd-for-android

Using the terminal

  1. Clone this repository
  2. Go to the repository folder:
cd pd-for-android
  1. Initialize and udpate the git submodules:
git submodule sync --recursive
git submodule update --init --recursive
  1. Install dependencies and assemble the release: (Note: Windows users should run gradlew)
./gradlew androidDependencies
./gradlew clean assembleRelease

Now you have your PdCore .aar file in the folder PdCore/build/outputs/aar

Using Android Studio

  1. Install Android Studio
  2. Make sure the Android SDK and NDK tools are installed and that Android Studio is properly configured to use them
  3. Clone and initialize this repository as per steps 1-3 above
  4. Create a new Android Studio project by importing settings.gradle from the pd-for-android root folder: File > New > Import Project...
  5. Open the Gradle Toolbar and run the task assembleRelease in the project :PdCore

How to update PdCore module to use latest libpd version

  1. From the project root folder, step into the libpd submodule folder: cd PdCore/src/main/jni/libpd
  2. Update the libpd submodule to the latest commit by running: git fetch && git checkout origin/master
  3. Step back to the project root folder and run git submodule update --init --recursive
  4. Test that the PdTest app builds and runs correctly. This can be done by importing the project in Android Studio and running a clean build ('Build' > 'Rebuild Project', run PdTest).
io.github.libpd.android

libpd

Pure Data computer music system as an embeddable audio synthesis library

Versions

Version
1.2.1-rc6
1.2.1-rc5