dial

Mar 31, 2006 at 11:34am

dial

Hi

I’m using a midicontroller (shown as master dial in the patch below) to
control two identical jitter-patches on two different laptops. Idea is
that they go out of sync by manually changing the values on the laptops.
When a value (like dial 1 and 2 in the patch below) is changed, the
master dial does not affect the dial (if changed) until the value’s are
equal again . Than the master dial takes over again….

no problem so far….accept that sometimes (when values are changed to
fast) the master-dial does not take over the other ones

i guess it has to do witch the trigger to make the comparison (= =) is
there a way ( and i’m sure this is an easy-one for somebody) to make
this more accurate?

jurgen

max v2;
#N vpatcher 671 56 1345 566;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 229 305 100 9109513 master = midicontroller;
#P comment 229 283 100 9109513 dial 2 = laptop2;
#P user dial 195 155 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 newex 230 125 19 9109513 t b;
#P newex 137 180 27 9109513 ==;
#P newex 195 124 27 9109513 gate;
#P number 195 199 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 414 157 100 9109513 dial 2;
#P message 283 26 14 9109513 1;
#P user dial 367 148 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 newex 402 118 19 9109513 t b;
#P newex 309 173 27 9109513 ==;
#P newex 367 117 27 9109513 gate;
#P number 367 192 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 299 24 45 9109513 loadbang;
#P user dial 268 58 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 comment 315 77 100 9109513 master;
#P comment 238 164 38 9109513 dial 1;
#P comment 229 264 100 9109513 dial 1 = laptop1;
#P fasten 12 0 14 0 200 220 126 220 126 161 142 161;
#P fasten 3 0 14 1 273 105 159 105;
#P fasten 14 0 13 0 142 206 175 206 175 117 200 117;
#P fasten 15 0 16 0 235 148 200 148;
#P connect 13 0 16 0;
#P connect 16 0 12 0;
#P fasten 3 0 13 1 273 106 217 106;
#P fasten 3 0 15 0 273 106 235 106;
#P connect 4 0 10 0;
#P fasten 5 0 7 0 372 213 298 213 298 154 314 154;
#P fasten 3 0 7 1 273 104 331 104;
#P fasten 10 0 6 0 288 47 372 47;
#P fasten 7 0 6 0 314 199 346 199 346 104 372 104;
#P connect 6 0 9 0;
#P fasten 8 0 9 0 407 141 372 141;
#P connect 9 0 5 0;
#P fasten 3 0 6 1 273 104 389 104;
#P fasten 3 0 8 0 273 104 407 104;
#P pop;

#25167
Mar 31, 2006 at 1:11pm

#73772
Mar 31, 2006 at 1:12pm

this works better.
//yac

max v2;
#N vpatcher 10 59 790 574;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 196 196 46 196617 dial 2;
#P number 274 389 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 214 366 21 196617 t 1;
#P newex 214 337 40 196617 change;
#P newex 214 316 27 196617 >;
#P message 153 164 39 196617 set $1;
#P newex 153 268 53 196617 t 0 b i i;
#P toggle 153 117 15 0;
#P newex 181 109 76 196617 t i i i;
#P newex 153 141 38 196617 gate 1;
#P window linecount 2;
#P comment 313 392 46 196617 dial 2 output;
#P user dial 153 186 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 number 153 241 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P comment 467 197 46 196617 dial 2;
#P number 545 390 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 485 367 21 196617 t 1;
#P newex 485 338 40 196617 change;
#P newex 485 317 27 196617 >;
#P message 424 165 39 196617 set $1;
#P newex 424 269 53 196617 t 0 b i i;
#P toggle 424 118 15 0;
#P newex 452 110 76 196617 t i i i;
#P newex 424 142 38 196617 gate 1;
#P window linecount 2;
#P comment 584 393 46 196617 dial 2 output;
#P window linecount 1;
#P message 166 42 14 196617 1;
#P user dial 424 187 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 number 424 242 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 182 42 45 196617 loadbang;
#P user dial 341 25 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 fasten 4 0 21 0 171 87 158 87;
#P lcolor 1;
#P fasten 26 0 21 0 219 387 130 387 130 112 158 112;
#P fasten 22 0 21 0 158 296 142 296 142 112 158 112;
#P connect 21 0 19 0;
#P connect 19 0 23 0;
#P connect 23 0 17 0;
#P connect 17 0 16 0;
#P connect 16 0 22 0;
#P connect 1 0 4 0;
#P fasten 0 0 20 0 346 103 186 103;
#P connect 20 0 19 1;
#P connect 20 1 24 0;
#P fasten 22 1 24 0 172 307 219 307;
#P connect 24 0 25 0;
#P connect 25 0 26 0;
#P fasten 22 2 24 1 186 300 236 300;
#P fasten 20 2 27 0 252 292 279 292;
#P fasten 22 3 27 0 200 292 279 292;
#P fasten 4 0 8 0 171 87 429 87;
#P lcolor 1;
#P fasten 9 0 8 0 429 297 413 297 413 113 429 113;
#P fasten 13 0 8 0 490 388 401 388 401 113 429 113;
#P connect 8 0 6 0;
#P connect 6 0 10 0;
#P connect 10 0 3 0;
#P connect 3 0 2 0;
#P connect 2 0 9 0;
#P fasten 0 0 7 0 346 103 457 103;
#P connect 7 0 6 1;
#P fasten 9 1 11 0 443 308 490 308;
#P connect 7 1 11 0;
#P connect 11 0 12 0;
#P connect 12 0 13 0;
#P fasten 9 2 11 1 457 301 507 301;
#P fasten 9 3 14 0 471 293 550 293;
#P fasten 7 2 14 0 523 293 550 293;
#P pop;

#73773
Mar 31, 2006 at 1:35pm

I had several errors in my first answer… sorry.
this one just works fine now even with very fast moves.
have fun!
//yac

max v2;
#N vpatcher 10 59 790 574;
#P origin 0 -13;
#P window setfont “Sans Serif” 9.;
#P newex 319 312 29 196617 t i 0;
#P newex 366 451 22 196617 b 1;
#P newex 338 427 38 196617 gate 2;
#P newex 173 352 32 196617 sel 1;
#P newex 173 330 24 196617 ==;
#P window linecount 2;
#P comment 198 200 29 196617 dial 1;
#P number 319 475 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 220 380 21 196617 t 1;
#P newex 220 352 40 196617 change;
#P newex 220 330 27 196617 >;
#P message 159 178 39 196617 set $1;
#P newex 159 282 53 196617 t 0 b i i;
#P toggle 159 131 15 0;
#P newex 187 123 76 196617 t i i i;
#P newex 159 155 38 196617 gate 1;
#P window linecount 2;
#P comment 398 462 46 196617 dial 1 output;
#P user dial 159 200 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 number 159 255 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 584 312 29 196617 t i 0;
#P newex 631 451 22 196617 b 1;
#P newex 603 427 38 196617 gate 2;
#P newex 438 352 32 196617 sel 1;
#P newex 438 330 24 196617 ==;
#P number 341 21 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 2;
#P comment 463 200 26 196617 dial 2;
#P number 584 475 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 485 380 21 196617 t 1;
#P newex 485 352 40 196617 change;
#P newex 485 330 27 196617 >;
#P message 424 178 39 196617 set $1;
#P newex 424 282 53 196617 t 0 b i i;
#P toggle 424 131 15 0;
#P newex 452 123 76 196617 t i i i;
#P newex 424 155 38 196617 gate 1;
#P window linecount 2;
#P comment 663 462 46 196617 dial 2 output;
#P window linecount 1;
#P message 166 55 14 196617 1;
#P user dial 424 200 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 number 424 255 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 182 55 45 196617 loadbang;
#P user dial 341 38 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 fasten 4 0 27 0 171 100 164 100;
#P lcolor 1;
#P fasten 32 0 27 0 225 401 136 401 136 126 164 126;
#P fasten 28 0 27 0 164 310 148 310 148 126 164 126;
#P connect 27 0 25 0;
#P connect 25 0 29 0;
#P connect 29 0 23 0;
#P connect 23 0 22 0;
#P connect 22 0 28 0;
#P connect 1 0 4 0;
#P connect 28 1 35 0;
#P connect 35 0 36 0;
#P fasten 0 0 26 0 346 116 192 116;
#P connect 26 0 25 1;
#P connect 28 2 35 1;
#P connect 26 1 30 0;
#P fasten 28 1 30 0 178 321 225 321;
#P connect 30 0 31 0;
#P fasten 36 0 32 0 178 374 225 374;
#P connect 31 0 32 0;
#P fasten 28 2 30 1 192 314 242 314;
#P fasten 28 3 39 0 206 305 324 305;
#P fasten 38 0 33 0 371 471 324 471;
#P connect 39 0 33 0;
#P fasten 37 0 33 0 343 459 324 459;
#P connect 39 1 37 0;
#P fasten 32 0 37 0 225 412 343 412;
#P connect 16 0 0 0;
#P fasten 26 2 37 1 258 227 371 227;
#P connect 37 1 38 0;
#P fasten 13 0 8 0 490 401 401 401 401 126 429 126;
#P fasten 9 0 8 0 429 310 413 310 413 126 429 126;
#P fasten 4 0 8 0 171 100 429 100;
#P lcolor 1;
#P connect 8 0 6 0;
#P connect 6 0 10 0;
#P connect 10 0 3 0;
#P connect 3 0 2 0;
#P connect 2 0 9 0;
#P connect 9 1 17 0;
#P connect 17 0 18 0;
#P fasten 0 0 7 0 346 116 457 116;
#P connect 7 0 6 1;
#P connect 9 2 17 1;
#P connect 7 1 11 0;
#P fasten 9 1 11 0 443 321 490 321;
#P connect 11 0 12 0;
#P connect 12 0 13 0;
#P fasten 18 0 13 0 443 374 490 374;
#P fasten 9 2 11 1 457 314 507 314;
#P fasten 9 3 21 0 471 305 589 305;
#P fasten 19 0 14 0 608 459 589 459;
#P connect 21 0 14 0;
#P fasten 20 0 14 0 636 471 589 471;
#P connect 21 1 19 0;
#P fasten 13 0 19 0 490 412 608 412;
#P fasten 7 2 19 1 523 227 636 227;
#P connect 19 1 20 0;
#P pop;

#73774

You must be logged in to reply to this topic.