Skip to content

@liminal-hq/undertone / ControlPatch

Type Alias: ControlPatch ​

ControlPatch = Partial<VoiceParams> & object

Defined in: types.ts:162

A partial set of voice parameters carried by each pattern event. Chainable pattern methods merge patches; the engine fills in defaults at play time.

degree and chord are pre-play fields, not VoiceParams: n() sets degree for .scale() to resolve into pitch, and chord() sets chord for .voicing() to expand into per-note pitches. Neither survives past that resolution step, and engine.ts never reads them — they pass through resolveParams()'s spread harmlessly if a pattern reaches play time unresolved.

Type Declaration ​

chord? ​

optional chord?: string

degree? ​

optional degree?: number