clockblocks.metric_phase

Module containing the MetricPhaseTarget class, which names a point within a repeating beat or measure cycle — “the next downbeat”, say, or “halfway through the bar” — without having to work out how far away that point actually is. Pass one wherever a moment in time is called for: to wait() to wait until the next such point, to fork() to start a child clock there, or as the when or align_to of a tempo target, to land an accelerando exactly on a downbeat.

Classes

MetricPhaseTarget(phase_or_phases[, ...])

Class representing a particular point in a (beat or measure) cycle.