Merge pull request #125 from lathoub/patch-1
changed default size of enums (int) to a smaller type
This commit is contained in:
commit
cab564b995
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue