Forums > MaxMSP

making a ramp between line starting values

April 15, 2008 | 7:19 am

Hi,
im having 3 message boxes connected to a line object, specifying the starting value, the ending value and target time ( the standard line message )

The different message boxes is chosen by urn and sel objects

The challenge for me here is getting a " gliding " change between the different messge box starting values

Thanks alot ! !


April 16, 2008 | 2:41 pm

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 150 170 41 196617 time;
#P number 146 186 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 110 62 20 196617 63;
#P message 90 62 14 196617 0;
#P message 134 62 26 196617 127;
#P newex 90 207 66 196617 pack 1 1000;
#P newex 168 105 27 196617 int;
#P slider 252 90 32 128 0 1;
#P newex 185 58 40 196617 line;
#P comment 100 45 41 196617 target;
#P connect 1 0 3 1;
#P fasten 1 0 2 0 190 84 257 84;
#P connect 8 0 4 1;
#P fasten 7 0 4 0 115 166 95 166;
#P fasten 5 0 4 0 139 166 95 166;
#P connect 6 0 4 0;
#P fasten 3 0 4 0 173 166 95 166;
#P fasten 4 0 1 0 95 240 67 240 67 34 190 34;
#P fasten 1 1 3 0 220 97 173 97;
#P window clipboard copycount 10;


April 16, 2008 | 2:49 pm

Oops. This is better. Using a number box which defaults to zero to set the ramp time is not too clever.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 170 188 26 196617 500;
#P message 147 188 20 196617 50;
#P comment 150 170 41 196617 time;
#P message 110 62 20 196617 63;
#P message 90 62 14 196617 0;
#P message 134 62 26 196617 127;
#P newex 90 207 66 196617 pack 1 1000;
#P newex 168 105 27 196617 int;
#P slider 252 90 32 128 0 1;
#P newex 185 58 40 196617 line;
#P comment 100 45 41 196617 target;
#P connect 9 0 4 1;
#P connect 10 0 4 1;
#P fasten 1 1 3 0 220 97 173 97;
#P fasten 4 0 1 0 95 240 67 240 67 34 190 34;
#P fasten 3 0 4 0 173 166 95 166;
#P connect 6 0 4 0;
#P fasten 5 0 4 0 139 166 95 166;
#P fasten 7 0 4 0 115 166 95 166;
#P fasten 1 0 2 0 190 84 257 84;
#P connect 1 0 3 1;
#P window clipboard copycount 11;


April 16, 2008 | 3:04 pm

A simpler method again – it appears the int object is redundant in the earlier example – no start time required, just dest value (and time if needed). So third time lucky. And if the BB would not disable the editing my posts so quickly I would have cleaned up this mess that I have made. This is all clear evidence that I need to be asleep anyway…goodnight.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 170 174 26 196617 500;
#P message 147 174 20 196617 50;
#P comment 150 156 41 196617 time;
#P message 110 130 20 196617 63;
#P message 90 130 14 196617 0;
#P message 134 130 26 196617 127;
#P newex 90 193 66 196617 pack 1 1000;
#P slider 90 283 32 128 0 1;
#P newex 90 240 40 196617 line;
#P comment 100 113 41 196617 target;
#P connect 1 0 2 0;
#P connect 3 0 1 0;
#P connect 8 0 3 1;
#P connect 9 0 3 1;
#P connect 5 0 3 0;
#P fasten 4 0 3 0 139 166 95 166;
#P fasten 6 0 3 0 115 166 95 166;
#P window clipboard copycount 10;


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