~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to muse/midi.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2005-08-23 17:19:39 UTC
  • mto: (4.1.1 breezy) (1.1.9) (10.1.6 sid)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20050823171939-hd8fgzokb4dbj007
Tags: upstream-0.7.1+0.7.2pre2
ImportĀ upstreamĀ versionĀ 0.7.1+0.7.2pre2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//=========================================================
 
2
//  MusE
 
3
//  Linux Music Editor
 
4
//  $Id: midi.h,v 1.4 2004/02/22 11:08:06 wschweer Exp $
 
5
//
 
6
//  (C) Copyright 1999/2000 Werner Schweer (ws@seh.de)
 
7
//=========================================================
 
8
 
 
9
#ifndef __MIDI_H__
 
10
#define __MIDI_H__
 
11
 
 
12
#include <unistd.h>
 
13
#include <stdio.h>
 
14
#include <stdlib.h>
 
15
#include <qstring.h>
 
16
 
 
17
enum {
 
18
      ME_NOTEOFF    = 0x80,
 
19
      ME_NOTEON     = 0x90,
 
20
      ME_POLYAFTER  = 0xa0,
 
21
      ME_CONTROLLER = 0xb0,
 
22
      ME_PROGRAM    = 0xc0,
 
23
      ME_AFTERTOUCH = 0xd0,
 
24
      ME_PITCHBEND  = 0xe0,
 
25
      ME_SYSEX      = 0xf0,
 
26
      ME_META       = 0xff,
 
27
      ME_SONGPOS    = 0xf2,
 
28
      ME_CLOCK      = 0xf8,
 
29
      ME_START      = 0xfa,
 
30
      ME_CONTINUE   = 0xfb,
 
31
      ME_STOP       = 0xfc,
 
32
      };
 
33
 
 
34
#define ME_TIMESIG      0x58
 
35
 
 
36
extern unsigned const char gmOnMsg[];
 
37
extern unsigned const char gsOnMsg[];
 
38
extern unsigned const char xgOnMsg[];
 
39
 
 
40
extern unsigned const int gmOnMsgLen;
 
41
extern unsigned const int gsOnMsgLen;
 
42
extern unsigned const int xgOnMsgLen;
 
43
 
 
44
QString nameSysex(unsigned int len, const unsigned char* buf);
 
45
QString midiMetaName(int);
 
46
 
 
47
class EventList;
 
48
class MPEventList;
 
49
class MidiTrack;
 
50
extern void buildMidiEventList(EventList* mel, const MPEventList* el, MidiTrack* track, int division, bool);
 
51
// extern bool checkSysex(MidiTrack* track, unsigned int len, unsigned char* buf);
 
52
 
 
53
#endif
 
54