j link_metro Ableton Link Opcodes link_metro link_metro Returns a trigger that is 1 on the beat and 0 otherwise along with beat, phase, and time for this session of Ableton Link. 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 a trigger that is 1 on the beat and 0 otherwise along with the beat, phase, and current time of Ableton Link for this session for a given quantum. Syntax k_trigger, k_beat, k_phase, k_current_time_seconds link_metro i_peer [, k_quantum] Initialization i_peer -- The Ableton Link peer object. Performance k_trigger -- Trigger, 1 at the instant of the first beat in each local quantum of the beat, and 0 otherwise. k_beat -- The number of the beat, counting from when this peer is enabled. k_phase -- The phase of the beat with respect to the quantum. k_current_time_seconds -- The time of the beat, counting from when this peer is enabled. k_quantum -- The local quantum of the beat, which may be a multiple or fraction of a beat. The default value is 1. This opcode permits the use of an Ableton Link session beat to trigger events in Csound. It also can be used to obtain the session time and beat, as well as the phase with respect to the local quantum of the beat. For example, a quantum of 4 can imply 4/4 time, or a quantum of 0.25 will subdivide the beat by 4. Examples Here is an example of the link_metro opcode. It uses the file ableton_link.csd. Example of the link_metro opcode. See also Ableton Link Opcodes Credits By: &namemichael; 2017