Forums > MaxMSP

external clock sync with drum computer

February 19, 2006 | 10:58 am

could annyone tell me how i can use an external midiclock signal, in my case from the machinedrum, to sync max/msp to it. so i can use max/msp as a sequencer that is synced to my drum computer.
i already build that sequencer but don’t know how to sync it… ):?

thanx in advance.


February 19, 2006 | 11:10 am


February 19, 2006 | 11:14 am

??? Mathias ???


February 19, 2006 | 11:21 am


March 1, 2006 | 12:57 pm

i tryed to use the sync~ object but i could not fugure out wat to to with the outcomming signals. so my question is, how can i get the right bpm out of the sync object? i know it hjas bpm output but it is not stable or something, do i need an other object?


March 3, 2006 | 11:27 pm

no one ? . . . please (:


March 4, 2006 | 10:46 am

A couple of weeks ago, Patrick Delges posted a nice tutorial Peter Elsea did to decode mtc/mmc…

http://www.cycling74.com/forums/index.php?t=msg&rid=0&am p;S=25d5681d0c195f7702a80e9998257043&th=17934&goto=6 1556#msg_61556

MathieU Chamagne
http://www.maxobjects.com


March 4, 2006 | 10:49 am

oups, sorry, wrong link…
here is the patch ; easier that way :

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 885 356 69 196617 DP metro;
#P comment 691 354 107 196617 BeatClock/RealTime;
#P comment 583 351 39 196617 MTC;
#P message 898 218 35 196617 jam 1;
#P number 917 138 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 898 109 50 196617 stripnote;
#P number 898 293 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N counter;
#X flags 0 0;
#P newobj 898 259 66 196617 counter;
#P newex 898 186 52 196617 sel 60 72;
#P newex 898 80 91 196617 notein;
#P comment 956 187 57 196617 60: accent;
#P comment 955 206 60 196617 72: normal;
#P flonum 744 298 70 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 744 269 30 196617 / 24;
#P message 711 168 32 196617 set 0;
#P number 744 242 50 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N counter;
#X flags 0 0;
#P newobj 744 195 66 196617 counter;
#P newex 764 138 31 196617 print;
#P button 744 113 15 0;
#P button 716 113 15 0;
#P comment 715 139 30 196617 stop;
#P button 688 113 15 0;
#P newex 688 74 95 196617 route 250 252 248;
#P newex 688 47 25 196617 rtin;
#P number 509 205 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 509 183 44 196617 +;
#P newex 543 156 27 196617 < < 7;
#P newex 475 124 78 196617 unpack 1 1 1;
#P newex 475 88 83 196617 match 242 nn nn;
#P newex 413 263 28 196617 + 0;
#P newex 413 235 31 196617 * 16;
#P newex 377 263 28 196617 + 0;
#P newex 377 235 31 196617 * 16;
#P newex 341 263 28 196617 + 0;
#P newex 341 235 31 196617 * 16;
#P newex 305 263 28 196617 + 0;
#P newex 305 235 31 196617 * 16;
#P newex 305 210 160 196617 route 7 6 5 4 3 2 1 0;
#P newex 305 184 44 196617 pack;
#P newex 339 155 32 196617 & 15;
#P newex 305 155 30 196617 / 16;
#P newex 305 116 44 196617 unpack;
#P newex 305 85 70 196617 match 241 nn;
#P newex 305 51 35 196617 midiin;
#P number 413 336 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 377 336 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 341 336 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 305 336 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 305 312 32 196617 & 31;
#P comment 153 223 28 196617 start;
#P button 158 198 15 0;
#P button 120 197 15 0;
#P newex 120 167 86 196617 sel 9 2;
#P newex 56 141 93 196617 unpack 0 1 2 3 4 5;
#P newex 56 76 142 196617 match 240 127 127 6 nn 247;
#P newex 56 50 52 196617 sysexin h;
#P comment 116 223 28 196617 stop;
#P comment 558 207 100 196617 MIDI beat;
#P comment 557 225 100 196617 1 beat = 6 MIDI clock;
#P comment 557 240 100 196617 24 clock / quarter;
#P comment 687 139 30 196617 start;
#P comment 54 250 100 196617 MMC;
#P user panel 46 36 182 234;
#X brgb 171 192 173;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 283 35 381 337;
#X brgb 171 192 173;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 679 35 181 338;
#X brgb 171 192 173;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 876 35 181 338;
#X brgb 171 192 173;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P connect 56 1 60 1;
#P connect 60 0 57 0;
#P connect 60 0 61 0;
#P connect 58 0 59 0;
#P connect 62 0 58 0;
#P connect 57 1 58 0;
#P connect 57 0 62 0;
#P connect 56 0 60 0;
#P connect 52 0 53 0;
#P connect 50 0 52 0;
#P connect 49 0 50 0;
#P connect 47 0 49 0;
#P connect 51 0 49 0;
#P connect 43 2 47 0;
#P connect 43 1 46 0;
#P connect 43 0 44 0;
#P connect 42 0 43 0;
#P connect 39 0 40 1;
#P connect 38 2 39 0;
#P connect 40 0 41 0;
#P connect 38 1 40 0;
#P connect 37 0 38 0;
#P connect 22 0 23 0;
#P fasten 22 0 37 0 310 78 480 78;
#P connect 28 7 36 1;
#P connect 36 0 21 0;
#P connect 35 0 36 0;
#P connect 28 6 35 0;
#P connect 28 5 34 1;
#P connect 34 0 20 0;
#P connect 33 0 34 0;
#P connect 28 4 33 0;
#P connect 28 3 32 1;
#P connect 32 0 19 0;
#P connect 31 0 32 0;
#P connect 28 2 31 0;
#P connect 26 0 27 1;
#P connect 24 1 25 0;
#P connect 24 1 26 0;
#P connect 28 1 30 1;
#P connect 17 0 18 0;
#P connect 30 0 17 0;
#P connect 29 0 30 0;
#P connect 28 0 29 0;
#P connect 27 0 28 0;
#P connect 25 0 27 0;
#P connect 23 0 24 0;
#P connect 13 1 15 0;
#P connect 13 0 14 0;
#P connect 12 4 13 0;
#P connect 11 0 12 0;
#P connect 10 0 11 0;
#P window clipboard copycount 66;


March 5, 2006 | 7:15 pm

thank you a lot Mathieu for this great patch.
This is what i was looking for, the BeatClock/RealTime that is.
there are stil some things that i don’t understand about it but i first try to solve this myself before i ask stupid (read the manual) questions (:


March 5, 2006 | 8:17 pm

verry sadly i don’t understand why the big button (see patch) get’s triggert so manny times and not on the rhythm of the numberbox below. how can i get bangs out of that number box in the same tempo?

max v2;
#N vpatcher 73 9 1027 598;
#P origin 0 -86;
#P button 332 344 67 0;
#P window setfont "Sans Serif" 9.;
#P message 257 194 14 9109513 0;
#P comment 255 21 107 9109513 BeatClock/RealTime;
#P flonum 332 310 70 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 332 281 27 9109513 / 24;
#P message 299 180 32 9109513 set 0;
#P number 332 254 50 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#N counter;
#X flags 0 0;
#P newobj 332 207 66 9109513 counter;
#P newex 360 140 31 9109513 print;
#P button 332 125 15 0;
#P button 304 125 15 0;
#P comment 303 151 30 9109513 stop;
#P button 276 125 15 0;
#P newex 276 86 95 9109513 route 250 252 248;
#P newex 276 59 25 9109513 rtin;
#P comment 275 151 30 9109513 start;
#P comment 216 189 42 9109513 counter reset;
#N counter 15;
#X flags 0 0;
#P newobj 271 452 66 9109513 counter 15;
#P newex 271 477 222 9109513 select 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15;
#P button 245 504 15 0;
#P button 264 504 15 0;
#P button 283 504 15 0;
#P button 302 504 15 0;
#P button 321 504 15 0;
#P button 340 504 15 0;
#P button 359 504 15 0;
#P button 378 504 15 0;
#P button 397 504 15 0;
#P button 416 504 15 0;
#P button 435 504 15 0;
#P button 454 504 15 0;
#P button 473 504 15 0;
#P button 492 504 15 0;
#P button 511 504 15 0;
#P button 530 504 15 0;
#P comment 375 23 100 9109513 by Patrick Delges and Peter Elsea did to decode mtc/mmc…;
#P comment 400 345 100 9109513 why does it get triggered so many times and not on the rhythm of the output from the number box above it ?;
#P connect 18 0 17 0;
#P connect 24 0 35 0;
#P connect 18 1 16 0;
#P fasten 36 0 19 0 337 405 276 405;
#P connect 19 0 18 0;
#P connect 22 0 23 0;
#P connect 23 0 24 0;
#P connect 18 2 15 0;
#P fasten 35 0 19 2 262 421 304 421;
#P connect 18 3 14 0;
#P connect 23 1 26 0;
#P connect 18 4 13 0;
#P connect 23 2 27 0;
#P connect 27 0 29 0;
#P connect 31 0 29 0;
#P connect 29 0 30 0;
#P connect 30 0 32 0;
#P connect 32 0 33 0;
#P connect 33 0 36 0;
#P connect 18 5 12 0;
#P connect 18 6 11 0;
#P connect 23 3 28 0;
#P connect 18 7 10 0;
#P connect 18 8 9 0;
#P connect 18 9 8 0;
#P connect 18 10 7 0;
#P connect 18 11 6 0;
#P connect 18 12 5 0;
#P connect 18 13 4 0;
#P connect 18 14 3 0;
#P connect 18 15 2 0;
#P pop;


March 5, 2006 | 9:25 pm

On 05-mars-06, at 21:17, shamool wrote:

>
> verry sadly i don’t understand why the big button (see patch) get’s
> triggert so manny times and not on the rhythm of the numberbox below.
> how can i get bangs out of that number box in the same tempo?

Print the output of your [/ 24] box and you may understand what
happpens.

Then, look for instance to the [change] object, which may be helpfull
to solve your problem.

And try also to read Peter Elsea’s tutorials. The patch Mathieu sent to
you is partly based/copied from them.

p
_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie

http://users.skynet.be/crfmw/max


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