aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/midi/MidiCons.pas
blob: 1e9076f87bca9439f7eaf1642e94b6191b18bc97 (plain) (blame)
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
42
43
44
45
46
47
48
49
50
51
52
{ $Header: /MidiComp/MidiCons.pas 2     10/06/97 7:33 Davec $ }

{ Written by David Churcher <dchurcher@cix.compulink.co.uk>,
  released to the public domain. }

{ Midi Constants }
unit MidiCons;

interface

{$IFDEF FPC}
  {$MODE Delphi}
  {$H+} // use long strings
{$ENDIF}

{$IFNDEF FPC}
uses
  Messages;
{$ENDIF}

const
  MIDI_ALLNOTESOFF     = $7B;
  MIDI_NOTEON          = $90;
  MIDI_NOTEOFF         = $80;
  MIDI_KEYAFTERTOUCH   = $a0;
  MIDI_CONTROLCHANGE   = $b0;
  MIDI_PROGRAMCHANGE   = $c0;
  MIDI_CHANAFTERTOUCH  = $d0;
  MIDI_PITCHBEND       = $e0;
  MIDI_SYSTEMMESSAGE   = $f0;
  MIDI_BEGINSYSEX      = $f0;
  MIDI_MTCQUARTERFRAME = $f1;
  MIDI_SONGPOSPTR      = $f2;
  MIDI_SONGSELECT      = $f3;
  MIDI_ENDSYSEX        = $F7;
  MIDI_TIMINGCLOCK     = $F8;
  MIDI_START           = $FA;
  MIDI_CONTINUE        = $FB;
  MIDI_STOP            = $FC;
  MIDI_ACTIVESENSING   = $FE;
  MIDI_SYSTEMRESET     = $FF;

{$IFDEF FPC}
  WM_USER              = $400;        { standard WM_USER value }
{$ENDIF}

  MIM_OVERFLOW         = WM_USER;     { Input buffer overflow }
  MOM_PLAYBACK_DONE    = WM_USER + 1; { Timed playback complete }

implementation

end.