~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to kmid/player/midispec.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  midispec.h  - Some definitions to make the code more readable 
 
2
    Copyright (C) 1997,98  Antonio Larrosa Jimenez
 
3
 
 
4
    This program is free software; you can redistribute it and/or modify
 
5
    it under the terms of the GNU General Public License as published by
 
6
    the Free Software Foundation; either version 2 of the License, or
 
7
    (at your option) any later version.
 
8
 
 
9
    This program is distributed in the hope that it will be useful,
 
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
    GNU General Public License for more details.
 
13
 
 
14
    You should have received a copy of the GNU General Public License
 
15
    along with this program; if not, write to the Free Software
 
16
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
17
 
 
18
    Send comments and bug fixes to antlarr@arrakis.es
 
19
    or to Antonio Larrosa, Rio Arnoya, 10 5B, 29006 Malaga, Spain
 
20
 
 
21
***************************************************************************/ 
 
22
#ifndef _MIDISPEC_H
 
23
#define _MIDISPEC_H
 
24
 
 
25
#define META_EVENT 0xFF
 
26
 
 
27
#define ME_TRACK_SEQ_NUMBER     0x00
 
28
#define ME_TEXT                 0x01
 
29
#define ME_COPYRIGHT            0x02
 
30
#define ME_SEQ_OR_TRACK_NAME    0x03
 
31
#define ME_TRACK_INSTR_NAME     0x04
 
32
#define ME_LYRIC                0x05
 
33
#define ME_MARKER               0x06
 
34
#define ME_CUE_POINT            0x07
 
35
#define ME_CHANNEL_PREFIX       0x20
 
36
#define ME_MIDI_PORT            0x21
 
37
#define ME_SET_TEMPO            0x51
 
38
#define ME_SMPTE_OFFSET         0x54
 
39
#define ME_TIME_SIGNATURE       0x58
 
40
#define ME_KEY_SIGNATURE        0x59
 
41
/* sf=sharps/flats (-7=7 flats, 0=key of C, 7=7 sharps)
 
42
   mi=major/minor (0=major, 1=minor)
 
43
*/                            
 
44
 
 
45
#define ME_END_OF_TRACK 0x2F
 
46
 
 
47
 
 
48
#define PERCUSSION_CHANNEL 9
 
49
 
 
50
#define KMID_EXTERNAL_MIDI 1
 
51
#define KMID_SYNTH         2
 
52
#define KMID_FM            3
 
53
#define KMID_GUS           4
 
54
#define KMID_AWE           5  //For future class aweOut
 
55
 
 
56
#endif