File: genmidi.h

package info (click to toggle)
abcmidi 20190705-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,128 kB
  • sloc: ansic: 30,529; sh: 427; makefile: 104
file content (39 lines) | stat: -rw-r--r-- 1,111 bytes parent folder | download | duplicates (2)
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
/* genmidi.h - part of abc2midi */
/* function prototypes for functions in genmidi.c used elsewhere */

#ifndef KANDR
/* functions required by store.c */
extern void reduce(int* a, int* b);
extern void set_meter(int a, int b);
extern void set_gchords(char *s);
extern void set_drums(char *s);
extern void addunits(int a, int b);
/* required by queues.c */
extern void midi_noteoff(long delta_time, int pitch, int chan);
extern void progress_sequence(int i);
#else
/* functions required by store.c */
extern void reduce();
extern void set_meter();
extern void set_gchords();
extern void addunits();
extern void set_drums();
/* required by queues.c */
extern void midi_noteoff();
extern void progress_sequence();
#endif


/* introduced 2010-02-01 (feb 01) [SS] */
struct trackstruct {enum {NOTES, WORDS, NOTEWORDS, GCHORDS, DRUMS, DRONE} tracktype;
                    int voicenum;
                    int midichannel; /* [SS] 2015-03-24 */
                   };




/* some definitions formerly in tomidi.c */
#define DIV 480
#define MAXPARTS 100
#define MAXCHORDNAMES 80