[PD] feature request for [list]

Mathieu Bouchard matju at artengine.ca
Thu Apr 20 06:40:13 CEST 2006


On Thu, 20 Apr 2006, Chris McCormick wrote:

>            list index to look up
>            |
>            | [r mylist]
>            |  |
>            | [list length]
>            |  |
> [r mylist] [mod]
>   |        |
>  [list split]
>   |

this doesn't work, because the final list index is computed before the
list comes in, so it can't have the correct modulo. You'd need to add [t b 
a] and [t a a] in appropriate places to ensure correct order.

Alternatively, you can [swap]ify the [mod] to avoid having to bang it.

 _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada




More information about the Pd-list mailing list