Skip to content

Commit

Permalink
io: add reserved msg type where dmx type has been located previously
Browse files Browse the repository at this point in the history
  • Loading branch information
paradajz committed Nov 19, 2022
1 parent 4f23a7c commit 8909514
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/application/io/analog/Analog.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ namespace io
NRPN_14BIT,
PITCH_BEND,
CONTROL_CHANGE_14BIT,
RESERVED,
AMOUNT
};

Expand Down Expand Up @@ -137,14 +138,15 @@ namespace io
uint8_t _fsrPressed[Collection::SIZE() / 8 + 1] = {};

static constexpr MIDI::messageType_t INTERNAL_MSG_TO_MIDI_TYPE[static_cast<uint8_t>(type_t::AMOUNT)] = {
MIDI::messageType_t::CONTROL_CHANGE,
MIDI::messageType_t::NOTE_ON,
MIDI::messageType_t::NOTE_ON, // fsr: set to off when appropriate
MIDI::messageType_t::INVALID, // button: let other listeners handle this
MIDI::messageType_t::NRPN_7BIT,
MIDI::messageType_t::NRPN_14BIT,
MIDI::messageType_t::PITCH_BEND,
MIDI::messageType_t::CONTROL_CHANGE_14BIT,
MIDI::messageType_t::CONTROL_CHANGE, // POTENTIOMETER_CONTROL_CHANGE
MIDI::messageType_t::NOTE_ON, // POTENTIOMETER_NOTE
MIDI::messageType_t::NOTE_ON, // FSR (set to note off when appropriate)
MIDI::messageType_t::INVALID, // BUTTON (let other listeners handle this)
MIDI::messageType_t::NRPN_7BIT, // NRPN_7BIT
MIDI::messageType_t::NRPN_14BIT, // NRPN_14BIT
MIDI::messageType_t::PITCH_BEND, // PITCH_BEND
MIDI::messageType_t::CONTROL_CHANGE_14BIT, // CONTROL_CHANGE_14BIT
MIDI::messageType_t::INVALID, // RESERVED
};
};
} // namespace io
Expand Down
1 change: 1 addition & 0 deletions src/application/io/analog/stub/Analog.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ namespace io
NRPN_14BIT,
PITCH_BEND,
CONTROL_CHANGE_14BIT,
RESERVED,
AMOUNT
};

Expand Down
2 changes: 2 additions & 0 deletions src/application/io/buttons/Buttons.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ namespace io
MULTI_VAL_INC_DEC_CC,
NOTE_OFF_ONLY,
CONTROL_CHANGE0_ONLY,
RESERVED,
PROGRAM_CHANGE_OFFSET_INC,
PROGRAM_CHANGE_OFFSET_DEC,
AMOUNT
Expand Down Expand Up @@ -175,6 +176,7 @@ namespace io
MIDI::messageType_t::CONTROL_CHANGE, // MULTI_VAL_INC_DEC_CC
MIDI::messageType_t::NOTE_ON, // NOTE_OFF_ONLY
MIDI::messageType_t::CONTROL_CHANGE, // CONTROL_CHANGE0_ONLY
MIDI::messageType_t::INVALID, // RESERVED
MIDI::messageType_t::INVALID, // PROGRAM_CHANGE_OFFSET_INC
MIDI::messageType_t::INVALID, // PROGRAM_CHANGE_OFFSET_DEC
};
Expand Down
1 change: 1 addition & 0 deletions src/application/io/buttons/stub/Buttons.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ namespace io
MULTI_VAL_INC_DEC_CC,
NOTE_OFF_ONLY,
CONTROL_CHANGE0_ONLY,
RESERVED,
PROGRAM_CHANGE_OFFSET_INC,
PROGRAM_CHANGE_OFFSET_DEC,
AMOUNT
Expand Down
2 changes: 2 additions & 0 deletions src/application/io/encoders/Encoders.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ namespace io
NRPN_7BIT,
NRPN_14BIT,
CONTROL_CHANGE_14BIT,
RESERVED,
AMOUNT
};

Expand Down Expand Up @@ -219,6 +220,7 @@ namespace io
MIDI::messageType_t::NRPN_7BIT, // NRPN_7BIT
MIDI::messageType_t::NRPN_14BIT, // NRPN_14BIT
MIDI::messageType_t::CONTROL_CHANGE_14BIT, // CONTROL_CHANGE_14BIT
MIDI::messageType_t::INVALID, // RESERVED
};
};
} // namespace io
Expand Down
1 change: 1 addition & 0 deletions src/application/io/encoders/stub/Encoders.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ namespace io
NRPN_7BIT,
NRPN_14BIT,
CONTROL_CHANGE_14BIT,
RESERVED,
AMOUNT
};

Expand Down

0 comments on commit 8909514

Please sign in to comment.