Fixed noteOn/Off CINs, coding style & fixes.

This commit is contained in:
Francois Best 2016-10-12 19:22:36 +02:00 committed by GitHub
parent e84d12d9ed
commit 0252ce7ebe
1 changed files with 5 additions and 5 deletions

View File

@ -51,9 +51,9 @@ struct CodeIndexNumbers
sysExEnds2Bytes = 0x06, sysExEnds2Bytes = 0x06,
sysExEnds3Bytes = 0x07, sysExEnds3Bytes = 0x07,
noteOn = 0x08, noteOff = 0x08,
noteOff = 0x09, noteOn = 0x09,
polyKeyPress = 0x0A, polyPressure = 0x0A,
controlChange = 0x0B, controlChange = 0x0B,
programChange = 0x0C, programChange = 0x0C,
channelPressure = 0x0D, channelPressure = 0x0D,
@ -61,9 +61,9 @@ struct CodeIndexNumbers
singleByte = 0x0F, singleByte = 0x0F,
}; };
inline byte getSize(byte inCIN) static inline byte getSize(byte inCodeIndexNumber)
{ {
switch (inCIN) switch (inCodeIndexNumber)
{ {
case noteOn: case noteOn:
case noteOff: case noteOff: