OpenWareLaboratory
OpenWareMidiControl.h
Go to the documentation of this file.
1 #ifndef OPENWAREMIDICONTROL_H_INCLUDED
2 #define OPENWAREMIDICONTROL_H_INCLUDED
3 
4 #define MIDI_SYSEX_MANUFACTURER 0x7d /* Educational or development use only */
5 #define MIDI_SYSEX_OMNI_DEVICE 0x52
6 #define MIDI_SYSEX_OWL_DEVICE 0x20 /* OWL Open Ware Laboratory */
7 #define MIDI_SYSEX_VERSION 0x03 /* Revision */
8 
18 
27 
36 
45 
54 };
55 
56 #define BUTTON_A BUTTON_1
57 #define BUTTON_B BUTTON_2
58 #define BUTTON_C BUTTON_3
59 #define BUTTON_D BUTTON_4
60 #define BUTTON_E BUTTON_5
61 #define BUTTON_F BUTTON_6
62 #define BUTTON_G BUTTON_7
63 #define BUTTON_H BUTTON_8
64 
69  BUTTON_1 = 4,
70  BUTTON_2 = 5,
71  BUTTON_3 = 6,
72  BUTTON_4 = 7,
73  BUTTON_5 = 8,
74  BUTTON_6 = 9,
75  BUTTON_7 = 10,
76  BUTTON_8 = 11
77 };
78 
79 #define SYSEX_CONFIGURATION_AUDIO_RATE "FS"
80 #define SYSEX_CONFIGURATION_AUDIO_BITDEPTH "BD"
81 #define SYSEX_CONFIGURATION_AUDIO_DATAFORMAT "DF"
82 #define SYSEX_CONFIGURATION_AUDIO_BLOCKSIZE "BS"
83 #define SYSEX_CONFIGURATION_CODEC_SWAP "SW"
84 #define SYSEX_CONFIGURATION_CODEC_BYPASS "BY"
85 #define SYSEX_CONFIGURATION_CODEC_INPUT_GAIN "IG"
86 #define SYSEX_CONFIGURATION_CODEC_OUTPUT_GAIN "OG"
87 #define SYSEX_CONFIGURATION_CODEC_HIGHPASS "HP"
88 #define SYSEX_CONFIGURATION_PC_BUTTON "PC"
89 #define SYSEX_CONFIGURATION_INPUT_OFFSET "IO"
90 #define SYSEX_CONFIGURATION_INPUT_SCALAR "IS"
91 #define SYSEX_CONFIGURATION_OUTPUT_OFFSET "OO"
92 #define SYSEX_CONFIGURATION_OUTPUT_SCALAR "OS"
93 #define SYSEX_CONFIGURATION_MIDI_INPUT_CHANNEL "MI"
94 #define SYSEX_CONFIGURATION_MIDI_OUTPUT_CHANNEL "MO"
95 #define SYSEX_CONFIGURATION_BUS_ENABLE "BE"
96 #define SYSEX_CONFIGURATION_BUS_FORWARD_MIDI "BM"
97 #define SYSEX_CONFIGURATION_BOOTLOADER_LOCK "BL"
98 
122 };
123 
124 /*
125  MIDI Control Change Mappings
126 */
128  PATCH_PARAMETER_A = 20, /* Parameter A */
129  PATCH_PARAMETER_B = 21, /* Parameter B */
130  PATCH_PARAMETER_C = 22, /* Parameter C */
131  PATCH_PARAMETER_D = 23, /* Parameter D */
132  PATCH_PARAMETER_E = 24, /* Expression pedal / input */
133  PATCH_PARAMETER_F = 1, /* Extended parameter Modulation */
134  PATCH_PARAMETER_G = 12, /* Extended parameter Effect Ctrl 1 */
135  PATCH_PARAMETER_H = 13, /* Extended parameter Effect Ctrl 2 */
136 
137  PATCH_BUTTON = 25, /* LED Pushbutton: 0=not pressed, 127=pressed */
138  PATCH_CONTROL = 26, /* Remote control: 0=local, 127=MIDI */
139  PATCH_BUTTON_ON = 27, /* Switch a button on: 0-127 button id */
140  PATCH_BUTTON_OFF = 28, /* Switch a button off: 0-127 button id */
141  LED = 30, /* set/get LED value:
142  * 0-41 = off
143  * 42-83 = green
144  * 84-127 = red
145  */
146  LEFT_INPUT_GAIN = 32, /* left channel input gain, -34.5dB to +12dB (92 = 0dB) */
148  LEFT_OUTPUT_GAIN = 34, /* left channel output gain, -73dB to +6dB (121 = 0dB) */
150  LEFT_INPUT_MUTE = 36, /* mute left input (127=muted) */
152  LEFT_OUTPUT_MUTE = 38, /* mute left output (127=muted) */
154  BYPASS = 40, /* codec bypass mode (127=bypass) */
155  REQUEST_SETTINGS = 67, /* load settings from device (127=all settings) (30 for LED) (more to come) */
156  SAVE_SETTINGS = 68, /* save settings to device */
157  FACTORY_RESET = 70, /* reset all settings */
159 
192 };
193 
194 #endif // OPENWAREMIDICONTROL_H_INCLUDED
PatchParameterId
OpenWareMidiControl
PatchButtonId
OpenWareMidiSysexCommand