onbeat
Returns the time interval in seconds for the clock to reach the next beat n in a bar.
Syntax
Usage
onbeat is useful to align scheduled events within the concept of a 'bar'.
Beat numbering in a bar starts at zero, thus to trigger an events in a bar of length 4, use beats '0, 1, 2, 3'. Fractional beats are permitted.
onbeat observes the global tempo.
Outputs and arguments
iseconds -- the time in seconds until the next beat in the bar.
ibeatnum (optional, default=0) -- The number of the beat in the bar, starting from zero.
ibarlen (optional, default=1) -- The length of the bar