[PD] Instatiating
Frank Barknecht
barknech at ph-cip.uni-koeln.de
Thu Jul 25 16:47:01 CEST 2002
Hi,
Ben Bogart - FMPM/F1999 hat gesagt: // Ben Bogart - FMPM/F1999 wrote:
> in a message box $1 expands to the first atom in the list sent to the
> messagebox
>
> in an object box the $1 expands to the first argument of the
> abstraction. (only when the object in question is inside an abstraction?)
Otherwise arguments extend to nothing, but what is "nothing", depends
on where you used the $dollar-variables.
See attached patch dollar.pd. When used standalone, it prints
symbol: symbol
symbol-message: The symbol is
float: 0
float-message: The float is 0
and when used as an abstraction with arguments (with-dollar.pd), it
prints:
symbol: symbol hi
symbol-message: The symbol is hi
float: 2
float-message: The float is 2
ciao,
--
Frank Barknecht _ ______footils.org__
-------------- next part --------------
#N canvas 0 0 572 376 10;
#X obj 131 143 symbol \$1;
#X obj 293 127 f \$2;
#X msg 172 96 bang;
#X obj 131 232 print symbol;
#X obj 292 229 print float;
#X obj 172 60 inlet;
#X msg 319 164 The float is \$1;
#X obj 319 190 print float-message;
#X msg 146 172 The symbol is \$1;
#X obj 146 198 print symbol-message;
#X connect 0 0 3 0;
#X connect 0 0 8 0;
#X connect 1 0 4 0;
#X connect 1 0 6 0;
#X connect 2 0 0 0;
#X connect 2 0 1 0;
#X connect 5 0 2 0;
#X connect 6 0 7 0;
#X connect 8 0 9 0;
-------------- next part --------------
#N canvas 0 0 450 300 10;
#X obj 143 131 dollar hi 2;
#X msg 140 97 bang;
#X connect 1 0 0 0;
More information about the Pd-list
mailing list