link_beat_get

link_beat_get — Returns the beat, phase with respect to the local quantum, and current time for the session.

Description

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.

Syntax

k_beat_number, k_phase, k_current_time_seconds link_beat_get i_peer [, k_quantum]

Initialization

i_peer -- The Ableton Link peer object.

Performance

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.

See Also

Ableton Link Opcodes

Credits

By: Michael Gogins 2017