Canorus  0.0
wrapper.h
Go to the documentation of this file.
1 
8 #ifndef WRAPPER_H_
9 #define WRAPPER_H_
10 
11 
12 #ifdef __cplusplus
13  extern "C" {
14 #endif
15 
16 #define PMIDI_STATUS_END 0
17 #define PMIDI_STATUS_VERSION 1
18 #define PMIDI_STATUS_TEXT 2
19 #define PMIDI_STATUS_KEYSIG 3
20 #define PMIDI_STATUS_TIMESIG 4
21 #define PMIDI_STATUS_TEMPO 5
22 #define PMIDI_STATUS_NOTE 6
23 #define PMIDI_STATUS_DUMMY 7
24 #define PMIDI_STATUS_ROOT 8
25 #define PMIDI_STATUS_CONTROL 9
26 #define PMIDI_STATUS_PROGRAM 10
27 #define PMIDI_STATUS_PITCH 11
28 #define PMIDI_STATUS_PRESSURE 12
29 #define PMIDI_STATUS_KEYTOUCH 13
30 #define PMIDI_STATUS_SYSEX 14
31 #define PMIDI_STATUS_SMPTEOFFS 15
32 
33 extern struct pmidi_outs {
34  int format; /* midi 1 or 2 */
35  int tracks;
36  int time_base;
37 
38  int micro_tempo; /* micro secondes per quarter */
39 
40  int time; /* occurence of element */
41  int type; /* Type of text (lyric, copyright etc) */
42  char *name; /* Type as text */
43  char *text; /* actual text */
44 
45  int key; /* Key signature */
46  int minor; /* Is this a minor key or not */
47 
48  int top; /* 'top' of timesignature */
49  int bottom; /* 'bottom' of timesignature */
50  int clocks; /* Can't remember what this is */
51  int n32pq; /* Thirtysecond notes per quarter */
52 
53  int program; /* Program number */
54  int chan; /* Channel number */
55 
56  int note;
57  int vel;
58  int length;
59  int offvel; /* Note Off velocity */
60 
61  int control; /* Controller number */
62  int value; /* Controller value */
63 
64  int pitch; /* Pitch bending */
65 
66  int hours; /* SMPTE-Offset */
67  int minutes;
68  int seconds;
69  int frames;
70  int subframes;
72 
73 extern int pmidi_wrapper_status;
74 extern int pmidi_open_midi_file( const char *fileName );
75 extern int pmidi_parse_midi_file( void );
76 
77 #ifdef __cplusplus
78  }
79 #endif
80 
81 #endif /* WRAPPER_H_ */
82 
pmidi_wrapper_status
int pmidi_wrapper_status
pmidi_outs::offvel
int offvel
Definition: wrapper.h:59
pmidi_outs::time
int time
Definition: wrapper.h:40
pmidi_outs::time_base
int time_base
Definition: wrapper.h:36
pmidi_outs::control
int control
Definition: wrapper.h:61
pmidi_outs::program
int program
Definition: wrapper.h:53
pmidi_out
struct pmidi_outs pmidi_out
pmidi_outs::minor
int minor
Definition: wrapper.h:46
pmidi_outs::pitch
int pitch
Definition: wrapper.h:64
pmidi_outs::format
int format
Definition: wrapper.h:34
pmidi_outs::tracks
int tracks
Definition: wrapper.h:35
pmidi_outs::vel
int vel
Definition: wrapper.h:57
pmidi_outs::subframes
int subframes
Definition: wrapper.h:70
pmidi_outs::top
int top
Definition: wrapper.h:48
pmidi_outs::micro_tempo
int micro_tempo
Definition: wrapper.h:38
pmidi_outs::name
char * name
Definition: wrapper.h:42
pmidi_outs::frames
int frames
Definition: wrapper.h:69
pmidi_outs::chan
int chan
Definition: wrapper.h:54
pmidi_outs::note
int note
Definition: wrapper.h:56
pmidi_parse_midi_file
int pmidi_parse_midi_file(void)
pmidi_outs
Definition: wrapper.h:33
pmidi_outs::seconds
int seconds
Definition: wrapper.h:68
pmidi_outs::text
char * text
Definition: wrapper.h:43
pmidi_outs::value
int value
Definition: wrapper.h:62
pmidi_outs::hours
int hours
Definition: wrapper.h:66
pmidi_outs::key
int key
Definition: wrapper.h:45
pmidi_outs::n32pq
int n32pq
Definition: wrapper.h:51
pmidi_outs::minutes
int minutes
Definition: wrapper.h:67
pmidi_open_midi_file
int pmidi_open_midi_file(const char *fileName)
pmidi_outs::type
int type
Definition: wrapper.h:41
pmidi_outs::length
int length
Definition: wrapper.h:58
pmidi_outs::clocks
int clocks
Definition: wrapper.h:50
pmidi_outs::bottom
int bottom
Definition: wrapper.h:49