link_beat_get — Returns the beat, phase with respect to the local quantum, and current time for the session.
Plugin opcode in ableton_link_opcodes. This opcode is part of the plugin repository and has to be installed separately. The plugin repository can be found here: https://github.com/csound/plugins
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.