rmidimap/test/vmpk.yml
zawz c75c7d0409 feat: additions and improvements
- add error handling
- conf: improve parsing method
- conf: change multiconnect to max_connections
- conf: add condition on value for event
- conf: add checks and default values on configs
- conf: rename shell param to cmd
- conf: add remap param
- midi: finish handling of all event types
- midi: implement regex device filter
- run: implement envmap
- alsa: implement timestamp
2023-08-21 15:24:06 +02:00

56 lines
1.5 KiB
YAML

devices:
- name: 'VMPK'
max_connections: 1
connect:
- args: [ "sh", "-c", "echo Hello world!" ]
disconnect:
- args: [ "sh", "-c", "echo Bye!" ]
events:
- type: ProgramChange
run:
- cmd: "echo [$channel] ProgramChange $id"
- type: Controller
remap: 0:100
run:
- cmd: "echo [$channel] Controller $id $value $rawvalue"
- type: NoteOff
id: 25-30
run:
- cmd: "echo [$channel] NoteOff $id"
- type: NoteOn
channel: 0
run:
- cmd: "echo [$channel] NoteOn $id $value $raw"
- type: PitchBend
remap: 0-100
float: true
value: 0-65535
run:
- cmd: "echo [$channel] PitchBend $value $raw $toto"
envconf:
timestamp: toto
- name: 'VMPK'
max_connections: 1
connect:
- args: [ "sh", "-c", "echo Hello world! 2" ]
disconnect:
- args: [ "sh", "-c", "echo Bye! 2" ]
events:
- type: NoteOff
id: 25-30
run:
- args: [ "sh", "-c", "echo 2 [$channel] NoteOff $id" ]
- type: NoteOn
channel: 0
#channel: -1
remap: -1
run:
- args: [ "sh", "-c", "echo 2 [$channel] NoteOn $id $value" ]
- type: PitchBend
remap: 0-100
float: true
value: 0-65535
run:
- args: [ "sh", "-c", "echo [$channel] PitchBend $value $raw $toto" ]
envconf:
timestamp: toto