pack


    Feb 11 2006 | 6:44 pm
    hello I am trying to pack my numbers into a list with pack object but
    I am confused at this point since I cannot send this packed numbers
    for example to a print message to print in my max window. Here is my
    patch that is a variant of the reference pack patch. So what am I
    missing here?
    Thanks in advance
    ilteris.

    • Feb 11 2006 | 6:51 pm
      Try using an object box instead. Maybe, it's time to start with the
      tutorials...
      Best,
      ej
    • Feb 11 2006 | 7:00 pm
      I am stupid my print box was a message box doh!
      so out of my stupidity I want to ask you another question about
      setcell, I am again following the tutorials and now I have this patch
      below which I am trying to change the values of the x and y on the
      pwindow, but it is just acting weird... isnt it supposed to be
      displayin a value between 0-255 to the assigned x-y point by sending
      bang to the window?
      TIA
      ilteris
      On Feb 11, at 1:44 PM, ilteris kaplan wrote:
      > hello I am trying to pack my numbers into a list with pack object
      > but I am confused at this point since I cannot send this packed
      > numbers for example to a print message to print in my max window.
      > Here is my patch that is a variant of the reference pack patch. So
      > what am I missing here?
      >
      > Thanks in advance
      > ilteris.
      >
      >
      > #P window setfont "Sans Serif" 9.;
      > #P number 98 254 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P button 195 301 15 0;
      > #P button 171 300 15 0;
      > #P button 140 300 15 0;
      > #P window linecount 1;
      > #P newex 139 203 70 196617 unpack 0 0 0.;
      > #P button 199 98 14 0;
      > #P message 43 218 32 196617 print;
      > #P newex 52 173 66 196617 pack 1 2 6.4;
      > #P slider 27 55 13 50 0 1;
      > #P slider 117 55 13 50 0 1;
      > #P slider 70 55 13 50 0 1;
      > #P number 117 136 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P number 70 136 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P number 27 136 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P connect 13 0 10 0;
      > #P connect 9 0 13 0;
      > #P connect 6 0 7 0;
      > #P connect 6 0 9 0;
      > #P connect 9 2 12 0;
      > #P connect 9 1 11 0;
      > #P fasten 8 0 6 0 204 167 57 167;
      > #P connect 5 0 0 0;
      > #P connect 3 0 1 0;
      > #P connect 4 0 2 0;
      > #P connect 2 0 6 2;
      > #P connect 1 0 6 1;
      > #P connect 0 0 6 0;
      > #P window clipboard copycount 14;
      >
    • Feb 11 2006 | 7:14 pm
    • Feb 11 2006 | 7:21 pm
      try pak instead of pack with pack it only draws when you give a new x
      something like this
      max v2;
    • Feb 11 2006 | 7:35 pm
      first of all thanks for giving your time guys. pak is really handy, I
      am going to definitely dig it, other than that it makes sense that it
      is going between on and off 0-1 but that rises another question :
      how am I going to change the value from float to integer?
      Thanks!
      ilteris.
    • Feb 11 2006 | 8:13 pm
      float -> int multiply by 1 int-> float multiply by 1.
      or use float or int objects you can even store numbers in them
      float-int-mania:
      max v2;
    • Feb 12 2006 | 2:48 am
      hrm. Yeah, do the tutorials, and then, when you're done with them.. do them again.
    • Feb 12 2006 | 10:40 am
      > is going between on and off 0-1 but that rises another question :
      > how am I going to change the value from float to integer?
      in your case, you scale the range and change to
      int at the same time by
      [* 250]
      otherwise it is
      float -> [+ 0.5]-[number] -> integer