From 07c18f022b65796f325b45545bdb8497bcb47abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Duy=C3=A9?= Date: Fri, 13 Oct 2017 15:58:17 +0200 Subject: [PATCH] Add MIDI /control example (fader example) --- resources/docs/extras/midi.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resources/docs/extras/midi.md b/resources/docs/extras/midi.md index 50e78c26..8c814c57 100644 --- a/resources/docs/extras/midi.md +++ b/resources/docs/extras/midi.md @@ -63,6 +63,16 @@ Control change event. - `cc`: integer between 0 and 127 - `value`: integer between 0 and 127 +Example: + +A fader might be configured as follows in order to send a MIDI control message (a volume control in this example): + +- `address`: /control +- `pre-args`: [1, 7] (MIDI channel 1, control number 7 generally used as volume control) +- `range`: {"min": 0, "max": 127} (MIDI values are encoded in this range) +- `precision`: 0 (this is important to avoid sending float values) +- `target`: ["midi:device_name"] + ### `/program channel program` Program change event.