Apologies for spam; we've changed our policy by requiring approval for accounts, and deleted all existing spam and user - thanks for your help flagging content. We continue to test our forums and Vanilla software, aiming for release early in 2013. If you need to give us feedback outside the forum, contact us via http://createdigitalmusic.com/contact/ or on Facebook
Some advice for integratting libpd on a java project (newby style)
  • Hi, I'm trying to integrate libpd onto a java project that by now uses OSC messages for communicatting with the pure data patches related to it. How should I start integratting it if I'm using Eclipse? I'm looking for newby-oriented-advice! Thanx so much!

  • What platform are you targeting, e.g., Android, Linux, Mac?

  • BUMP. Guess he never came back, but I want to know this as well. I've built a standalone Java desktop app that is receiving a UDP stream of audio from the libpd Android app I built on my phone. It works decently, but it would also be useful to be able to include libpd in my Java app and use the phone or tablet as a controller. How does one go about building libpd just for straight Java? I'm on a WIndows PC for this, but a platform independent solution would of course be ideal.

  • OK after a bit more searching I found this thread

    http://createdigitalnoise.com/discussion/661/straight-java-example-for-libpd/p1

    asking the same thing, and see Peter provided an example at

    https://github.com/libpd/libpd/tree/master/samples/com/noisepages/nettoyeur/libpd/sample

    So I set up a test app, added pd.core as a library to Java Build Path in eclipse, and imported PdBase, but it throws a runtime error 'couldn't find pdnative.dll.' It's not mentioned in the example so I'm stuck.

    [EDIT] OK so after more digging I found the libpd-java-build project:

    https://github.com/airbaggins/libpd-java-build

    as per the quickstart instructions, I included libpd.jar in my Java app and BAM it works ; ) Thanks much to airbaggins for making that, and to Peter again for making libpd and that example.

  • FYI: There's also a new branch of libpd that uses PortAudio directly, i.e., it's a cross-platform solution that doesn't depend on JavaSound. Check it out: https://github.com/libpd/libpd/tree/portaudio

    The portaudio branch is still experimental, though. In particular, the Makefile hasn't yet been updated for Windows. It would be great if you would figure out how to build the portaudio branch on Windows.

  • o_O that sounds really cool, Peter. I must confess though that I don't entirely understand the voodoo behind building makefiles. Hopefully, another forum member with more experience in that area will read this and give it a shot.