Fork me on GitHub

pimatic-wavtrigger by Bert Gierveld (bertreb) | github | npm

pimatic-wavtrigger

Pimatic plugin for controlling a Robert Sonics WavTrigger.

The WavTrigger plays high quality stereo audio tracks. The sd-card can contain 1000 wav audiotrack. The WAV Trigger is polyphonic; it can play and blend up to 14 tracks at a time.

After installing the plugin, you create a WavTigger device with the following config:

port: "the usb port number the WavTrigger is connected on"
volume: "the default volume (-90 till 0)"
buttons: [
    button:
    id: "The track button id"
    text: "The track button name"
    wavNumber: "The wavTrigger file number (0-999)"
    confirm: "Ask the user to confirm the button press"
  ]

You can create a button to trigger a track, but it's not needed because the WavTrigger can be controlled via rules only.

Tracks can be started and stopped via rules. The syntax is:

wav <wav-device-id> [stop | play [tracknummber | $tracknumber-variable] ]

Plugin Config Options

pimatic-wavtrigger configuration options
OptionDescriptionDefault
debug
boolean
Debug mode. Writes debug messages to the pimatic log, if set to true.
false

Device Config Options

pimatic-wavtrigger device config schemas

WavTrigger

WavTrigger config options
OptionDescriptionDefault
port
string
the usb port number the WavTrigger is connected on
volume
number
default volume (-90 till 0)
-10
buttons
array of objects
Tracks to trigger
[]
Elements
enableActiveButton
boolean
Highlight last pressed track if enabled
true
pimatic-wavtrigger is written by Bert Gierveld (bertreb)