clockblocks.utilities.get_beat

clockblocks.utilities.get_beat() → float[source]

Return how many beats have passed on the currently active clock (see beat).

As with the tempo helpers, this reads this clock and not the master; use current_clock().master.beat for that. Raises NoActiveClockError if there is no active clock.

Returns:

the current beat of the active clock.