Skip to content

@liminal-hq/undertone / setcpm

Function: setcpm()

setcpm(cyclesPerMinute): void

Defined in: scheduler.ts:88

Sets a default tempo in cycles per minute, used by play()/loop() calls that don't pass an explicit bpm — the top-of-file "set it once" style some scripts prefer over per-call options. An explicit { bpm } on a given call always wins over this. Global mutable state, read once at each play()/ loop() call (not live-reactive mid-loop) — call again to change it.

Parameters

cyclesPerMinute

number

Returns

void