clockblocks package
Clockblocks is a Python library for controlling the flow of musical time, designed with musical applications in mind.
Contents of this package include the clock module, which defines the central Clock
class; the tempo_envelope module, which defines the TempoEnvelope
class for mapping
out how a clock’s tempo changes with time, as well as the MetricPhaseTarget
class
for specifying desired metric phases; the debug module, which provides utilities for logging in a way that
clarifies which clock logging messages are occurring under; and the utilities module, which contains a few
utility functions.
Modules:
Module defining the central |
|
Utilities for logging and debugging processes operating on multiple clocks. |
|
Global preferences and settings for clockblocks. |
|
Module defining the |
|
Utility functions, including versions of |
Public-Facing API (result of import *):
|
Recursively nestable clock class. |
|
Exception raised when a clock is killed, allowing us to exit the process forked on it. |
|
Exception raised when a clock is asked to do something after it was killed. |
|
A TimeStamp stores the beat of every |
|
Class representing a particular point in a (beat or measure) cycle. |
|
A subclass of |
|
Subclass of TempoEnvelope that keeps track of a current beat and time, and provides functionality for moving forward a certain number of beats or seconds, and/or setting tempo target(s) to reach in the future. |
Get the |
|
|
Spawns a parallel process running on a child clock of the currently active clock. |
|
Spawns a parallel process, but as an asynchronous thread, not on a child clock. |
|
High-precision sleep for the given number of seconds. |
|
High-precision sleep until stop_time. |
|
Calls |
Calls |
|
Calls |