Subversion Repositories svn.mios

Rev

Rev 1 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
44 tk 1
// $Id: midi.h 44 2008-01-30 21:39:30Z tk $
2
/*
3
 * MIDI program module definitions
4
 *
5
 * ==========================================================================
6
 *
7
 * Copyright (C) 2005  Thorsten Klose (tk@midibox.org)
8
 *
9
 * ==========================================================================
10
 *
11
 * This file is part of a MIOS application
12
 *
13
 * This application is free software; you can redistribute it and/or modify
14
 * it under the terms of the GNU General Public License as published by
15
 * the Free Software Foundation; either version 2 of the License, or
16
 * (at your option) any later version.
17
 *
18
 * This application is distributed in the hope that it will be useful,
19
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 * GNU General Public License for more details.
22
 *
23
 * You should have received a copy of the GNU General Public License
24
 * along with This application; if not, write to the Free Software
25
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
 *
27
 * ==========================================================================
28
 */
29
 
30
#ifndef _MIDI_H
31
#define _MIDI_H
32
 
33
/////////////////////////////////////////////////////////////////////////////
34
// Global definitions
35
/////////////////////////////////////////////////////////////////////////////
36
 
37
 
38
/////////////////////////////////////////////////////////////////////////////
39
// Global Types
40
/////////////////////////////////////////////////////////////////////////////
41
 
42
// status of analog toolbox application
43
typedef union {
44
  struct {
45
    unsigned ALL:8;
46
  };
47
  struct {
48
    unsigned NOTE:7;
49
    unsigned GATE:1;
50
  };
51
} midi_note_t;
52
 
53
 
54
 
55
/////////////////////////////////////////////////////////////////////////////
56
// Prototypes
57
/////////////////////////////////////////////////////////////////////////////
58
 
59
void MIDI_Init(void);
60
void MIDI_Evnt(unsigned char evnt0, unsigned char evnt1, unsigned char evnt2);
61
 
62
/////////////////////////////////////////////////////////////////////////////
63
// Export global variables
64
/////////////////////////////////////////////////////////////////////////////
65
 
66
extern midi_note_t midi_note[16];
67
 
68
extern unsigned char midi_cc_chn0[128];
69
 
70
extern unsigned int midi_pitch_bender[16];
71
 
72
#endif /* _MIDI_H */