We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79c01a2 commit 5b3e4acCopy full SHA for 5b3e4ac
src/midi_Defs.h
@@ -174,20 +174,16 @@ enum MidiControlChangeNumber
174
175
struct RPN
176
{
177
-#define MIDI_MAKE_RPN(msb, lsb) msb << 7 + lsb
178
-
179
enum RegisteredParameterNumbers
180
181
- PitchBendSensitivity = MIDI_MAKE_RPN(0x00, 0x00),
182
- ChannelFineTuning = MIDI_MAKE_RPN(0x00, 0x01),
183
- ChannelCoarseTuning = MIDI_MAKE_RPN(0x00, 0x02),
184
- SelectTuningProgram = MIDI_MAKE_RPN(0x00, 0x03),
185
- SelectTuningBank = MIDI_MAKE_RPN(0x00, 0x04),
186
- ModulationDepthRange = MIDI_MAKE_RPN(0x00, 0x05),
187
- NullFunction = MIDI_MAKE_RPN(0x7f, 0x7f),
+ PitchBendSensitivity = 0x0000,
+ ChannelFineTuning = 0x0001,
+ ChannelCoarseTuning = 0x0002,
+ SelectTuningProgram = 0x0003,
+ SelectTuningBank = 0x0004,
+ ModulationDepthRange = 0x0005,
+ NullFunction = (0x7f << 7) + 0x7f,
188
};
189
190
-#undef MIDI_MAKE_RPN
191
192
193
// -----------------------------------------------------------------------------
0 commit comments