[PD] creation time AND local variables in the same abstraction.
Frank Barknecht
fbar at footils.org
Sun Aug 27 20:48:57 CEST 2006
Hallo,
Tas Pas hat gesagt: // Tas Pas wrote:
> Having red as many mailing list posts as I could find, I didn't find
> how to use a local variable along with a creation time variable.
> I have a [soundfiler] object which needs two arguements: the sample
> name and the array to load the sample to.
>
> The abstraction is called with a creation time arguement, so the $1
> is reserved. When I use the openpanel in order to receive the
> symbol (string) of the path of the .wav file I want to load, I
> cannot pass it as an variable value in no other variable than $1.
I guess with "creation time variable" you mean what also or more often
is called "creation argument", yes? (Creation) arguments are *only*
evaluated in [object boxes], but not in [messages(. As you probably
send a message to soundfiler, you can still use $1 in that message.
Message $-variables are independent from abstraction arguments.
See attached example.
Ciao
--
Frank Barknecht _ ______footils.org_ __goto10.org__
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dollars.tgz
Type: application/x-gtar
Size: 1235 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060827/f9417234/attachment.tgz>
More information about the Pd-list
mailing list