This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
forked from rogerlinndesign/linnstrument-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ls_midi.h
41 lines (38 loc) · 2.17 KB
/
ls_midi.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**************************** ls_midi: LinnStrument MIDI status codes *****************************
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/
or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
***************************************************************************************************
The definitions of the MIDI status codes that are used by the LinnStrument MIDI code.
**************************************************************************************************/
#ifndef MIDI_H_
#define MIDI_H_
enum MIDIStatus {
// Channel Voice Messages
MIDINoteOff = B10000000, // Note Off
MIDINoteOn = B10010000, // Note On
MIDIPolyphonicPressure = B10100000, // Polyphonic Key Pressure
MIDIControlChange = B10110000, // Control Change / Channel Mode
MIDIProgramChange = B11000000, // Program Change
MIDIChannelPressure = B11010000, // Channel Pressure
MIDIPitchBend = B11100000, // Pitch Bend Change
// System Common Messages
MIDISystemExclusive = B11110000, // System Exclusive
MIDITimeCodeQuarterFrame = B11110001, // MIDI Time Code Quarter Frame
MIDISongPositionPointer = B11110010, // Song Position Pointer
MIDISongSelect = B11110011, // Song Select
MIDIUndefined1 = B11110100, // Undefined
MIDIUndefined2 = B11110101, // Undefined
MIDITuneRequest = B11110110, // Tune Request
MIDIEndOfExclusive = B11110111, // End of Exclusive
// System Real-Time Messages
MIDITimingClock = B11111000, // Timing Clock
MIDIUndefined3 = B11111001, // Undefined
MIDIStart = B11111010, // Start
MIDIContinue = B11111011, // Continue
MIDIStop = B11111100, // Stop
MIDIUndefined4 = B11111101, // Undefined
MIDIActiveSensing = B11111110, // Active Sensing
MIDIReset = B11111111 // Reset
};
#endif