From a77eee67f31812db0909ccfaf756b4316cae2c50 Mon Sep 17 00:00:00 2001 From: ZionFon <38459381+ZionFon@users.noreply.github.com> Date: Sun, 3 Mar 2024 12:55:45 +0100 Subject: [PATCH] APC Key 25 midi controller - I/O configuration in .midiboard.json (#1722) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * APC Key 25 midi controller - I/O configuration in .midiboard.json * Inputs added (dropdown list nessery) * Add colors and blink: green, red, yellow --------- Co-authored-by: Marek ZdrzaƂek --- MidiBoards/apckey25.midiboard.json | 266 +++++++++++++++++++++++++++++ MobiFlightConnector.csproj | 3 + 2 files changed, 269 insertions(+) create mode 100644 MidiBoards/apckey25.midiboard.json diff --git a/MidiBoards/apckey25.midiboard.json b/MidiBoards/apckey25.midiboard.json new file mode 100644 index 00000000..720f5498 --- /dev/null +++ b/MidiBoards/apckey25.midiboard.json @@ -0,0 +1,266 @@ +{ + "$schema": "./mfmidiboard.schema.json", + "InstanceName": "APC Key 25", + "Inputs": [ + { + "Label": "Button 1_%", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "InputType": "Button", + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 32, 33, 34, 35, 36, 37, 38, 39 ] + }, + { + "Label": "Button 2_%", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "InputType": "Button", + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 24, 25, 26, 27, 28, 29, 30, 31 ] + }, + { + "Label": "Button 3_%", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "InputType": "Button", + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 16, 17, 18, 19, 20, 21, 22, 23 ] + }, + { + "Label": "Button 4_%", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "InputType": "Button", + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 8, 9, 10, 11, 12, 13, 14, 15 ] + }, + { + "Label": "Button 5_%", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "InputType": "Button", + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 0, 1, 2, 3, 4, 5, 6, 7 ] + }, + { + "Label": "Function %", + "LabelIds": [ "STOP ALL", "SHIFT", "PLAY", "REC" ], + "InputType": "Button", + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 81, 98, 91, 93 ] + }, + { + "Label": "Function %", + "LabelIds": [ "SUSTAIN" ], + "InputType": "Button", + "MessageType": "CC", + "MessageChannel": 2, + "MessageIds": [ 64 ] + }, + { + "Label": "Horizontal Circle %", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "InputType": "Button", + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 64, 65, 66, 67, 68, 69, 70, 71 ] + }, + { + "Label": "Vertical Circle %", + "LabelIds": [ "1", "2", "3", "4", "5" ], + "InputType": "Button", + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 82, 83, 84, 85, 86 ] + }, + { + "Label": "Knob 1_%", + "LabelIds": [ "1", "2", "3", "4" ], + "InputType": "LimitedKnob", + "MessageType": "CC", + "MessageChannel": 1, + "MessageIds": [ 48, 49, 50, 51 ] + }, + { + "Label": "Knob 2_%", + "LabelIds": [ "1", "2", "3", "4" ], + "InputType": "LimitedKnob", + "MessageType": "CC", + "MessageChannel": 1, + "MessageIds": [ 52, 53, 54, 55 ] + } + ], + "Outputs": [ + { + "Label": "Button 1_% Green LED ", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 32, 33, 34, 35, 36, 37, 38, 39 ], + "ValueOn": 1, + "ValueBlinkOn": 2, + "ValueOff": 0 + }, + { + "Label": "Button 1_% Red LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 32, 33, 34, 35, 36, 37, 38, 39 ], + "ValueOn": 3, + "ValueBlinkOn": 4, + "ValueOff": 0 + }, + { + "Label": "Button 1_% Yellow LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 32, 33, 34, 35, 36, 37, 38, 39 ], + "ValueOn": 5, + "ValueBlinkOn": 6, + "ValueOff": 0 + }, + { + "Label": "Button 2_% Green LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 24, 25, 26, 27, 28, 29, 30, 31 ], + "ValueOn": 1, + "ValueBlinkOn": 2, + "ValueOff": 0 + }, + { + "Label": "Button 2_% Red LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 24, 25, 26, 27, 28, 29, 30, 31 ], + "ValueOn": 3, + "ValueBlinkOn": 4, + "ValueOff": 0 + }, + { + "Label": "Button 2_% Yellow LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 24, 25, 26, 27, 28, 29, 30, 31 ], + "ValueOn": 5, + "ValueBlinkOn": 6, + "ValueOff": 0 + }, + { + "Label": "Button 3_% Green LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 16, 17, 18, 19, 20, 21, 22, 23 ], + "ValueOn": 1, + "ValueBlinkOn": 2, + "ValueOff": 0 + }, + { + "Label": "Button 3_% Red LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 16, 17, 18, 19, 20, 21, 22, 23 ], + "ValueOn": 3, + "ValueBlinkOn": 4, + "ValueOff": 0 + }, + { + "Label": "Button 3_% Yellow LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 16, 17, 18, 19, 20, 21, 22, 23 ], + "ValueOn": 5, + "ValueBlinkOn": 6, + "ValueOff": 0 + }, + { + "Label": "Button 4_% Green LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 8, 9, 10, 11, 12, 13, 14, 15 ], + "ValueOn": 1, + "ValueBlinkOn": 2, + "ValueOff": 0 + }, + { + "Label": "Button 4_% Red LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 8, 9, 10, 11, 12, 13, 14, 15 ], + "ValueOn": 3, + "ValueBlinkOn": 4, + "ValueOff": 0 + }, + { + "Label": "Button 4_% Yellow LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 8, 9, 10, 11, 12, 13, 14, 15 ], + "ValueOn": 5, + "ValueBlinkOn": 6, + "ValueOff": 0 + }, + { + "Label": "Button 5_% Green LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 0, 1, 2, 3, 4, 5, 6, 7 ], + "ValueOn": 1, + "ValueBlinkOn": 2, + "ValueOff": 0 + }, + { + "Label": "Button 5_% Red LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 0, 1, 2, 3, 4, 5, 6, 7 ], + "ValueOn": 3, + "ValueBlinkOn": 4, + "ValueOff": 0 + }, + { + "Label": "Button 5_% Yellow LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 0, 1, 2, 3, 4, 5, 6, 7 ], + "ValueOn": 5, + "ValueBlinkOn": 6, + "ValueOff": 0 + }, + { + "Label": "Horizontal Circle % Red LED", + "LabelIds": [ "1", "2", "3", "4", "5", "6", "7", "8" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 64, 65, 66, 67, 68, 69, 70, 71 ], + "ValueOn": 1, + "ValueBlinkOn": 2, + "ValueOff": 0 + }, + { + "Label": "Vertical Circle % Green LED", + "LabelIds": [ "1", "2", "3", "4", "5" ], + "MessageType": "Note", + "MessageChannel": 1, + "MessageIds": [ 82, 83, 84, 85, 86 ], + "ValueOn": 1, + "ValueBlinkOn": 2, + "ValueOff": 0 + } + ] +} \ No newline at end of file diff --git a/MobiFlightConnector.csproj b/MobiFlightConnector.csproj index 1fa2e689..90ad28ad 100644 --- a/MobiFlightConnector.csproj +++ b/MobiFlightConnector.csproj @@ -1078,6 +1078,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest