Hey Berenger, thanks for the help, but I'm still stuck. Where do I type in the commands? I'm on Win7 64 here and when I create a command prompt, enter the folder and type the command, I get "'convert-app-name' is not a recognized as an internal or external command, operable program or batch file." In Bazaar I've tried the following/; opened the MySynthesizer location, and typed in "convert-app-name" in the "command" box under Bazaar/All Commands, to get "bzr: ERROR: unknown command "convert-app-name".
-
Running your patches on Android usind PdDroidParty in 10 Steps
-
OK, so I've established that they're Linux scripts. I've not been able to run them successfully with Cygwin, so I guess I'm looking at installing Ubuntu on a spare PC - is there an easier way that I'm missing?
-
Me again. So maybe those scripts run on Mac OS? Either way, I tried again with Cygwin, but it doesn't understand the rpl command. I've also tried running Ubuntu off a CD-Rom, but I couldn't run the scripts successfully that way either.
I thought I might skip the scripts and try to make the required changes in Eclipse, but am stuck importing the source. I downloaded a new clone of the source and ran "android update project --name MySynthesizer --target 2 --path e:/MySynthesizer" on it. In Eclipse I went File/New/Android Project, selected "Create project from existing source" and browsed to the MySynthesizer location. This created a new eclipse project under the title PatchSelector. Everything seems to have been imported, but under the Problems tab I get 80 errors and 83 warnings - obviously very little is the way it should be.
Apologies to those of you facepalming your way through my messages, but like I said, I'm a complete noob. To be honest, I'm running out of ideas here. And the instructions made it sound so easy ;^)
-
Hi
those scripts do run on linux they may run on OS too. RPL is something you need to install first (from synaptic or >sudo apt-get rpl)
the scripts make reference to ./PdCore and (./btmidi, not sure about this one), so you should have cloned both those folder from the same source.
When importing the project in eclipse you should, have first imported btmidi and PdCore. Then tight click on the project -> properties, click on the android pannel (left hand side). Remove PdCore as a library and add it again. It should take care of some of the errors .
-
Thanks again, Berenger - I'll let you know how I get along.
-
Just a report back. I've finally succeeded in getting my app to function stand-alone and now have it available in the Android Market. The free version is available on the Android Market here: What Comes Around Free. Here are the steps I followed to get it working for me.
After installing Ubuntu on a spare computer (along with the rpl command as detailed before), I managed to get the scripts to run, but still couldn't get the "ant install" to function as expected.
I went back to the Windows 7 PC and tried the Eclipse route again. This time I laid the proper groundwork and resolved a lot of errors by importing everything as per Peter Brinkmann's instructions on the Pd Everywhere forum.
"[...] make sure that you’ve cloned pd-for-android and its dependencies like this:
git clone git://gitorious.org/pdlib/pd-for-android.git
cd pd-for-android
git submodule init
git submodule update
Now you need to import btmidi/BluetoothMidi and pd-for-android/PdCore/jni/libpd into Eclipse (make sure to use
File -> Import… -> General -> Existing project…). Now you can import PdCore. If you see error messages, those are probably due to bugs in Eclipse, and you should be able to sort them out by refreshing and cleaning everything once or twice. (This is the annoying part…)"I had to fix additional Eclipse errors on my system by setting the Java Compiler Compliance Level to 1.6 for each of the imported projects.
Next I tried to import the project I created by running the scripts in Linux into Eclipse on the Windows machine, but it seems as if one of the scripts deletes the Eclipse project. I went back and imported the originally downloaded PdDroidParty project from the MySynthesizer folder. The project imports under the title PatchSelector. Again, I set Java Compiler Compliance Level to 1.6 (right-click PatchSelector in the Package Explorer - it's under Java Compiler). I also had complaints until I set the Project Build Target to Android 2.2 (right-click PatchSelector in the Package Explorer - it's under Android).
This left me with 9 final errors related to the SVGParser. I resolved this by right-clicking PatchSelector in the Package Explorer and going to Build Path/Configure Build Path/Add JARs and selecting svg-android.jar under PatchSelector/libs in my workspace directory. I remember having to restart Eclipse a couple of times to get rid of spurious errors (!)
Next I renamed PatchSelector to my own title (in my case WhatComesAround) by right-clicking in the Package Explorer and choosing Refactor/Rename.
I copied across files that were created when I ran the Linux scrips, notably:
* patch.zip (res/raw folder) - this zip contains a folder called "patch", itself containing your pd patch as a droidparty_main.pd file, as well as a file titled VERSION-169 (in my case) - it doesn't seem to have an extension and simply contains the text 169
* I placed my splash.svg in the same folder (res/raw)
* my icon.png in the folder res/drawable
* the same icon.png in bin/res/drawable
* in the res/values folder, an patch.xml and strings.xmlNext I set about renaming files and occurrences within files with my own names - one of the Linux scripts does this, but I did it by hand on the Windows machine using Windows Grep (http://www.wingrep.com/) to search for all instances, and changing names inside Eclipse. I replaced all occurrences of PdDroidParty with my own name (WhatComesAround), a single instance of PdDroid Party with What Comes Around, as well as any mention of MySynthesizer (again with WhatComesAround).
After testing in the emulator I exported signed .apk's from Eclipse - one for a free and one for a paid version.
-
Nice work, nice looking app.
thanks for the feedback I'll check it in more details and try to reproduce this
-
wow thats great that you got a good gui and a icon
your examples are hard to do? -
cheers for the info moshang, app working fine on my desire S.
are droidparty or libpd multitouch capable on android?
-
for droidparty no mutli-touch support yet, but it will be comming
as for libpd the mutli-touch will be dealt by the client code, since libpd is a dsp library.
If you use RjDj it's mutli-touch ready
[r #touch]
|
[route 1 2] <- routes fingers
| |
| [route down up xy] <- get what you want from each finger
[route down up xy]Cheers
-
so if I compile an apk it will be multitouch?
-
Well it depends
-if you use droidparty no not yet...
- if you use libpd as a dsp library in eclipse or another IDE, you need to have the client code deal with that.
I guess you could import the code from Sceneplayer (equivalent to rjdj for android), make it play only one patch and compile it to an apk but you won't have the svg support (you'll need to build your interface from images)
=> you'll need to digg in code to use libpd (a little of knowledge in java would help a lot).
If you are familiar with processing, it is possible to use libpd and processing within eclipse and make the communicate. a good tuto here : https://docs.google.com/document/pub?id=1I5GitcgVZsJ_48EXASHbXwdScNwSWixMuzOPdh-swKY
- if you use libpd as a dsp library in eclipse or another IDE, you need to have the client code deal with that.
-
thanks for the info, i'll wait for droidpartys support!
great work droidparty crew, having loads of fun with this!
-
Well it's all Chris's work !
So I join in to congrat and thank Chris !
-
From my side also a huge thanks to Chris! My projects would have been impossible without PdDroidParty. Of course, the same goes for Peter Brinkmann's libpd and Pure Data itself. @ShawnPD I'm lucky to have a designer friend who helped me with the look of the app. Chris has made skinning the app really easy. Just keep in mind that the background .svg seems to be a lot more forgiving than the .svg's for the interface objects - getting the interface ones slightly wrong can cause the app to have no interface. I followed Chris' advice and modified the ones he gave in Inkscape, rather than make my own.
-
OK, I'm also a complete noob regarding eclipse and compiling, but I've got this far...
I've cloned Droidparty, Pd-for-android and Btmidi using the scripts in Ubuntu.
I'm now on Eclipse in windows trying to import Btmidi and libpd. I get the following error when I import Btmidi
"BluetoothMidi' is missing required source folder: 'gen'"
-
Well Ive got a bit further,
I've got eclipse working on ubuntu 11.10, I'm able to import PdCore and circle of fiths and run them in AVD. I had to make sure I had the right Java files and add repositories to get ADT working.
I now need to import the DroidParty project. I can get the first script to work:
`./convert-app-name mysynth "My Synthesizer"`
but I cant get the second to work, `android update project --path .`. I get the error android: command not found.
I realise this is a problem with the system path to the SDK, Ive edited bash.rc and added the path to the SDK tools and platform-tools directories but I'm having no joy.
-
Some info on the 'android update project' command, it works like this :
"android update project --path /full_path_to_PdDroidParty_clone" and should be run from /full_path_to_android_sdk/tools/
-
thanks,
the command worked as above when I added ./ to the start,
-
is there a way to increase the samplerate of DroidParty?