Re: [LAU] Custom UI development in Pure Data

From: R. Mattes <rm@email-addr-hidden-freiburg.de>
Date: Sun Sep 01 2013 - 21:17:45 EEST

On Sun, 1 Sep 2013 14:01:45 -0400, Marc Lavallée wrote
> Federico Lopez <fede2001@email-addr-hidden> 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@email-addr-hidden-freiburg.de
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Mon Sep 2 08:15:02 2013

This archive was generated by hypermail 2.1.8 : Mon Sep 02 2013 - 08:15:02 EEST