good timing bad timing

Sep 6, 2006 at 1:51pm

good timing bad timing

what would be the best way to generate a really tight timing in max.
what i wanted is to trigger a sample every 4th bar, while also
generating 64th ticks.
i attached my 2 failing approaches.

thanks!

max v2;
#N vpatcher 10 59 1049 641;
#P window setfont “Sans Serif” 9.;
#P flonum 765 380 149 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 701 244 74 196617 t b f 0;
#P flonum 755 435 115 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 755 408 50 196617 timer;
#P message 733 291 37 196617 $1 $1;
#P newex 765 351 40 196617 line 1.;
#P hidden message 334 527 33 196617 start;
#P hidden newex 335 505 33 196617 r init;
#P newex 433 130 29 196617 t i 0;
#P newex 544 373 20 196617 t b;
#P newex 493 189 69 196617 route symbol;
#N coll ;
#T flags 1 0;
#T 0 stop;
#T 1 start;
#P newobj 493 167 53 196617 coll;
#P button 493 370 37 0;
#P newex 493 349 36 196617 edge~;
#P newex 493 327 39 196617 >=~ 0.;
#P newex 493 306 38 196617 delta~;
#P newex 493 283 59 196617 rate~ 0.25;
#P newex 493 257 40 196617 sync~;
#P comment 159 224 189 196617 thats the bpm number;
#P comment 150 179 189 196617 duration of 1 quarter note;
#P toggle 433 111 15 0;
#P number 422 418 25 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user ezdac~ 448 500 492 533 0;
#N counter 0 0 63;
#X flags 0 0;
#P newobj 544 394 77 196617 counter 0 0 63;
#P flonum 544 481 115 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 577 425 38 196617 sel 63;
#P newex 544 425 32 196617 sel 0;
#P newex 544 459 35 196617 timer;
#P newex 447 38 48 196617 loadbang;
#P window linecount 2;
#P message 447 61 52 196617 ; init bang ;;
#P flonum 316 478 115 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 346 418 38 196617 sel 63;
#P newex 310 418 32 196617 sel 0;
#P newex 316 451 35 196617 timer;
#P message 272 23 43 196617 replace;
#P newex 272 42 75 196617 buffer~ timing;
#P flonum 68 222 88 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 68 199 55 196617 !/ 60000.;
#P flonum 68 177 78 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 68 150 34 196617 / 16.;
#P flonum 76 124 104 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 195 67 15 0;
#P newex 195 85 105 196617 info~ timing;
#P toggle 32 299 19 0;
#P number 394 418 25 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 33 328 76 196617 tempo 20 4 64;
#P comment 106 153 189 196617 a four bar sample has 16 quarter notes;
#P comment 183 126 126 196617 duration of 4 bar sample;
#P fasten 39 0 4 0 438 264 37 264;
#P connect 4 0 2 0;
#P connect 11 0 2 1;
#P fasten 5 6 8 0 278 107 73 107;
#P connect 8 0 9 0;
#P connect 9 0 10 0;
#P connect 10 0 11 0;
#P fasten 5 6 7 0 278 107 81 107;
#P fasten 12 1 6 0 342 64 200 64;
#P connect 6 0 5 0;
#P connect 13 0 12 0;
#P fasten 2 0 15 0 38 381 315 381;
#P connect 15 0 14 0;
#P connect 14 0 17 0;
#P hidden connect 40 0 41 0;
#P connect 16 0 14 1;
#P fasten 2 0 16 0 38 381 351 381;
#P fasten 2 0 3 0 38 381 399 381;
#P fasten 24 0 26 0 549 414 427 414;
#P connect 27 0 39 0;
#P connect 19 0 18 0;
#P hidden connect 41 0 25 0;
#P fasten 39 0 36 0 438 157 498 157;
#P connect 36 0 37 0;
#P fasten 11 0 30 0 73 248 498 248;
#P connect 37 0 30 0;
#P connect 30 0 31 0;
#P connect 31 0 32 0;
#P connect 32 0 33 0;
#P connect 33 0 34 0;
#P connect 34 0 35 0;
#P connect 34 0 38 0;
#P connect 38 0 24 0;
#P connect 24 0 21 0;
#P connect 21 0 20 0;
#P connect 20 0 23 0;
#P connect 22 0 20 1;
#P fasten 39 1 24 2 527 147;
#P connect 24 0 22 0;
#P fasten 5 6 46 0 278 107 706 107;
#P connect 46 1 43 0;
#P connect 46 0 44 0;
#P connect 44 0 45 0;
#P connect 46 2 42 0;
#P connect 43 0 42 0;
#P connect 42 0 47 0;
#P connect 42 1 44 1;
#P pop;

#27505
Sep 6, 2006 at 4:38pm

I havent got time to do an example now sorry, but the Date object does an accurate time (from your computers processor- which should be able to keep up a good timing schedule) and is compatible with ticks too. Otherwise you could do some sums and set up a series of metro’s.

Hope the date thing sorts the problem though.
T

#83277

You must be logged in to reply to this topic.