version 1.3, 2002/03/14 06:51:42 |
version 1.4, 2003/06/10 22:20:48 |
|
|
#define GET32(p) (((p)[0] << 24) | ((p)[1] << 16) | ((p)[2] << 8) | (p)[3]) |
#define GET32(p) (((p)[0] << 24) | ((p)[1] << 16) | ((p)[2] << 8) | (p)[3]) |
|
|
void |
void |
usage() |
usage(void) |
{ |
{ |
printf("Usage: %s [-d unit] [-f file] [-l] [-m] [-q] [-t tempo] [-v] [-x] [file ...]\n", |
printf("Usage: %s [-d unit] [-f file] [-l] [-m] [-q] [-t tempo] [-v] [-x] [file ...]\n", |
__progname); |
__progname); |
|
|
int fd; |
int fd; |
|
|
void |
void |
send_event(ev) |
send_event(seq_event_rec *ev) |
seq_event_rec *ev; |
|
{ |
{ |
/* |
/* |
printf("%02x %02x %02x %02x %02x %02x %02x %02x\n", |
printf("%02x %02x %02x %02x %02x %02x %02x %02x\n", |
|
|
} |
} |
|
|
u_long |
u_long |
getvar(tp) |
getvar(struct track *tp) |
struct track *tp; |
|
{ |
{ |
u_long r, c; |
u_long r, c; |
|
|
|
|
} |
} |
|
|
void |
void |
dometa(meta, p, len) |
dometa(u_int meta, u_char *p, u_int len) |
u_int meta; |
|
u_char *p; |
|
u_int len; |
|
{ |
{ |
switch (meta) { |
switch (meta) { |
case META_TEXT: |
case META_TEXT: |
|
|
} |
} |
|
|
void |
void |
midireset() |
midireset(void) |
{ |
{ |
/* General MIDI reset sequence */ |
/* General MIDI reset sequence */ |
static u_char gm_reset[] = { 0x7e, 0x7f, 0x09, 0x01, 0xf7 }; |
static u_char gm_reset[] = { 0x7e, 0x7f, 0x09, 0x01, 0xf7 }; |
|
|
|
|
#define SYSEX_CHUNK 6 |
#define SYSEX_CHUNK 6 |
void |
void |
send_sysex(p, l) |
send_sysex(u_char *p, u_int l) |
u_char *p; |
|
u_int l; |
|
{ |
{ |
seq_event_rec event; |
seq_event_rec event; |
u_int n; |
u_int n; |
|
|
} |
} |
|
|
void |
void |
playfile(f, name) |
playfile(FILE *f, char *name) |
FILE *f; |
|
char *name; |
|
{ |
{ |
u_char *buf; |
u_char *buf; |
u_int tot, n, size, nread; |
u_int tot, n, size, nread; |
|
|
} |
} |
|
|
void |
void |
playdata(buf, tot, name) |
playdata(u_char *buf, u_int tot, char *name) |
u_char *buf; |
|
u_int tot; |
|
char *name; |
|
{ |
{ |
int format, ntrks, divfmt, ticks, t, besttrk = 0; |
int format, ntrks, divfmt, ticks, t, besttrk = 0; |
u_int len, mlen, status, chan; |
u_int len, mlen, status, chan; |
|
|
} |
} |
|
|
int |
int |
main(argc, argv) |
main(int argc, char **argv) |
int argc; |
|
char **argv; |
|
{ |
{ |
int ch; |
int ch; |
int listdevs = 0; |
int listdevs = 0; |