Hallo, Dan Wilken hat gesagt: // Dan Wilken wrote:
Frank,
The patch you gave me helped a lot, got me wondering, is there any way to create connections dynamically? within an open canvass? Say a message:
; connect 0 2 1 1
I tried this and a couple of other things to no avial...
Your try is almost correct. You can find out the possible pd messages by looking at pd patches with a text editor, but they also are described here:
http://pd.iem.at/pdwiki/index.php?PdInternalMessages
or in the pure-data.sf.net CVS repository.
connect has the following syntax:
connect object-number ob.-outlet-number ob.-number ob.-inlet-number
xlet- and object-numbers start counting at 0!
So if you create a metro:
obj 10 40 metro
and a float:
obj 10 60 f
you can connect these with:
connect 0 0 1 1
like this:
[metro]
[f ]
I.e. connect metro's first outlet (==0) with the second inlet (==1) of the float.
BTW: there also is "disconnect obj in obj out"
Frank Barknecht _ ______footils.org__