rmidimap/examples/vmpk.yml
zawz e61163da88 refactor: rework internal structure and add minor features
~ rework midi backend structure
+ add documentation
+ implement connect by address
+ add log_devices and log_events options
2023-09-08 15:31:16 +02:00

67 lines
1.8 KiB
YAML

log_devices: true
devices:
- name: 'System'
log_events: true
- name: 'VMPK'
log_events: true
max_connections: 1
queue_length: 3
interval: 100ms
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: NoteOff
id: 30-127
channel: 0
run:
- cmd: "for I in $(seq 1 3) ; do echo wait $I ; sleep 1; done"
detach: true
- 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
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