Hello, I am looking for a method for getting the number of arguments $1 $2 $3 ect...
for example in an object [foobar $1 $2 $3 $4] I would get the number 4.
This would be useful for using the same patch to build different kinds of objects with a variating number of parameters.
Thank in advance for any suggestion.
Patco.
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Cliquez ici.
Hallo, patco hat gesagt: // patco wrote:
Hello, I am looking for a method for getting the number of arguments $1 $2 $3 ect...
for example in an object [foobar $1 $2 $3 $4] I would get the number 4.
This would be useful for using the same patch to build different kinds of objects with a variating number of parameters.
There is an external [dollarg] in iemlib, which does this.
Frank Barknecht _ ______footils.org_ __goto10.org__
Cool, this object even gives a list of the dollar arguments at the second inlet, I will submit in the list the patch with this when it will be complete, thanks.
Frank Barknecht fbar@footils.org a écrit : Hallo, patco hat gesagt: // patco wrote:
Hello, I am looking for a method for getting the number of arguments $1 $2 $3 ect...
for example in an object [foobar $1 $2 $3 $4] I would get the number 4.
This would be useful for using the same patch to build different kinds of objects with a variating number of parameters.
There is an external [dollarg] in iemlib, which does this.
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Cliquez ici.
Hallo, patco hat gesagt: // patco wrote:
Cool, this object even gives a list of the dollar arguments at the second inlet, I will submit in the list the patch with this when it will be complete,
You could use [list-len] from [list]-abs or [length] from Zexy to count the elements in that list.
Frank Barknecht _ ______footils.org_ __goto10.org__