Skip to content

Latest commit

 

History

History
75 lines (46 loc) · 1.51 KB

File metadata and controls

75 lines (46 loc) · 1.51 KB

Vibrotactile Pattern Text Format Specification

Overview

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.


Basic Syntax

Each line represents a single instruction.

SET Command

SET <channel_list> <intensity>

Sets one or more actuator channels to a specific intensity level.

Parameters

Channel List

<channel_list>: An integer representing one or more channel indices (0 = first channel) separated by commas.

Intensity

<intensity>: A floating-point value representing normalized vibration intensity between 0.0 (off) and 1.0 (maximum intensity).

Examples

  • 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 Command

WAIT <milliseconds>

Pauses execution for the specified duration before processing the next command.

Parameters

Delay

: A positive floating-point value representing the delay time in milliseconds.

Examples

  • WAIT 50.0
  • WAIT 125.5

Full Example

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