oh, didn't know all of this, where it's documented?
just [bang<--[list prepend $0foo]--[expr size("$s1")] did the trick
thanks and sorry for the misleading.
Here's the proper way to do it:
[symbol $0-foo] | [expr size("$s1")]
substitute anything that outputs the symbol (with the symbol selector) that you want -- [makefilename], etc.
Matt
Last option would be to try using [sprintf], [makefilename] or similar to create the array name, and send to [expr size($1)] . Maybe....
Prost! D.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
there is a little part about it in [expr] help file
[expr $s2[$f1]]
really nice trick
----- Mail Original ----- De: "colet patrice" colet.patrice@free.fr À: "Matt Barber" brbrofsvl@gmail.com Cc: "Sisti Sette, Matteo" matteosistisette@gmail.com, "pd-list" pd-list@iem.at, "Derek Holzer" derek@umatic.nl Envoyé: Samedi 27 Mars 2010 21h55:23 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [PD] expr size() refuses some array names
oh, didn't know all of this, where it's documented?
just [bang<--[list prepend $0foo]--[expr size("$s1")] did the trick
thanks and sorry for the misleading.
Here's the proper way to do it:
[symbol $0-foo] | [expr size("$s1")]
substitute anything that outputs the symbol (with the symbol selector) that you want -- [makefilename], etc.
Matt
Last option would be to try using [sprintf], [makefilename] or similar to create the array name, and send to [expr size($1)] . Maybe....
Prost! D.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
http://crca.ucsd.edu/~syadegar/expr.html
specifically:
Tables and variables can be accessed the same way one dimensional arrays are accessed in C; for example, "valx + 10" will be evaluated to the value of variable 'valx' + 10 (variables have to be defined using the 'value' object) and "tabname[5]" will be evaluated to be the 5th element of table "tabname". The name of the table can be a variable as well; for example "$s2[5]" will be evaluated to be the 5 element of the array whose symbol has been passed in inlet 2.
On Sat, Mar 27, 2010 at 4:55 PM, colet.patrice@free.fr wrote:
oh, didn't know all of this, where it's documented?
just [bang<--[list prepend $0foo]--[expr size("$s1")] did the trick
thanks and sorry for the misleading.
Here's the proper way to do it:
[symbol $0-foo] | [expr size("$s1")]
substitute anything that outputs the symbol (with the symbol selector) that you want -- [makefilename], etc.
Matt
Last option would be to try using [sprintf], [makefilename] or similar to create the array name, and send to [expr size($1)] . Maybe....
Prost! D.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
colet.patrice@free.fr escribió:
Here's the proper way to do it:
[symbol $0-foo] | [expr size("$s1")]
Yessss, great!
I thought I had tried that - but I probably mistyped something.
Thanks a lot
m.