<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">&gt; Thanks Ed.<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>&gt; Yes, it is indeed simple-looking. But simply editing that file by hand doesn't do me much good. I'd want the power of<br>&gt; scripting -- loops, variables, conditionals, to generate such a thing for me.</div>
<div>&gt; -Morgan<br><br>OK. What I mean is, the scripting of PD patches follows a simple formula.<br>The objects, messages etc are numbered from 0. Inlets of objects are numbered from 0 to the last inlet, as are outlets.<br>Connections are made thus:<br>connect sourceobject outletnumber targetobject inletnumber<br><br>simpleosc~.pd looks like this:<br><br>#N canvas 0 0 450 300 10;<br>#X obj 59 70 loadbang;<br>#X msg 59 96 440;<br>#X obj 59 127 osc~;<br>#X obj 58 159 *~ 0.1;<br>#X obj 51 202 dac~;<br>#X connect 0 0 1 0;<br>#X connect 1 0 2 0;<br>#X connect 2 0 3 0;<br>#X connect 3 0 4 0;<br>#X connect 3 0 4 1;<br><br>The #N canvas is the window (x-position y-position x-size y-size font-size).<br><br>You can use netreceive to send messages to a PD patch, or you can use a script to create a text file that is a PD patch.<br>You could use any language to write the script, or any language connected to localhost to network-communicate with PD.<br>Please see my
 enclosed examples to see what I mean. simpleosc~.pd is the patch shown above. dynamic_simpleosc~.pd shows you how it can be built dynamically from within PD.<br><br>Best wishes,<br>Ed Kelly<br><br><br><div class="gmail_quote">On Thu, Feb 3, 2011 at 3:35 PM, Ed Kelly <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:morph_2016@yahoo.co.uk" target="_blank" href="mailto:morph_2016@yahoo.co.uk">morph_2016@yahoo.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Load a PD patch in a text editor and take a look.<br>Ed<br><div>&nbsp;</div>Metastudio 4 for Pure Data - coming soon!<br><span>Metastudio 3 still available at <a rel="nofollow" target="_blank" href="http://sharktracks.co.uk/puredata">http://sharktracks.co.uk/puredata</a></span><div>
<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Morgan Packard &lt;<a rel="nofollow" ymailto="mailto:morgan@morganpackard.com" target="_blank" href="mailto:morgan@morganpackard.com">morgan@morganpackard.com</a>&gt;<div class="im">
<br><b><span style="font-weight: bold;">To:</span></b> <a rel="nofollow" ymailto="mailto:pd-list@iem.at" target="_blank" href="mailto:pd-list@iem.at">pd-list@iem.at</a><br></div><b><span style="font-weight: bold;">Sent:</span></b> Thu, 3 February, 2011 6:35:19<br><b><span style="font-weight: bold;">Subject:</span></b> [PD] Are
 there alternative means of creating patches besides the graphical editor?<br></font><div><div></div><div class="h5"><br>Hello there.<div>I'm interested in using PD. However, as someone who spends a lot of time with code, I'm actually a little afraid of the learning curve involved with the graphical programming language! I'd be much more comfortable creating my patches using, for example, a Python tool. Does such a programmatic PD patch generation tool exist? I can't imagine I'm the first person who's wanted such a thing.</div>

<div>thanks,</div><div>-Morgan<br clear="all"><br>-- <br><font color="#999999">================================</font><div><font color="#999999">Web:</font><br><div><a rel="nofollow" target="_blank" href="http://www.morganpackard.com"><font color="#333333">http://www.morganpackard.com</font></a></div>

<div><br></div><div><font color="#999999">Music/Art:</font></div><div><font color="#333333">Latest album:&nbsp;</font><a rel="nofollow" target="_blank" href="http://www.anticipaterecordings.com/releases/ANT_011/index.php"><font color="#333333">Moment Again Elsewhere</font></a></div>

</div><div><font color="#333333">iOS app </font><a rel="nofollow" target="_blank" href="http://itunes.apple.com/us/app/thicket/id364824621?mt=8"><font color="#333333">Thicket</font></a><font color="#333333"> available on iTunes store</font>.</div>

<div><span style="color: rgb(153, 153, 153);">================================</span></div><br>
</div>
</div></div></div></div>
</div><br>



      </div></blockquote></div><br><br clear="all"><br>-- <br><font color="#999999">================================</font><div><font color="#999999">Web:</font><br><div><a rel="nofollow" target="_blank" href="http://www.morganpackard.com"><font color="#333333">http://www.morganpackard.com</font></a></div>
<div><br></div><div><font color="#999999">Music/Art:</font></div><div><font color="#333333">Latest album:&nbsp;</font><a rel="nofollow" target="_blank" href="http://www.anticipaterecordings.com/releases/ANT_011/index.php"><font color="#333333">Moment Again Elsewhere</font></a></div>
</div><div><font color="#333333">iOS app </font><a rel="nofollow" target="_blank" href="http://itunes.apple.com/us/app/thicket/id364824621?mt=8"><font color="#333333">Thicket</font></a><font color="#333333"> available on iTunes store</font>.</div>
<div><span style="color: rgb(153, 153, 153);">================================</span></div><br>
</div>
</div></div>
</div><br>



      </div></div>
</div><br>



      </body></html>