making long lists from pairs


    Jun 14 2007 | 1:51 pm
    Dear maxers,
    I'm trying to build a patch that takes a row of pixel values from a matrix and maps them to the strength of harmonic partials to feed [oscbank~]. The patch below iters through the list and pairs each value with a partial. But I can't find a way to format the resulting pairs back into a list. Obviously there are too many pairs to use [pack], and I can't find a way for [coll] to output a list...any ideas?
    Christopher
    max v2;

    • Jun 14 2007 | 2:09 pm
      Peter Elsea's LObjects are your friend!
      If you know how long your final list needs to be, you could use his Lin object, with an argument specifying the total list length.
      J.
    • Jun 14 2007 | 10:15 pm
      Quote: Christopher Keyes wrote on Thu, 14 June 2007 06:51
      ----------------------------------------------------
      > Dear maxers,
      >
      > I'm trying to build a patch that takes a row of pixel values from a matrix and maps them to the strength of harmonic partials to feed [oscbank~]. The patch below iters through the list and pairs each value with a partial. But I can't find a way to format the resulting pairs back into a list. Obviously there are too many pairs to use [pack], and I can't find a way for [coll] to output a list...any ideas?
      >
      >
      You've got an order of operations problem with your patch which I haven't addressed, but here's a list solution:
    • Jun 15 2007 | 2:44 am
      Thanks mzed!
      Great solution and thanks for pointing out the operation order problem...easy to fix.
      Christopher