Forums > MaxMSP

object for recieving only first / last of several numbers?

September 12, 2006 | 12:14 pm

hey,
after a long break of maxing, I’m trying to get my head around it all again, trying to make a live performace patch. I apologise if this question is a silly one, but…
I’m trying to make a unique system for channel volume control, using dials, so that the movement is slowed down significantly. In theory, I’d like it so that a fast movement of the controlling dial results in the same movement of the volume (which will also be visually represented by another dial) but over the course of maybe 2 seconds. I thought line would be the object to use for this, however I’m not sure how to seperate the initial dial position and the destination in order to make the line function correctly?
Had a quick browse through the reference manual and came out more confused.
Like I say, apologies if this a total pleb question.
thanks a lot
tom


September 12, 2006 | 12:37 pm

Hi Tom,

check out speedlim, and qlim. If you want to go for something more
advanced, you could combine mousestate, tempo and pipe somewhat like this:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 497 144 48 196617 t b clear;
#P flonum 582 249 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user dial 347 389 114 114 128 1 0 0 159 270 1 1. 170 170 170 221 221
221 120 120 120 225 225 225 0 0 0 0 0 0;
#P newex 347 357 27 196617 pipe;
#P newex 347 317 48 196617 pack 0 0;
#P newex 497 269 95 196617 expr $f1*($f2-1.);
#P newex 347 182 27 196617 t i b;
#P user dial 347 57 114 114 128 1 0 0 159 270 1 1. 170 170 170 221 221
221 120 120 120 225 225 225 0 0 0 0 0 0;
#P newex 497 238 35 196617 timer;
#P newex 497 122 32 196617 sel 1;
#P newex 497 66 70 196617 loadmess poll;
#P newex 497 97 66 196617 mousestate;
#P comment 580 222 100 196617 How much slower?;
#P fasten 12 1 9 0 540 166 721 166 721 353 352 353;
#P connect 12 0 4 0;
#P connect 3 0 12 0;
#P connect 11 0 7 1;
#P connect 7 0 8 1;
#P connect 4 0 7 0;
#P connect 9 0 10 0;
#P connect 8 0 9 0;
#P connect 6 0 8 0;
#P connect 5 0 6 0;
#P fasten 6 1 4 1 369 218 527 218;
#P connect 1 0 3 0;
#P connect 2 0 1 0;
#P window clipboard copycount 13;

Best,
Trond

Tom Haig wrote:
> I’m trying to make a unique system for channel volume control, using dials, so that the movement is slowed down significantly. In theory, I’d like it so that a fast movement of the controlling dial results in the same movement of the volume (which will also be visually represented by another dial) but over the course of maybe 2 seconds. I thought line would be the object to use for this, however I’m not sure how to seperate the initial dial position and the destination in order to make the line function correctly?
> Had a quick browse through the reference manual and came out more confused.
>


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