filter list according to position


    May 20 2006 | 8:58 am
    hi
    it must be a really simple one (i know how to do it in OpenMusic) but
    i can not find how to do it in max:
    i have a list names ( +/- 600) : could be apple, orange, kiwi,
    banana, coconut ......
    and a list of wanted "positions" - say 1 3 4
    i want to filter the 1rst list according to positions, so that
    apple, orange, kiwi, banana, coconut
    filtered by
    1 3 4
    returns
    apple, kiwi, banana....
    ___must be simple..... could anyone give me a hint, how to do it??
    many thanks
    kasper
    --
    Kasper T. Toeplitz
    noise, composition, bass, computer

    • May 20 2006 | 9:14 am
      if you fill a coll with this list you automatically
      get an 1,2,3 index to each symbol ... and you can call
      them from the index numbers
      if it wouldnt be 600 but them a list "1 banana 2 kiwi .." which is eassy with
      a few zl objects and pak/unpack
    • May 20 2006 | 9:22 am
      hummmm, the idea of a coll is not bad - but i not only want to CALL
      the objects but i want to have a list containing ONLY the chosen
      ones....
      many thanks
      best
      kasper
    • May 20 2006 | 9:28 am
      heres an example using the zl object
    • May 20 2006 | 9:35 am
      >heres an example using the zl object
      >
      oh, thanks!!!
      i forgot about the "iter" object.....
      best
      kasper
    • May 20 2006 | 10:42 pm
      turned out more complex as I thought, there might be an easier way...
      Stefan
      --
      Stefan Tiedje------------x-------
      --_____-----------|--------------
      --(_|_ ----|-----|-----()-------
      -- _|_)----|-----()--------------
      ----------()--------www.ccmix.com