Skip to content

@liminal-hq/undertone / LoopOptions

Interface: LoopOptions

Defined in: scheduler.ts:37

Properties

bpm?

optional bpm?: number

Defined in: scheduler.ts:41

Tempo in beats per minute, four beats to a cycle. Default 120 (2-second cycles).


ctx?

optional ctx?: AudioContextLike

Defined in: scheduler.ts:39

Audio context to schedule against; a lazily-created shared AudioContext when omitted.


timer?

optional timer?: TimerLike

Defined in: scheduler.ts:43

Injectable timer (tests tick it by hand); defaults to global setInterval/clearInterval.