PureData ported to the phonegap mobile framework (andriod/ios)
Objective-C JavaScript CSS C Shell Pure Data Perl
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CordovaLib
cordova
libpd
pd-for-phonegap.xcodeproj
pd-for-phonegap
www
.gitignore
README.md
pd-sketch_test2.pd.png

README.md

pd-for-phonegap

PureData ported to the PhoneGap mobile framework (andriod/ios). This is the demo application that runs on iOS devices (see video sample). The demo also contains the PhoneGap plugin. If I had more time I would package this properly. Send me a message to nudge that. This was tested on iOS but could be easily used on other systems. If you have trouble, again pop me a message.

The PureData sketch test2.pd is just two oscillators. One attached to the left speaker and one attached to the right.

PureData sketch

Plugins/Pd.m defines the sketch to be utilized (currently test2.pd). Idealy a properly packaged PhoneGap plugin would make this more configurable.

Finally the PhoneGap index.html contains the javascript that sends frequencies to the sketch Pd.send(x, y);. The send function is defined in Pd.js:

send: function ( leftval, rightval, success, fail) {
        return cordova.exec(success, fail, "Pd", "send", [leftval, rightval]);
}