dears, i'm having a list with variable size and would like to read out the last list-element. how could this be done? please help... thanks carlos
carlos katastrofsky wrote:
dears, i'm having a list with variable size and would like to read out the last list-element. how could this be done? please help... thanks carlos
Dear Carlos,
try using [packel] (get the nth element of a list) and [length] (get length of a list) from zexy.
Best, Gerda
carlos katastrofsky a écrit :
dears, i'm having a list with variable size and would like to read out the last list-element. how could this be done? please help... thanks carlos
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi you can do it with [list-splat -1] second outlet, this abstraction comes from list-abs
http://footils.org/cms/show/46
___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
this is great, thanks a lot!
Patco schrieb:
carlos katastrofsky a écrit :
dears, i'm having a list with variable size and would like to read out the last list-element. how could this be done? please help... thanks carlos
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi you can do it with [list-splat -1] second outlet, this abstraction comes from list-abs
http://footils.org/cms/show/46
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
I could never get that behaviour to work with [list split -1] Pat,
But you just made me realise, Karlheinz [last] is an abstraction...
[inlet] | [t a a] | | | [list-len] | | | [- 1] | | [ list split] . | . [outlet]
[list-len] is itself an abstraction
On Sat, 06 Jan 2007 20:03:16 +0100 Patco megalegoland@yahoo.fr wrote:
carlos katastrofsky a écrit :
dears, i'm having a list with variable size and would like to read out the last list-element. how could this be done? please help... thanks carlos
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi you can do it with [list-splat -1] second outlet, this abstraction comes from list-abs
http://footils.org/cms/show/46
___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Just for the archive and hopefully for others like me, strugling with their first externals.
I have written a small tutorial about how to compile an external with Dev-C++. I don't go into the programming itself, since there is a very good tutorial on http://iem.at/pd/externals-HOWTO/ about that. Compiler options and code to export the setup function are not covered there, however. So that's why I put this on my website, at
http://www.youngmusic.org/wiki/index.php/PD-linking-tutorial
Greetings,
yvan vander sanden
On Sat, 6 Jan 2007, carlos katastrofsky wrote:
i'm having a list with variable size and would like to read out the last list-element. how could this be done? please help...
[listelement -1] with -lib gridflow
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
Karlheinz Essl wrote a [last] which will do that.
You could do it with [list split] too if you have a way to reverse the list.
On Sat, 06 Jan 2007 19:52:35 +0100 carlos katastrofsky carlos.katastrofsky@gmx.net wrote:
dears, i'm having a list with variable size and would like to read out the last list-element. how could this be done? please help... thanks carlos
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list