clocked

clockedRunner · utilities · schema v1

Self-contained mini-LIVECODE owning a single clocked() callback. Spawned by the parent LIVECODE card when you invoke clocked(division, fn); deleting the runner cancels the schedule. Body is editable inline; the audio-domain factory re-evaluates it on every division boundary derived from TIMELORDE.bpm.

A self-contained mini-LIVECODE that owns a single clocked() callback. You don't add it from the palette — a LIVECODE module spawns one for you when your script calls clocked(division, fn), and the runner stores that function body plus its musical division (e.g. 1/16) on its own state. It subscribes to the rack's shared clock and re-runs the body on every tick that crosses the next division boundary, locked to TIMELORDE's tempo (so a clock.bpm(140) call retimes it on the next tick, and a MIDI-locked tempo follows automatically). Its card shows the body in a code editor with a status line, and you can edit the body inline — it recompiles on change. It has no audio jacks: like LIVECODE itself, it acts by mutating the rack through the patch graph each tick. Deleting it cancels its clock subscription.

the faceplate

clockedaudiocvgatepitch
0 inputs · 0 outputs · 0 params

source

clocked-runner.ts on GitHub.

Generated from packages/web/src/lib/{audio,video}/module-registry.ts · repo