[PD] Indexed array selection

Lorenzo lsutton at libero.it
Sun Oct 11 16:11:10 CEST 2009


Hi Fred,

The list-abs library has an object [list-idx] which might be useful. 
It's pretty easy to use.

Kind regards,
Lorenzo.

Fred Smith wrote:
>
> Hello Folks -
>
> I know there must be an easy way to do this, but I'm having terrible 
> trouble figuring it out.
>
> Is there an easy way to use a integer input to send a message out of 
> an array of messages?
>
> Ideally, it would look like this:
>
> [bang]
> |
> [2]
> |
> [newcommand apple beats carrots cheeseburger]
> |
> [print]
>
> and the output would be "carrots" (given 0 based indexing). Does this 
> command already exist?
>
> (Oh, and I'm pushing this into a GEM text object, so the screen would 
> say "carrots" in some way).
>
> I apologize if this is obvious, my head might be fatigued. select and 
> route take a value but split it into a bunch of different directions. 
> I want to go the other way....
>
> Thanks for the time if anyone has a suggestion!!!
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20091011/dad37b54/attachment.htm>


More information about the Pd-list mailing list