Forums > MaxMSP

relativ dial

September 25, 2007 | 12:23 am

hi,

i try to patch a relativ dial. i’m wondering if there is not a more simple or elegant way to do this…

thanks !

pe

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 710 199 34 196617 t -10;
#P newex 682 200 29 196617 t 10;
#P newex 654 200 26 196617 t -9;
#P newex 626 202 21 196617 t 9;
#P newex 597 203 26 196617 t -8;
#P newex 569 200 21 196617 t 8;
#P newex 542 200 26 196617 t -7;
#P newex 514 201 21 196617 t 7;
#P newex 486 201 26 196617 t -6;
#P newex 458 202 21 196617 t 6;
#P newex 430 202 26 196617 t -5;
#P newex 402 202 21 196617 t 5;
#P newex 374 202 26 196617 t -4;
#P newex 346 202 21 196617 t 4;
#P newex 318 202 26 196617 t -3;
#P newex 290 202 21 196617 t 3;
#P newex 262 202 26 196617 t -2;
#P newex 234 202 21 196617 t 2;
#P newex 206 202 26 196617 t -1;
#P newex 178 201 21 196617 t 1;
#P newex 178 180 587 196617 select -359 359 -358 358 -357 357 -356 356 -355 355 -354 354 -353 353 -352 352 -351 351 -350 350;
#P window setfont "Sans Serif" 18.;
#P message 118 189 25 196626 0;
#P window setfont "Sans Serif" 14.;
#P number 813 504 55 14 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 429 501 55 14 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#P newex 178 156 27 196617 -;
#P newex 195 131 39 196617 bucket;
#P number 446 399 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 374 504 46 196617 set $1;
#P button 429 400 15 0;
#P newex 429 460 27 196617 +;
#P user dial 178 39 68 68 360 1 0 0 73 359 1 0.507812 170 170 170 221 221 221 120 120 120 225 225 225 0 0 0 0 0 0;
#P window setfont "Sans Serif" 18.;
#P comment 59 192 54 196626 reset;
#P window setfont "Sans Serif" 9.;
#P comment 750 380 49 196617 < steram;
#P connect 11 0 2 0;
#P connect 2 0 8 0;
#P connect 8 0 12 0;
#P connect 12 0 13 0;
#P connect 2 0 7 0;
#P connect 7 0 8 1;
#P connect 12 1 14 0;
#P connect 12 2 15 0;
#P connect 12 3 16 0;
#P connect 12 4 17 0;
#P connect 12 5 18 0;
#P connect 12 6 19 0;
#P connect 12 7 20 0;
#P connect 9 0 5 0;
#P connect 12 8 21 0;
#P connect 6 0 4 0;
#P connect 4 0 3 0;
#P connect 5 0 3 0;
#P connect 11 0 9 0;
#P connect 3 0 9 0;
#P connect 12 9 22 0;
#P connect 32 0 6 0;
#P connect 31 0 6 0;
#P connect 30 0 6 0;
#P connect 29 0 6 0;
#P connect 28 0 6 0;
#P connect 27 0 6 0;
#P fasten 12 20 6 0 743 388 451 388;
#P lcolor 5;
#P connect 26 0 6 0;
#P connect 25 0 6 0;
#P connect 24 0 6 0;
#P connect 23 0 6 0;
#P connect 22 0 6 0;
#P connect 21 0 6 0;
#P connect 20 0 6 0;
#P connect 19 0 6 0;
#P connect 18 0 6 0;
#P connect 17 0 6 0;
#P connect 13 0 6 0;
#P connect 14 0 6 0;
#P connect 16 0 6 0;
#P connect 15 0 6 0;
#P connect 6 0 3 1;
#P connect 12 10 23 0;
#P connect 12 11 24 0;
#P connect 12 12 25 0;
#P connect 12 13 26 0;
#P connect 12 14 27 0;
#P connect 12 15 28 0;
#P connect 12 16 29 0;
#P fasten 12 17 30 0 659 199;
#P connect 12 18 31 0;
#P connect 12 19 32 0;
#P fasten 2 0 10 0 183 118 818 118;
#P window clipboard copycount 33;


September 25, 2007 | 2:46 am

well!!! not perfect!

max v2;
#N vpatcher 470 179 633 314;
#P origin 61 37;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 78 66 38 9109513 RESET;
#P window setfont "Sans Serif" 20.;
#P number 78 33 61 20 0 0 32 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#N vpatcher 429 347 673 511;
#P user incdec 3 98 15 15 0 0;
#N comlet Reset Bang;
#P inlet 202 25 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 202 74 19 9109513 t 0;
#P newex 104 74 97 9109513 if $f1 >= $f2 then inc;
#P newex 3 74 100 9109513 if $f1 < = $f2 then dec;
#P newex 3 43 44 9109513 bucket 3;
#N comlet Input form dial;
#P inlet 3 23 15 0;
#N comlet Int Out;
#P outlet 3 120 15 0;
#P connect 1 0 2 0;
#P fasten 2 0 3 0 8 70 8 70;
#P fasten 5 0 7 0 207 96 8 96;
#P connect 3 0 7 0;
#P fasten 4 0 7 0 109 96 8 96;
#P fasten 5 0 0 0 207 116 8 116;
#P connect 7 0 0 0;
#P fasten 2 2 3 1 42 65 98 65;
#P fasten 2 0 4 0 8 70 109 70;
#P fasten 2 2 4 1 42 65 196 65;
#P connect 6 0 5 0;
#P pop 1;
#P newobj 24 85 64 9109513 p up&down;
#P user jsui 24 33 50 50 1 0 0 jsui_360dial.js;
#P comment 9 11 168 9109513 It is not perfect but is working;
#P user panel 1 1 145 117;
#X brgb 198 204 215;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 2 0 3 0;
#P fasten 3 0 4 0 29 107 21 107 21 30 83 30;
#P connect 5 0 3 1;
#P pop;


September 25, 2007 | 7:31 am

like that ?

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 358 94 38 196617 RESET;
#P window setfont "Sans Serif" 20.;
#P number 278 247 61 20 0 0 32 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 326 93 26 0;
#P window setfont "Sans Serif" 9.;
#P newex 278 205 27 196617 – 0;
#P newex 313 176 27 196617 i;
#P user dial 278 93 40 40 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 connect 5 0 3 0;
#P connect 0 0 2 0;
#P connect 0 0 1 1;
#P connect 3 0 1 0;
#P connect 2 0 4 0;
#P connect 1 0 2 1;
#P window clipboard copycount 6;

Am 25.09.2007 um 02:23 schrieb pelang:

>
> hi,
>
> i try to patch a relativ dial. i’m wondering if there is not a more
> simple or elegant way to do this…
>
> thanks !
>
> pe
>
>
>
>
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P newex 710 199 34 196617 t -10;
> #P newex 682 200 29 196617 t 10;
> #P newex 654 200 26 196617 t -9;
> #P newex 626 202 21 196617 t 9;
> #P newex 597 203 26 196617 t -8;
> #P newex 569 200 21 196617 t 8;
> #P newex 542 200 26 196617 t -7;
> #P newex 514 201 21 196617 t 7;
> #P newex 486 201 26 196617 t -6;
> #P newex 458 202 21 196617 t 6;
> #P newex 430 202 26 196617 t -5;
> #P newex 402 202 21 196617 t 5;
> #P newex 374 202 26 196617 t -4;
> #P newex 346 202 21 196617 t 4;
> #P newex 318 202 26 196617 t -3;
> #P newex 290 202 21 196617 t 3;
> #P newex 262 202 26 196617 t -2;
> #P newex 234 202 21 196617 t 2;
> #P newex 206 202 26 196617 t -1;
> #P newex 178 201 21 196617 t 1;
> #P newex 178 180 587 196617 select -359 359 -358 358 -357 357 -356
> 356 -355 355 -354 354 -353 353 -352 352 -351 351 -350 350;
> #P window setfont "Sans Serif" 18.;
> #P message 118 189 25 196626 0;
> #P window setfont "Sans Serif" 14.;
> #P number 813 504 55 14 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P number 429 501 55 14 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window setfont "Sans Serif" 9.;
> #P newex 178 156 27 196617 -;
> #P newex 195 131 39 196617 bucket;
> #P number 446 399 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 374 504 46 196617 set $1;
> #P button 429 400 15 0;
> #P newex 429 460 27 196617 +;
> #P user dial 178 39 68 68 360 1 0 0 73 359 1 0.507812 170 170 170
> 221 221 221 120 120 120 225 225 225 0 0 0 0 0 0;
> #P window setfont "Sans Serif" 18.;
> #P comment 59 192 54 196626 reset;
> #P window setfont "Sans Serif" 9.;
> #P comment 750 380 49 196617 < steram;
> #P connect 11 0 2 0;
> #P connect 2 0 8 0;
> #P connect 8 0 12 0;
> #P connect 12 0 13 0;
> #P connect 2 0 7 0;
> #P connect 7 0 8 1;
> #P connect 12 1 14 0;
> #P connect 12 2 15 0;
> #P connect 12 3 16 0;
> #P connect 12 4 17 0;
> #P connect 12 5 18 0;
> #P connect 12 6 19 0;
> #P connect 12 7 20 0;
> #P connect 9 0 5 0;
> #P connect 12 8 21 0;
> #P connect 6 0 4 0;
> #P connect 4 0 3 0;
> #P connect 5 0 3 0;
> #P connect 11 0 9 0;
> #P connect 3 0 9 0;
> #P connect 12 9 22 0;
> #P connect 32 0 6 0;
> #P connect 31 0 6 0;
> #P connect 30 0 6 0;
> #P connect 29 0 6 0;
> #P connect 28 0 6 0;
> #P connect 27 0 6 0;
> #P fasten 12 20 6 0 743 388 451 388;
> #P lcolor 5;
> #P connect 26 0 6 0;
> #P connect 25 0 6 0;
> #P connect 24 0 6 0;
> #P connect 23 0 6 0;
> #P connect 22 0 6 0;
> #P connect 21 0 6 0;
> #P connect 20 0 6 0;
> #P connect 19 0 6 0;
> #P connect 18 0 6 0;
> #P connect 17 0 6 0;
> #P connect 13 0 6 0;
> #P connect 14 0 6 0;
> #P connect 16 0 6 0;
> #P connect 15 0 6 0;
> #P connect 6 0 3 1;
> #P connect 12 10 23 0;
> #P connect 12 11 24 0;
> #P connect 12 12 25 0;
> #P connect 12 13 26 0;
> #P connect 12 14 27 0;
> #P connect 12 15 28 0;
> #P connect 12 16 29 0;
> #P fasten 12 17 30 0 659 199;
> #P connect 12 18 31 0;
> #P connect 12 19 32 0;
> #P fasten 2 0 10 0 183 118 818 118;
> #P window clipboard copycount 33;
>


September 25, 2007 | 9:52 am

merci for tips!

i try to not lose any numbers and be able to rotate the dial endless in both directions.

mmhh..


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