summaryrefslogtreecommitdiffstats
path: root/libkmid/midispec.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch)
tree5ac38a06f3dde268dc7927dc155896926aaf7012 /libkmid/midispec.h
downloadtdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz
tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkmid/midispec.h')
-rw-r--r--libkmid/midispec.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/libkmid/midispec.h b/libkmid/midispec.h
new file mode 100644
index 000000000..3f60d49f2
--- /dev/null
+++ b/libkmid/midispec.h
@@ -0,0 +1,60 @@
+/* midispec.h - Some definitions to make the code more readable
+ This file is part of LibKMid 0.9.5
+ Copyright (C) 1997,98,99,2000 Antonio Larrosa Jimenez
+ LibKMid's homepage : http://www.arrakis.es/~rlarrosa/libkmid.html
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+
+ Send comments and bug fixes to Antonio Larrosa <larrosa@kde.org>
+
+***************************************************************************/
+
+#ifndef _MIDISPEC_H
+#define _MIDISPEC_H
+
+#define META_EVENT 0xFF
+
+#define ME_TRACK_SEQ_NUMBER 0x00
+#define ME_TEXT 0x01
+#define ME_COPYRIGHT 0x02
+#define ME_SEQ_OR_TRACK_NAME 0x03
+#define ME_TRACK_INSTR_NAME 0x04
+#define ME_LYRIC 0x05
+#define ME_MARKER 0x06
+#define ME_CUE_POINT 0x07
+#define ME_CHANNEL_PREFIX 0x20
+#define ME_MIDI_PORT 0x21
+#define ME_SET_TEMPO 0x51
+#define ME_SMPTE_OFFSET 0x54
+#define ME_TIME_SIGNATURE 0x58
+#define ME_KEY_SIGNATURE 0x59
+/* sf=sharps/flats (-7=7 flats, 0=key of C, 7=7 sharps)
+ mi=major/minor (0=major, 1=minor)
+*/
+
+#define ME_END_OF_TRACK 0x2F
+
+
+#define PERCUSSION_CHANNEL 9
+
+#define KMID_EXTERNAL_MIDI 1
+#define KMID_SYNTH 2
+#define KMID_FM 3
+#define KMID_GUS 4
+#define KMID_AWE 5 //For future class aweOut
+#define KMID_ALSA 6
+
+#endif