getting the playhead postion from Logic
is there any way to get the current playhead position from Logic to Max? I’ve messed around with MTC from Logic and [midiin], but i can’t make sense of the numbers i get. ideally i could have the transport/playhead position from Logic at all times, no matter if paused or playing. thanks for help.
well i just found this patch posted on the forums. whoaa, is that what it really takes to decode the MTC? it works, but i figured there might be some object that does it for me already…
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 836.3oc4Y10aaBCEF9ZxuBKtn2rtHerMeMUUo8CnRSZW1NMQRbaYKXh.hV1p 5+8AFHe0V7opTKZKRgHLvIumGe30Nl6l33NKairvk7ExkDGm6l33naptAm1i cbSi2LeYbg9xbmmklJUktm1btR4lRc62RNXK8vCKHGsccdWDVkKKpBXbYRl5 m4x4kMpQDMkdJA706if5uXzoTxOZuM05zr0kKkkZYQ6BVb47aST2rWf78puW NUzDofGDojE5DHa1u9LzIpqyTkp3To9LeMOId41yjeyrl.q0zA61Fx8yo5KF 1KrEI+SGVfMktKWRTcoBT218SlTu6TjcJUAXlzDQgPwNjx4FHJqs0llJ+6JY STbSp67ItyhU23tKgeH26PcXcdR7n8wcVnYvONYJKzpLU.3YZzaTlFvrIRC8 vSzf2pUo91jnrH7D0eDRT4epj1CFe6DBe6nCGBLnOfg.TdZeRtWufxCwHSH. Ba3.xmFXZzMdAWawI7m50CNf2+3n0pGENXu6wQqMMJZve2SiVmCTzPL5nwYm QDuRlGTODdozODDo0+.CQfnOBDo0BAEPB+H.jVWDT.IXzAj7p7URBH9DOhfv ILBPnONghdJBUOe1d+XFePXyLbE7d4m+vvuAbBsqhm+6mYAEFb3oqiBfdow3 aLoyO+U5wKfSQ7303aJKmT0UNzFv.dfL9lQ6Z0S+Dio+yrIx30PFplLhndIC L5bRRqSnJGPfnTCoiRCUBzEJg8auRGcPYYV7hTYQA4J2xLxEwat36ei.W4N7 .h0r5NB+9HTz3qpIYQRhZfsXZHRydAqOfDN7.Q+y3tLQc7aTQKz51OjREYqy m2kYcqxCYmZWHKJSTaW3qK2slY6cQ2lrXgTs+6.oBrqxp.UqHH+3Q6yPqINF MEXWMwvnoH6pI.ilBsplpmmkQMA1sdR+yAl3j3fKxJZhaRSb6qIOSZhYeMEX RSfU0DCSM9QFqu5bBi+DX4ZbNVMYQNAH7BNBliCMwedZJhVuDs.ST+EOb6Au PsFhoKkZW7QwnIvpZJBgjr7.yAXLsD1efYi8b1chd.lJbF29bhYhSVtdBSIN iYeNILwIKOIcLtSLv9bx2jldIt3UGb+j+ykSUnM -----------end_max5_patcher-----------
The MTC protocol is in fact quite complex. In addition to ‘quarter frame messages’ which are covered with the posted patch, there are also ‘full frame messages’ which are usually sent if the playhead is set to a new position while the master is not playing. For more details see this document
thank you. that’s gotta be the best explanation of MTC i coulda asked for. what’s even better is realizing that i can get the time down to a quarter frame.
i think i remember reading hints that the MTC data from Logic can be inaccurate. time to see how it works..
I’ve used MTC from Logic to sync with Ableton Live, and it worked perfectly.
Forums > MaxMSP