clockblocks.utilities.apply_rate_function
- clockblocks.utilities.apply_rate_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 rate (in beats per second) by following a function of beats/time. Forwards to
apply_rate_function(); acts on the currently active clock. Raises NoActiveClockError if there is no active clock. Seeapply_tempo_function()for the meaning of every argument (the only difference is thatfunctionreturns a rate in beats per second).