This format defines a simple, human-readable way to describe vibrotactile playback patterns as sequences of commands. Each command represents either a parameter change (e.g., vibration intensity on one or more channels) or a timing delay between actions. The format is line-based and can be parsed sequentially.
Each line represents a single instruction.
SET <channel_list> <intensity>
Sets one or more actuator channels to a specific intensity level.
<channel_list>: An integer representing one or more channel indices (0 = first channel) separated by commas.
<intensity>: A floating-point value representing normalized vibration intensity between 0.0 (off) and 1.0 (maximum intensity).
- Activate channel 0 at full intensity:
SET 0 1.0 - Activate channels 1 and 2 at 60% intensity:
SET 1,2 0.6 - Activate channels 1, 2, and 4 at 20% intensity:
SET 0,1,3 0.2 - Turn off channel 2:
SET 2 0.0
WAIT <milliseconds>
Pauses execution for the specified duration before processing the next command.
: A positive floating-point value representing the delay time in milliseconds.
WAIT 50.0WAIT 125.5
SET 0,1 1.0
WAIT 100.0
SET 0,1 0.0
SET 1,2 0.8
WAIT 100.0
SET 1,2 0.0
SET 2,3 0.`
WAIT 100.0
SET 2,3 0.0
SET 0,3 0.4
WAIT 150.0
SET 0,3 0.0