Play named waveform
dglab_play_waveformPlay a saved or hot-loaded waveform on a selected channel, optionally bounded to a duration by repeating/truncating. Replaces the active waveform task while keeping intensity unchanged.
Instructions
Play a named waveform (built-in preset or hot-loaded .pulse file; matching is case/separator-insensitive across ids and English/Chinese names) on one channel. Optionally repeat or truncate it to durationMs (max 10000ms). Requires a safe nonzero intensity on the channel; never changes intensity. Playback replaces the channel's current waveform task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Waveform name or id. | |
| slotId | No | Device slot id within the app. Omit when exactly one compatible device exists. | |
| channel | Yes | Output channel | |
| clientId | No | Paired app (controlled client) id. Omit when exactly one app is attached. | |
| durationMs | No | Bound the playback to this duration by repeating/truncating. |