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
33extern struct pmidi_outs {
34 int format; /* midi 1 or 2 */
35 int tracks;
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 */
69 int frames;
72
73extern int pmidi_wrapper_status;
74extern int pmidi_open_midi_file( const char *fileName );
75extern int pmidi_parse_midi_file( void );
76
77#ifdef __cplusplus
78 }
79#endif
80
81#endif /* WRAPPER_H_ */
82
Definition: wrapper.h:33
int hours
Definition: wrapper.h:66
int seconds
Definition: wrapper.h:68
int note
Definition: wrapper.h:56
int format
Definition: wrapper.h:34
int clocks
Definition: wrapper.h:50
int time
Definition: wrapper.h:40
int minutes
Definition: wrapper.h:67
int program
Definition: wrapper.h:53
int control
Definition: wrapper.h:61
int subframes
Definition: wrapper.h:70
int frames
Definition: wrapper.h:69
int time_base
Definition: wrapper.h:36
int key
Definition: wrapper.h:45
char * name
Definition: wrapper.h:42
int length
Definition: wrapper.h:58
int micro_tempo
Definition: wrapper.h:38
int bottom
Definition: wrapper.h:49
int top
Definition: wrapper.h:48
int minor
Definition: wrapper.h:46
int n32pq
Definition: wrapper.h:51
int pitch
Definition: wrapper.h:64
int vel
Definition: wrapper.h:57
int tracks
Definition: wrapper.h:35
int value
Definition: wrapper.h:62
char * text
Definition: wrapper.h:43
int offvel
Definition: wrapper.h:59
int chan
Definition: wrapper.h:54
int type
Definition: wrapper.h:41
int pmidi_wrapper_status
int pmidi_parse_midi_file(void)
struct pmidi_outs pmidi_out
int pmidi_open_midi_file(const char *fileName)