Merge pull request #125 from lathoub/patch-1

changed default size of enums (int) to a smaller type
This commit is contained in:
Francois Best 2019-08-29 12:28:05 +02:00 committed by GitHub
commit cab564b995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ typedef byte FilterMode;
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
/*! Enumeration of MIDI types */ /*! Enumeration of MIDI types */
enum MidiType enum MidiType: uint8_t
{ {
InvalidType = 0x00, ///< For notifying errors InvalidType = 0x00, ///< For notifying errors
NoteOff = 0x80, ///< Note Off NoteOff = 0x80, ///< Note Off
@ -116,7 +116,7 @@ enum __attribute__ ((deprecated)) MidiFilterMode
See the detailed controllers numbers & description here: See the detailed controllers numbers & description here:
http://www.somascape.org/midi/tech/spec.html#ctrlnums http://www.somascape.org/midi/tech/spec.html#ctrlnums
*/ */
enum MidiControlChangeNumber enum MidiControlChangeNumber: uint8_t
{ {
// High resolution Continuous Controllers MSB (+32 for LSB) ---------------- // High resolution Continuous Controllers MSB (+32 for LSB) ----------------
BankSelect = 0, BankSelect = 0,
@ -192,7 +192,7 @@ enum MidiControlChangeNumber
struct RPN struct RPN
{ {
enum RegisteredParameterNumbers enum RegisteredParameterNumbers: uint16_t
{ {
PitchBendSensitivity = 0x0000, PitchBendSensitivity = 0x0000,
ChannelFineTuning = 0x0001, ChannelFineTuning = 0x0001,