[LAU] Custom UI development in Pure Data

R. Mattes rm at mh-freiburg.de
Sun Sep 1 18:17:45 UTC 2013


On Sun, 1 Sep 2013 14:01:45 -0400, Marc Lavallée wrote
> Federico Lopez <fede2001 at hotmail.com> a écrit :
>
> > There is a toolkit using WebSockets to communicate Pd and
> > HTML5/javascript
> >
> >   http://dancingbonemachine.elsoftwarehamuerto.org/tutorial.html
>
> Interesting. It uses libpd. Id didn't know much about libpd:
> https://github.com/libpd/libpd/wiki
> There's APIs for many languages and environnements,
> including a recent for addon for OpenFrameworks:
> https://github.com/danomatika/ofxPd

Just keep in mind: libpd can only _run_ pd patches, you cannot
create/modify patches. Iff this is all you need than libpd might
be a valid replacement for Pd proper. Another obstacle to consider:
libpd doesn't provide any build-in way to handle audio data. You need
to write code to send/receive audio/midi data to your framework-of-choice.
On Linux that means writing quite some jack code (and, since libpd's
model of operation is push/pull, that code isn't really trivial).
That's where the example code is astonishing terse :-) :

 ----[file: cppTest$/src/main.cpp]------------------------------------

       // fill inbuf here
       pd.processFloat(1, inbuf, outbuf);
       // use outbuf here

---------------------------------------------------------------------

Frankly, I'd rather write my GUI in Qt (or whatever) and communicate whith
a headless pd process by means of OSC or even "raw" pd messages.

 Cheers, Ralf Mattes

--
R. Mattes -
Hochschule fuer Musik Freiburg
rm at inm.mh-freiburg.de



More information about the Linux-audio-user mailing list