link_beat_get — Returns the beat, phase with respect to the local quantum, and current time for the session.
Returns the beat number, phase of the beat with respect to the local quantum of the beat, and current time for the global network Ableton Link session.
k_quantum -- The local quantum of the beat; the default value is 1,
k_beat_number -- The number of the current beat.
k_phase -- The current phase of the beat with respect to the local quantum of the beat.
k_current_time_seconds -- The current time with respect to the time this peer was enabled.
Consider using link_metro if you need a periodic trigger driven by the session beat.