Trying to sync MIDI time code in MAX.

Sep 27, 2006 at 3:54pm

Trying to sync MIDI time code in MAX.

I have been trying to sync up max with midi time code (specifically make Max the slave to external time code), with no luck. I read Peter Elsea’s pdf “Max&MTC.pdf”, and copied his code exactly, and couldn’t detect the time code coming from A) my external drum machine, nor B) the free “MidiClock” program from Granted Software (http://www.grantedsw.com/midiclock/). I can, however, detect any other midi message coming in (like notes, etc.)

I tried using midiin and sysexin objects, and printing what they were recieving, and they weren’t recieving any time code.

If anyone can help, that’d be great!

-Paul

#27831
Sep 27, 2006 at 4:34pm

Hi,

I made this patch in the end of the last century….

Hope that can help you !

#P window setfont “Sans Serif” 9.;
#P window linecount 2;
#P comment 433 328 62 196617 Selected TC adress 3;
#P window linecount 1;
#P newex 323 372 28 196617 r TC;
#P button 259 418 15 0;
#P newex 259 395 44 196617 match 1;
#P newex 259 372 60 196617 prepend set;
#P newex 259 351 137 196617 pak 1 2 3 4;
#P number 301 327 35 9 0 59 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 343 327 35 9 0 59 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 259 327 35 9 0 24 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 385 327 35 9 0 30 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 2;
#P comment 432 205 62 196617 Selected TC adress 4;
#P window linecount 1;
#P newex 322 249 28 196617 r TC;
#P button 258 295 15 0;
#P newex 258 272 44 196617 match 1;
#P newex 258 249 60 196617 prepend set;
#P newex 258 228 137 196617 pak 1 2 3 4;
#P number 300 204 35 9 0 59 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 342 204 35 9 0 59 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 258 204 35 9 0 24 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 384 204 35 9 0 30 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 2;
#P comment 431 84 62 196617 Selected TC adress 1;
#P window linecount 1;
#P newex 321 128 28 196617 r TC;
#P button 257 174 15 0;
#P newex 257 151 44 196617 match 1;
#P newex 257 128 60 196617 prepend set;
#P newex 257 107 137 196617 pak 1 2 3 4;
#P number 299 83 35 9 0 59 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 341 83 35 9 0 59 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 257 83 35 9 0 24 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 383 83 35 9 0 30 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 55 56 14 196617 0;
#P newex 55 34 48 196617 loadbang;
#P user umenu 55 102 100 196647 1 64 118 1;
#X add “AU DLS Synth 1″;
#X add “IAC Driver Bus IAC 1″;
#X add “IAC Driver Bus IAC 2″;
#X add “IAC Driver Bus IAC 3″;
#X add “IAC Driver Bus IAC 4″;
#X add “Network Session 1″;
#X add “from MaxMSP 1″;
#X add “from MaxMSP 2″;
#P newex 55 77 46 196617 midiinfo;
#P newex 47 433 28 196617 s TC;
#P newex 47 387 110 196617 bondo 4;
#P newex 47 411 110 196617 pack 1 2 3 4;
#P newex 108 295 30 196617 * 16;
#P newex 78 317 27 196617 + 0;
#P newex 151 295 30 196617 * 16;
#P newex 22 295 30 196617 * 16;
#P newex 66 295 30 196617 * 16;
#P newex 56 257 118 196617 route 7 6 5 4 3 2 1 0;
#P newex 90 200 31 196617 & 15;
#P newex 56 200 29 196617 / 16;
#P newex 56 232 28 196617 pack;
#P number 78 361 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 55 127 35 196617 midiin;
#P number 165 360 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 165 317 27 196617 + 0;
#P number 123 361 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 123 317 27 196617 + 0;
#P newex 37 340 31 196617 & 31;
#P number 37 361 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 37 317 27 196617 + 0;
#P newex 55 149 69 196617 match 241 nn;
#P newex 55 171 38 196617 unpack;
#P comment 16 362 19 196617 TC;
#P connect 48 0 52 3;
#P connect 50 0 52 2;
#P connect 51 0 52 1;
#P connect 49 0 52 0;
#P connect 52 0 53 0;
#P connect 53 0 54 0;
#P connect 56 0 54 0;
#P connect 54 0 55 0;
#P connect 44 0 45 0;
#P connect 46 0 44 0;
#P connect 43 0 44 0;
#P connect 42 0 43 0;
#P connect 39 0 42 0;
#P connect 41 0 42 1;
#P connect 40 0 42 2;
#P connect 38 0 42 3;
#P connect 28 0 32 3;
#P connect 30 0 32 2;
#P connect 31 0 32 1;
#P connect 29 0 32 0;
#P connect 32 0 33 0;
#P connect 33 0 34 0;
#P connect 36 0 34 0;
#P connect 34 0 35 0;
#P fasten 1 1 13 0 85 192 61 192;
#P connect 1 1 14 0;
#P connect 27 0 24 0;
#P connect 26 0 27 0;
#P fasten 15 0 17 0 61 277 27 277;
#P connect 17 0 3 0;
#P connect 3 0 5 0;
#P connect 5 0 4 0;
#P connect 4 0 22 0;
#P connect 22 0 21 0;
#P connect 21 0 23 0;
#P fasten 15 1 3 1 74 283 59 283;
#P connect 25 1 10 0;
#P connect 10 0 2 0;
#P connect 2 0 1 0;
#P connect 13 0 12 0;
#P connect 12 0 15 0;
#P fasten 15 2 16 0 87 291 71 291;
#P fasten 14 0 12 1 95 224 79 224;
#P connect 16 0 19 0;
#P connect 19 0 11 0;
#P connect 11 0 22 1;
#P connect 22 1 21 1;
#P connect 15 3 19 1;
#P connect 15 4 20 0;
#P connect 7 0 22 2;
#P connect 22 2 21 2;
#P connect 20 0 6 0;
#P connect 6 0 7 0;
#P fasten 15 5 6 1 126 290 145 290;
#P connect 9 0 22 3;
#P connect 22 3 21 3;
#P fasten 15 6 18 0 139 288 156 288;
#P connect 18 0 8 0;
#P connect 8 0 9 0;
#P fasten 15 7 8 1 152 286 187 286;
#P connect 24 0 25 0;
#P window clipboard copycount 58;

#84716
Sep 27, 2006 at 4:54pm

I send a MTC detect patch, but not a MIDI clock one !

MTC is like SMPTE (h:m:s:f).
MIDI clock is not the same message.
It’s just a relative time code (F8).

What do you need ?

More info :
http://www.borg.com/~jglatt/tech/midispec.htm
http://www.borg.com/~jglatt/tech/mtc.htm

http://www.borg.com/~jglatt/tech/midispec/clock.htm

#84717
Sep 27, 2006 at 5:05pm

Hi, I guess I needed a midi clock one!

Do you happen to have a midi clock detection patch?

I am trying to get max to be in sync with my external equipment (korg drum machine and synthesizer).

Thanks again,
Paul

(I think I just tried to email you, but i don’t think it worked, sorry if you got this message twice)

#84718
Sep 27, 2006 at 5:37pm

Have a look at the rtin.help file – it does exactly
that,
cheers
Roger

— Paul Feder wrote:

>
> Hi, I guess I needed a midi clock one!
>
> Do you happen to have a midi clock detection patch?
>

#84719
Sep 27, 2006 at 6:12pm

I just tried rtin, and it worked. I was able to generate the clicks of the downbeat by using a counter to 24. I’m not quite sure why that worked, but it did.

#84720

You must be logged in to reply to this topic.