Re: [PD] pdpedia - creation of png images of patches
On Sat, 22 Sep 2007, Frank Barknecht wrote: A problem with running on a server is that with -nogui you seem to be unable to do a lot of the dynamic patching tricks and especially the "print" command I couldn't get to work without gui. have you tried something like sys_vgui(".x%lx.c print ...\n",x); ? _ _ __ ___ _ _ _ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] pdpedia - creation of png images of patches
Hallo, Andy Farnell hat gesagt: // Andy Farnell wrote: > I was thinking this: The diagram is the program -> The program is the diagram. > Surely a Pd file contains everything needed to make a printout of it, better > than an ascii diagram, perhaps use Gimp GD or somehow convert each line > > #X obj X Y objectname; > > to a little box. But then I can't figure how you'd do the inlets/outlets > and connections without a list of object properties. And all the GUI objects like sliders! ;) Ciao -- Frank Barknecht _ __footils.org_ __goto10.org__ ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] pdpedia - creation of png images of patches
Yes, stupid me, print is part of pd-gui not pd. I was thinking this: The diagram is the program -> The program is the diagram. Surely a Pd file contains everything needed to make a printout of it, better than an ascii diagram, perhaps use Gimp GD or somehow convert each line #X obj X Y objectname; to a little box. But then I can't figure how you'd do the inlets/outlets and connections without a list of object properties. Is that impossible? It seems The diagram is the program !-> The program is the diagram. :( On Sat, 22 Sep 2007 08:52:51 +0200 Frank Barknecht <[EMAIL PROTECTED]> wrote: > Hallo, > Andy Farnell hat gesagt: // Andy Farnell wrote: > > > btw, Pd does recognise "print", Frank also helped me get this going > > > > But: It uses old style netreceive which is suicide to run on a server. > > A problem with running on a server is that with -nogui you seem to be > unable to do a lot of the dynamic patching tricks and especially > the "print" command I couldn't get to work without gui. > > Ciao > -- > Frank Barknecht _ __footils.org_ __goto10.org__ > > ___ > PD-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list -- Use the source ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] pdpedia - creation of png images of patches
Hallo, Andy Farnell hat gesagt: // Andy Farnell wrote: > btw, Pd does recognise "print", Frank also helped me get this going > > But: It uses old style netreceive which is suicide to run on a server. A problem with running on a server is that with -nogui you seem to be unable to do a lot of the dynamic patching tricks and especially the "print" command I couldn't get to work without gui. Ciao -- Frank Barknecht _ __footils.org_ __goto10.org__ ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] pdpedia - creation of png images of patches
Nice. I did this a little while ago too with the help of Frank and Miller in order to print out entire directories of patches. You might want to add this awk script into the chain (assuming it's still needed), it corrects the pointsize and position of object text in the postscript file. On Fri, 21 Sep 2007 23:39:53 + [EMAIL PROTECTED] wrote: > > i just got an idea how to easealy create antialiased images of patches, > as someone had proposed this as a pdpedia feature erlier on this list. > > in order to do it automaticly i first thougt of adding [loadbang]-[;pd > print patch.pd( to each patch (by just echoing a few lines to it) > but apparently pd doesnt recognize 'print' msg ..but there should be > some other way of making it ( via tcl msgs , i suppose ) > so then just a pstoimg can be used : > pstoimg -antialias -aaliastext pd.ps > > [shell] external can be used as well, actualy .. and maybe after [shell] > returns 0, [; pd exit( can be sent. > > i just have writen this in case someone is realy gonna add this feature > to pdpedia .. > > > ___ > PD-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list -- Use the source psfix.awk Description: Binary data ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] pdpedia - creation of png images of patches
btw, Pd does recognise "print", Frank also helped me get this going But: It uses old style netreceive which is suicide to run on a server. The attached patch was used to print out live snapshots of graphs in running Pd patches. Send two commands on the socket, first one open the patch you want, sleep is needed or you get a blank page, second one tells Pd to print. >From Perl print "opening Pd file\n"; $pdopencmd = "echo \"pd open $pdfile ./;\""." "." | pdsend 3001"; # open new Pd file system($pdopencmd); sleep(2); print "printing pd to postscript\n"; $pdprintcmd = "echo \"pd-$pdfile print $pdfile.ps;\" | pdsend 3001"; #print ps image system($pdprintcmd); On Fri, 21 Sep 2007 23:39:53 + [EMAIL PROTECTED] wrote: > > i just got an idea how to easealy create antialiased images of patches, > as someone had proposed this as a pdpedia feature erlier on this list. > > in order to do it automaticly i first thougt of adding [loadbang]-[;pd > print patch.pd( to each patch (by just echoing a few lines to it) > but apparently pd doesnt recognize 'print' msg ..but there should be > some other way of making it ( via tcl msgs , i suppose ) > so then just a pstoimg can be used : > pstoimg -antialias -aaliastext pd.ps > > [shell] external can be used as well, actualy .. and maybe after [shell] > returns 0, [; pd exit( can be sent. > > i just have writen this in case someone is realy gonna add this feature > to pdpedia .. > > > ___ > PD-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list -- Use the source printer.pd Description: Binary data ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list