Skip to content

Commit 5b3e4ac

Browse files
author
Francois Best
committed
Fix warnings.
1 parent 79c01a2 commit 5b3e4ac

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/midi_Defs.h

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -174,20 +174,16 @@ enum MidiControlChangeNumber
174174

175175
struct RPN
176176
{
177-
#define MIDI_MAKE_RPN(msb, lsb) msb << 7 + lsb
178-
179177
enum RegisteredParameterNumbers
180178
{
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),
179+
PitchBendSensitivity = 0x0000,
180+
ChannelFineTuning = 0x0001,
181+
ChannelCoarseTuning = 0x0002,
182+
SelectTuningProgram = 0x0003,
183+
SelectTuningBank = 0x0004,
184+
ModulationDepthRange = 0x0005,
185+
NullFunction = (0x7f << 7) + 0x7f,
188186
};
189-
190-
#undef MIDI_MAKE_RPN
191187
};
192188

193189
// -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)