# Format yaml configuration format ```yaml # Log all device connections [ log_devices: | default = false ] # Midi backend to use. Currently only alsa [ driver: alsa ] # Device definitions devices: [ - ... ] ``` ### `` Definition of one device with its config and corresponding events. ```yaml # Find device by name with literal string [ name: ] # Find device by name with regex [ regex: ] # Find device by exact address [ addr: ] # Max number of devices to connect for this device definition. [ max_connections: | default = inf ] # Max length of event queue for processing. [ queue_length: | default = 256 ] # Time interval between executions. # Actual interval can be longer if execution is longer than this value. # Supports time extensions, example: 1s, 100ms... [ interval: | default = 0 ] # Log all midi events of device [ log_events: | default = false ] # Commands to run on device connect connect: [ - ... ] # Commands to run on device disconnect disconnect: [ - ... ] # Definitions of executions on MIDI events events: [ - ... ] ``` ### `` Definition of one MIDI event condition and its corresponding executions. ```yaml # Max number of devices to connect for this device definition. [ max_connections: | default = inf ] # Max length of event queue for processing. [ queue_length: | default = 256 ] # Time interval between executions. # Actual interval can be longer if execution is longer than this value. # Supports time extensions, example: 1s, 100ms... [ interval: | default = 0ms ] # Commands to run on device connect connect: [ - ... ] # Commands to run on device disconnect disconnect: [ - ... ] # Definitions of executions on MIDI events events: [ - ... ] ``` ### `` Definition of one MIDI event condition and its corresponding executions. ```yaml # Max number of devices to connect for this device definition. [ max_connections: | default = inf ] # Max length of event queue for processing. [ queue_length: | default = 256 ] # Time interval between executions. # Actual interval can be longer if execution is longer than this value. # Supports time extensions, example: 1s, 100ms... [ interval: | default = 0ms ] # Commands to run on device connect connect: [ - ... ] # Commands to run on device disconnect disconnect: [ - ... ] # Definitions of executions on MIDI events events: [ - ... ] ```