Forums > MaxMSP

how do i make a [zl] do this?

December 9, 2008 | 3:21 am

Take a list in one inlet and output the list in a specified order from another list (or is there another way). Such as:

//list to be compared
1 2 3 4;

//user input- some message to re order them
$i2 $i1 $i4 $i3 //or zero if base value

//object output
2 1 4 3

or if the mighty zl cannot do it… what can?

please help


December 9, 2008 | 3:49 am

Quote: BlueGlass wrote on Mon, 08 December 2008 19:21
—————————————————-
> Take a list in one inlet and output the list in a specified order from another list (or is there another way). Such as:
>
> //list to be compared
> 1 2 3 4;
>
> //user input- some message to re order them
> $i2 $i1 $i4 $i3 //or zero if base value
>
> //object output
> 2 1 4 3
—————————————————-

How about this:

– Pasted Max Patch, click to expand. –

December 9, 2008 | 4:21 am

oh okay… gosh sometimes it a little too simple
thank you very much!


December 9, 2008 | 10:17 am


Viewing 4 posts - 1 through 4 (of 4 total)