Skip to content

@liminal-hq/undertone / playParams

Function: playParams() ​

playParams(ctx, voices, options?): PlaybackHandle

Defined in: engine.ts:678

Plays plain voice data — an array of (partial) VoiceParams, e.g. loaded from a save file or built by an in-game sound editor — with no patterns involved. Missing fields take the same defaults as a pattern event; the returned handle can stop every voice early.

Parameters ​

ctx ​

AudioContextLike

voices ​

readonly ControlPatch[]

options? ​

PlayParamsOptions = {}

Returns ​

PlaybackHandle