Midi Time Code, Max and Logic

Encelade's icon

Hello,

I would like to send Main Start/Stop order and bar number from Logic to Max.

I know how to route MIDI data and MIDI Time Code/Clock to Max ; but when I look the MIDI message received, I don't know how to interpret them. For instace "248" means stop if I'm okay, but I don't know how to interpret 241, 252, etc... I can't see any
Max and Logic manuals do not explain (or I did not found) this.

Can you please help me ?

Thanks.

Bye

Christopher Dobrian's icon

Go to the MIDI specification chart at MIDI.org:http://www.midi.org/techspecs/midimessages.php
and scroll down to "System Common Messages", "System Real-Time Messages", etc.

The numbers are given in binary, but System Common Messages start at decimal 240 and ascend from there, System Real-Time Messages start at 248 (timing clock), and so on.

32bit's icon

Logic can send MIDI Realtime messages ("MIDI Clock") out as well as MIDI Time Code (MTC). MIDI realtime is tempo-relative and "musical," MIDI Time Code provides "Clock Time" for sync with video in Hours:MinutesSeconds:Frames.
Logic sends out MIDI Realtime tickes (248) @ 24 per quarter note but does not send out any time signature, tempo, bar number, or other realtime messages beyond start and stop.
The best way to send Logic's full transport state is to have a named [transport] object in Max with the attribute "@clocksource rewire"
With some fiddling around the Max transport will start to sync with Logic including all time signature, tempo and other info. See https://cycling74.com/forums/sharing-logic-transport-in-max-6/ for more.

Encelade's icon

Hello Christopher and 32 bit !

First, thanks for your quick replies ! :)

I tried the "sharing-logic-transport-in-max-6" patch, but I think I don't see Max as a rewire client. I add a screenshot of my library, with the "Max" device highlighted, empty.
I followed your tip "Tip #2: If Max 6 does not show up as a ReWire client in the Logic Library, make an alias for /Applications/Max 6.1/Cycling '74/ad/MSPReWireDevice.bundle and put it in /Users/[USERNAME]/Library/Application Support/Propellerhead Software/ReWire/. If problems persist try reinstalling ReWire or trashing unused ReWire aliases.".
I just stopped at "reinstalling ReWire"... ? Don't know how to do this ?

I'm running Logic Pro 9.1.8 and Max 6.1.0.

I will continue my investigations and let you know...

Have a nice day bye

Capture-d’écran-2013-06-03-à-13.24.30.jpg
jpg
32bit's icon

To reinstall ReWire either download the ReWire app here: http://www.propellerheads.se/download/updates_rewire/
Or (and this is more effective) download and install the free Reason 6 demo:
http://www.propellerheads.se/download/
Important: Logic and Max must be running at the same bit depth (32 or 64) for ReWire to work. (but they probably are, see next lines)
That screenshot is good news. It means Logic DOES see Max as a ReWire client, so the steps above may not be necessary.
For Max to sync to Logic via ReWire Max does not have to be inserted into a Logic track; Max does need to be using its "ad-rewire" driver with audio enabled. Since "ad_rewire" is dependent on the host application (in this case Logic), it will not be enabled until a Logic session is open.
In the Max Audio Status please make sure "ad_rewire" is the driver and "MIDI Ports" is set to at least 1.
When setting this up it may be necessary to open Max, select the "ad_rewire" driver, quit Max, then open a Logic session, open Max, and enable Max audio on the "ad_rewire" driver. If, at this point Max still does not show the Logic transport try going to Max Audio Status, switching to the "Core Audio" driver, starting audio, stopping audio, then switch back to the "ad_rewire" driver and enable audio.

Encelade's icon

Hello,

Thanks 32 bits, and sorry for that long silence time !
I did not forget, just a hard time to work on this... I will try and let you know.

Thanks, bye