very basic question


    Aug 22 2006 | 7:02 am
    i have looked through the max documentation and couldn't find out how to do this...
    i have a line~ object with a message box connected to control it. lets say the message box is "0, 500 500". how do i set each of those 3 numbers to be a variable with its own float number box.
    i think that i should be using $1 $2 $3 as variables and have tried them in many different ways with no luck.
    i know there has to be a ridiculously easy way to do this but i cant for the life of me figure it out.
    thank you,
    dave

    • Aug 22 2006 | 7:47 am
      >i have looked through the max documentation and couldn't find out how to do this...
      >
      >i have a line~ object with a message box connected to control it. lets say the message box is "0, 500 500". how do i set each of those 3 numbers to be a variable with its own float number box.
      >i think that i should be using $1 $2 $3 as variables and have tried them in many different ways with no luck.
      >
      You have to pack the three number boxes in a list
      Every time you change the first number box the new list is sent to the line~ object
      m
      --
      HomePage: http://www.giri.it
      Computer Music Italian Forum http://www.virtual-sound.com
    • Aug 22 2006 | 7:58 am
      the message "0, 500 500" is actually two messages one is "0" the
      other is "500 500"the "," is eparating them you cannot make that in
      one message like "$1 $2 $3" (this is like "0 500 500")
      the line object wants two message after each other. If you want to
      pack it in one take alook at the sprintf object
      like "sprintf %f , %f %f "
      -mj
      >i have looked through the max documentation and couldn't find out
      >how to do this...
      >
      >i have a line~ object with a message box connected to control it.
      >lets say the message box is "0, 500 500". how do i set each of those
      >3 numbers to be a variable with its own float number box.
      >i think that i should be using $1 $2 $3 as variables and have tried
      >them in many different ways with no luck.
      >
      >i know there has to be a ridiculously easy way to do this but i cant
      >for the life of me figure it out.
      >
      >thank you,
      >dave
      >
    • Aug 22 2006 | 8:12 am
      hmmm i didnt think to make a list
      haha, kind of obvious now
      thank you very much for the help
      works like a charm now
      peace,
      dave
    • Aug 22 2006 | 11:00 am
      Alternatively, you could hook the [line~] up to a graphical breakpoint editor, which can output whatever envelope you specify in a line format.
      max v2;
    • Aug 22 2006 | 3:13 pm
      Since we're on the subject, I always wondered if there was difference in efficiency between using the message "$1, $2 $3" vs the "sprintf %f , %f %f" version that mj posted. I would assume that since sprintf expects floats to come in, it would perform slightly better. Any ideas?