Hi list,
how can I send a message like [obj 120 $1table $2( to a subpatch named [pd $0-subpatch] ?
I tried:
[obj 120 $1 table $2( | [s pd-$0-subpatch]
but the $0 in there isn't replaced (because it's not at the beginning ?)
thanks, Tim
anyway $0 won't work inside a message box.
use this:
[f $0] | [makefilename pd-%d-subpatch] | | [$1] [$2] | | | [pack s f f] | [; $1 obj 120 $2 table $3(
hard off wrote:
anyway $0 won't work inside a message box.
while this is true in general it doesn't apply here, as tim's example uses [s pd-$0-subpatch] (no message-box involved in the problematic code)
tim: your problem is most likely related to an outdated version of Pd you are using. since Pd-0.40 you can use $args within symbols, so your example will perfectly work.
if, for some reason, you don't feel like upgrading Pd, use hard off's example.
btw, with Pd>=0.40, you can also change the sendlabel of [send], which i think is somewhat more elegant (and efficient) than sending via message-boxes.
fmgasd.r IOhannes
use this:
[f $0] | [makefilename pd-%d-subpatch] | | [$1] [$2] | | | [pack s f f] | [; $1 obj 120 $2 table $3(
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hallo, tim hat gesagt: // tim wrote:
how can I send a message like [obj 120 $1table $2( to a subpatch named [pd $0-subpatch] ?
http://puredata.info/docs/tutorials/TipsAndTricks#getting-0-into-messages
I tried:
[obj 120 $1 table $2( | [s pd-$0-subpatch]
but the $0 in there isn't replaced (because it's not at the beginning ?)
It is replaced in pd-0.40 and up.
Frank Barknecht _ ______footils.org__