clockblocks.clock

Module defining the central Clock class, as well as the TimeStamp class, which records the current beat in every clock at a given moment.

Classes

Clock(name, parent, initial_rate, …)

Recursively nestable clock class.

TimeStamp(clock)

A TimeStamp stores the beat of every Clock within a family of clocks, at a specific moment.

Functions

tempo_modification(fn)

Decorator applied to methods of Clock that alter tempo.

Exceptions

ClockKilledError

Exception raised when a clock is killed, allowing us to exit the process forked on it.

ClockblocksError

Base class for clockblocks errors.

DeadClockError

Exception raised when a clock is asked to do something after it was killed.

WokenEarlyError

Exception raised when master clock is woken up during its wait call.