Midi Timecode chaos

Rafał Ryterski's icon

Hey everyone, although I am using Max for ages it's my first time on the forum - it's because it is the very first time when I cannot find any solution.
So... I got problems with MTC that I want to be sent to Max from Reaper.
I got MTC generator in Reaper and midiin connected to print.
The point is that whatever I try and whatever software I'm using, the MTC signal looks like that in Max:
print: 176; print: 123; print: 0; print: 177; print: 123; print: 0; print: 178; print: 123; print: 0; print: 179; print: 123; print: 0; print: 180; print: 123; print: 0...
and after a while:
print: 241; print: 114; print: 241; print: 7; print: 241; print: 17; print: 241; print: 41; print: 241; print: 48; print: 241; print: 64; print: 241; print: 80; print: 241; print: 96; print: 241; print: 114

As far as I understood, MTC should be a list, not single messages. I read some Peter's Else'a docs and in his approach he uses "match 241 nn", so nn is the rest of the list. Am I right? Or wrong? Does anyone struggled with the same issue?

Cheers!

kLSDiz's icon

Hello Rafał,
[midiin] gives you a stream of int values, [match] groups them into pairs (2-element lists), and the second element holds relevant MTC data distributed over 4 consecutive messages (pairs). In your example what you get at the beginning is a stream of Control Change messages, then after a while you get proper MTC data (ie. every second byte is 241).

Max Patch
Copy patch and select New From Clipboard in Max.

hth!