hi list! this is a kind of a naive question but how do I get and abstraction to be instatiated with a string as an argument. I max you usually use the #1, #2, and so forth but obviously if tried that and it didn't work... Could you please share some light on this regarding PD?? thanks Ivan
ok, but as far as I know I thought the $1 was used to change an item in a list message. something like:
23 $1 45
not for instatiating... But maybe I'm wrong... may the $1 is just not substituted by the string or number used as an argument (refreshed I mean).
Ivan
Frank Barknecht wrote:
Ivan schrieb:
I max you usually use the #1, #2, and so forth but obviously if tried that and it didn't work...
In PD you use $1, $2, $3, and so forth. There are some things to consider, so you should RTHM (read the html manual).
ciao,
Hi,
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?)
Does that help?
Ben
On Wed, 24 Jul 2002, Ivan wrote:
ok, but as far as I know I thought the $1 was used to change an item in a list message. something like:
23 $1 45
not for instatiating... But maybe I'm wrong... may the $1 is just not substituted by the string or number used as an argument (refreshed I mean).
Ivan
Frank Barknecht wrote:
Ivan schrieb:
I max you usually use the #1, #2, and so forth but obviously if tried that and it didn't work...
In PD you use $1, $2, $3, and so forth. There are some things to consider, so you should RTHM (read the html manual).
ciao,
--
Ivan Almeida Soares Franco ivan.franco@ydreams.com
YDreams SA www.ydreams.com
(imagine a world with no sound or color...) www.iua.upf.es/~ifranco
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
Frank Barknecht _ ______footils.org__