LMMS
Loading...
Searching...
No Matches
Midi.h
Go to the documentation of this file.
1/*
2 * Midi.h - constants, structs etc. concerning MIDI
3 *
4 * Copyright (c) 2005-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
5 *
6 * This file is part of LMMS - https://lmms.io
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program (see COPYING); if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301 USA.
22 *
23 */
24
25#ifndef LMMS_MIDI_H
26#define LMMS_MIDI_H
27
28
29namespace lmms
30{
31
32
34{
35 // messages
37 MidiNoteOn = 0x90,
43 // system exclusive
44 MidiSysEx= 0xF0,
45 // system common - never in midi files
50 MidiEOX= 0xF7,
51 // system real-time - never in midi files
52 MidiSync = 0xF8,
53 MidiTick = 0xF9,
54 MidiStart = 0xFA,
56 MidiStop = 0xFC,
59 // meta event - for midi files only
61} ;
62
83
115
126
127const int MidiChannelCount = 16;
128const int MidiControllerCount = 128;
129const int MidiProgramCount = 128;
130const int MidiMaxVelocity = 127;
133const int MidiMaxKey = 127;
134
135const int MidiMaxPanning = 127;
136const int MidiMinPanning = -128;
137
138const int MidiMinPitchBend = 0;
139const int MidiMaxPitchBend = 16383;
140
141
142} // namespace lmms
143
144#endif // LMMS_MIDI_H
Definition AudioAlsa.cpp:35
const int MidiControllerCount
Definition Midi.h:128
const int MidiDefaultVelocity
Definition Midi.h:131
const int MidiMaxKey
Definition Midi.h:133
MidiControllerRegisteredParameterNumbers
Definition Midi.h:117
@ MidiTuningBankSelectRPN
Definition Midi.h:122
@ MidiChannelCoarseTuningRPN
Definition Midi.h:120
@ MidiPitchBendSensitivityRPN
Definition Midi.h:118
@ MidiModulationDepthRangeRPN
Definition Midi.h:123
@ MidiNullFunctionNumberRPN
Definition Midi.h:124
@ MidiTuningProgramChangeRPN
Definition Midi.h:121
@ MidiChannelFineTuningRPN
Definition Midi.h:119
const int MidiMaxPitchBend
Definition Midi.h:139
MidiMetaEventTypes
Definition Midi.h:64
@ MidiCopyright
Definition Midi.h:66
@ MidiPortNumber
Definition Midi.h:72
@ MidiNotePanning
Definition Midi.h:80
@ MidiTimeSignature
Definition Midi.h:76
@ MidiLyric
Definition Midi.h:69
@ MidiMarker
Definition Midi.h:70
@ MidiSetTempo
Definition Midi.h:74
@ MidiSMPTEOffset
Definition Midi.h:75
@ MidiEOT
Definition Midi.h:73
@ MidiKeySignature
Definition Midi.h:77
@ MidiCuePoint
Definition Midi.h:71
@ MidiSequencerEvent
Definition Midi.h:78
@ MidiInstName
Definition Midi.h:68
@ MidiTrackName
Definition Midi.h:67
@ MidiMetaInvalid
Definition Midi.h:65
@ MidiMetaCustom
Definition Midi.h:79
const int MidiMaxControllerValue
Definition Midi.h:132
const int MidiMaxPanning
Definition Midi.h:135
const int MidiMaxVelocity
Definition Midi.h:130
const int MidiMinPanning
Definition Midi.h:136
MidiEventTypes
Definition Midi.h:34
@ MidiMetaEvent
Definition Midi.h:60
@ MidiSync
Definition Midi.h:52
@ MidiContinue
Definition Midi.h:55
@ MidiNoteOn
Definition Midi.h:37
@ MidiTick
Definition Midi.h:53
@ MidiStart
Definition Midi.h:54
@ MidiTimeCode
Definition Midi.h:46
@ MidiControlChange
Definition Midi.h:39
@ MidiSysEx
Definition Midi.h:44
@ MidiSystemReset
Definition Midi.h:58
@ MidiEOX
Definition Midi.h:50
@ MidiChannelPressure
Definition Midi.h:41
@ MidiSongPosition
Definition Midi.h:47
@ MidiKeyPressure
Definition Midi.h:38
@ MidiTuneRequest
Definition Midi.h:49
@ MidiProgramChange
Definition Midi.h:40
@ MidiActiveSensing
Definition Midi.h:57
@ MidiSongSelect
Definition Midi.h:48
@ MidiStop
Definition Midi.h:56
@ MidiNoteOff
Definition Midi.h:36
@ MidiPitchBend
Definition Midi.h:42
const int MidiChannelCount
Definition Midi.h:127
const int MidiProgramCount
Definition Midi.h:129
MidiStandardControllers
Definition Midi.h:85
@ MidiControllerSostenuto
Definition Midi.h:99
@ MidiControllerMainVolume
Definition Midi.h:92
@ MidiControllerResetAllControllers
Definition Midi.h:106
@ MidiControllerAllSoundOff
Definition Midi.h:105
@ MidiControllerSoftPedal
Definition Midi.h:100
@ MidiControllerRegisteredParameterNumberLSB
Definition Midi.h:102
@ MidiControllerMonoOn
Definition Midi.h:111
@ MidiControllerOmniOff
Definition Midi.h:110
@ MidiControllerEffectControl2
Definition Midi.h:96
@ MidiControllerLegatoFootswitch
Definition Midi.h:101
@ MidiControllerLocalControl
Definition Midi.h:107
@ MidiControllerPolyOn
Definition Midi.h:112
@ MidiControllerFootController
Definition Midi.h:89
@ MidiControllerModulationWheel
Definition Midi.h:87
@ MidiControllerAllNotesOff
Definition Midi.h:108
@ MidiControllerPortamento
Definition Midi.h:98
@ MidiControllerRegisteredParameterNumberMSB
Definition Midi.h:103
@ MidiControllerEffectControl1
Definition Midi.h:95
@ MidiControllerOmniOn
Definition Midi.h:109
@ MidiControllerPan
Definition Midi.h:94
@ MidiControllerBreathController
Definition Midi.h:88
@ MidiControllerDataEntry
Definition Midi.h:91
@ MidiControllerBankSelect
Definition Midi.h:86
@ MidiControllerPortamentoTime
Definition Midi.h:90
@ MidiControllerBalance
Definition Midi.h:93
@ MidiControllerSustain
Definition Midi.h:97
const int MidiMinPitchBend
Definition Midi.h:138
MidiMetaEventTypes MidiMetaEventType
Definition Midi.h:82