Midi Time Code present or not + Mackie HUI rec light

Hi!

I have found this excelent post about midi time code, and have succesfully made it work on my arduino.

http://forum.arduino.cc/index.php?topic=57636.0

My project is to make a Pro Tools talkback mute relay, so that when ever pro tools is playing or recording (and thereby sending out MTC, theres a button that enables that) it would mute the talkback mic.

I need to modify the code to end up as a boolean telling me if there is ANY midi time code or not. Regardless of framerate and other settings, just accepting all possible framerates.

Could someone help me? I am a bit lost on how to start that. Thanks a lot!! 8)

Sidestory:
Originally I would both make a red recording light AND a talkback mute, but for some reason i CANNOT map the mackie HUI "Rec button light" midi syssex signal. I got almost all other features mapped but thats to one i cant figure out. I have a HUI device that turns a red led in the recordbutton on/off perfectly but i cannot monitor the midi output it sends, and have tried all sorts of tables of the HUI protocol. If anyone knows how to read the red record button signal of from pro tools to HUI please tell me.

I had a look at the code and did some googling. It seems to me that the code i written to use a port that is exclusively dedicated to timecode. Is that so?