Skip to content

Commit

Permalink
Added documentation of outbound messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mauer committed Oct 27, 2023
1 parent 473f45b commit afa8895
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions docs/outbound_mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,29 @@ mapping_out = [
]
```

## Common variables
## Required Parameters

The following variables are required for each mapping.
The following parameter is required for each mapping.

| Variable | Description |
|----------|-----------------------------------|
| ch | MIDI Channel (Default Value = 11) |
| Parameter | Description |
|-----------|----------------------------------------|
| ch | MIDI Channel (Default Value = 11) |
| type | Specifies the mapping type (see below) |

One of the following parameters is required, depending on the MIDI message type.

| Parameter | MIDI Message Type | Expected Parameter Value |
|-----------|-------------------|--------------------------|
| cc | Control Change | Control Change No Number |
| note | Note On / Off | Note Number |
| pitch | Pitch Bend | Pitch Bend Number |
| prg | Program Change | Program Change Number |

## Optional Parameters

| Parameter | Description |
|-----------|------------------------|
| sl | Sublayer |

## MIDI Type

Expand All @@ -47,13 +62,13 @@ A mapping must contains exactly one of the following variables.
| pitch | Pitch Bend Number |
| prg | Program Change Number |


## Mapping Types

The following mapping types are supported:

| Mapping Type | Name | Description and usage |
|:------------:|:---------:|---------------------------------------------------------------|
| drf | Dataref | Reads the dataref value and sends a MIDI message if necessary |
| con | Constant | Sends a constant velocity to the MIDI device |
| Mapping Type | Name | Description and usage |
|:------------:|:---------:|------------------------------------------------------------------|
| drf | Dataref | Reads the dataref value and sends a MIDI message if necessary |
| con | Constant | Sends a constant velocity to the MIDI device |
| sld | Slider | Sends a veloctiy based on a dataref to control motorized sliders |

0 comments on commit afa8895

Please sign in to comment.