midifile

view test.c @ 0:3658e56b3a8a

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 26 Jan 2012 00:31:39 +0200
parents
children
line source
1 #include <stdio.h>
2 #include "midi.h"
4 int main(int argc, char **argv)
5 {
6 struct midi *midi;
8 if(!argv[1]) {
9 fprintf(stderr, "pass the path to a midi file\n");
10 return 1;
11 }
13 if(!(midi = load_midi(argv[1]))) {
14 return 1;
15 }
17 free_midi(midi);
18 return 0;
19 }