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_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 
57 };
58 
59 #define BUTTON_A BUTTON_1
60 #define BUTTON_B BUTTON_2
61 #define BUTTON_C BUTTON_3
62 #define BUTTON_D BUTTON_4
63 #define BUTTON_E BUTTON_5
64 #define BUTTON_F BUTTON_6
65 #define BUTTON_G BUTTON_7
66 #define BUTTON_H BUTTON_8
67 
72  BUTTON_1 = 4,
73  BUTTON_2 = 5,
74  BUTTON_3 = 6,
75  BUTTON_4 = 7,
76  BUTTON_5 = 8,
77  BUTTON_6 = 9,
78  BUTTON_7 = 10,
79  BUTTON_8 = 11
80 };
81 
82 #define SYSEX_CONFIGURATION_AUDIO_RATE "FS"
83 #define SYSEX_CONFIGURATION_AUDIO_BITDEPTH "BD"
84 #define SYSEX_CONFIGURATION_AUDIO_DATAFORMAT "DF"
85 #define SYSEX_CONFIGURATION_AUDIO_BLOCKSIZE "BS"
86 #define SYSEX_CONFIGURATION_CODEC_SWAP "SW"
87 #define SYSEX_CONFIGURATION_CODEC_BYPASS "BY"
88 #define SYSEX_CONFIGURATION_CODEC_OUTPUT_GAIN "OG"
89 #define SYSEX_CONFIGURATION_PC_BUTTON "PC"
90 #define SYSEX_CONFIGURATION_INPUT_OFFSET "IO"
91 #define SYSEX_CONFIGURATION_INPUT_SCALAR "IS"
92 #define SYSEX_CONFIGURATION_OUTPUT_OFFSET "OO"
93 #define SYSEX_CONFIGURATION_OUTPUT_SCALAR "OS"
94 #define SYSEX_CONFIGURATION_MIDI_INPUT_CHANNEL "MI"
95 #define SYSEX_CONFIGURATION_MIDI_OUTPUT_CHANNEL "MO"
96 
112 };
113 
114 /*
115  MIDI Control Change Mappings
116 */
118  PATCH_PARAMETER_A = 20, /* Parameter A */
119  PATCH_PARAMETER_B = 21, /* Parameter B */
120  PATCH_PARAMETER_C = 22, /* Parameter C */
121  PATCH_PARAMETER_D = 23, /* Parameter D */
122  PATCH_PARAMETER_E = 24, /* Expression pedal / input */
123  PATCH_PARAMETER_F = 1, /* Extended parameter Modulation */
124  PATCH_PARAMETER_G = 12, /* Extended parameter Effect Ctrl 1 */
125  PATCH_PARAMETER_H = 13, /* Extended parameter Effect Ctrl 2 */
126 
127  PATCH_BUTTON = 25, /* LED Pushbutton: 0=not pressed, 127=pressed */
128  PATCH_CONTROL = 26, /* Remote control: 0=local, 127=MIDI */
129  LED = 30, /* set/get LED value:
130  * 0-41 = off
131  * 42-83 = green
132  * 84-127 = red
133  */
134  LEFT_INPUT_GAIN = 32, /* left channel input gain, -34.5dB to +12dB (92 = 0dB) */
136  LEFT_OUTPUT_GAIN = 34, /* left channel output gain, -73dB to +6dB (121 = 0dB) */
138  LEFT_INPUT_MUTE = 36, /* mute left input (127=muted) */
140  LEFT_OUTPUT_MUTE = 38, /* mute left output (127=muted) */
142  BYPASS = 40, /* codec bypass mode (127=bypass) */
143  REQUEST_SETTINGS = 67, /* load settings from device (127=all settings) (30 for LED) (more to come) */
144  SAVE_SETTINGS = 68, /* save settings to device */
145  FACTORY_RESET = 70, /* reset all settings */
147 
180 };
181 
182 #endif // OPENWAREMIDICONTROL_H_INCLUDED
PatchParameterId
OpenWareMidiControl
PatchButtonId
OpenWareMidiSysexCommand