clockblocks.utilities.apply_beat_length_function

clockblocks.utilities.apply_beat_length_function(function: Callable, domain_start: float = 0, domain_end: float = None, duration_units: str = 'beats', truncate: bool = True, loop: bool = False, extension_increment: float = 2.0, **kwargs) → None[source]

Drive the current clock’s beat length (in seconds per beat) by following a function of beats/time. Forwards to apply_beat_length_function(); acts on the currently active clock. Raises NoActiveClockError if there is no active clock. See apply_tempo_function() for the meaning of every argument (the only difference is that function returns a beat length in seconds per beat).