/* * Sample code illustrating simple MIDI event library */ #include "midiIO.h" /**********************************************************************/ int main(int argc, char** argv) { MDevent event; char buf[200]; printf("\nStarting up...\n"); initMidi(argv[1], argv[2]); /* echo events from the software synthesizer: * start up %Synthpanel while this program is running. */ while(1) { if (getMidiEvent(&event) > 0) { mdPrintEvent(buf, &event, 1); /* from the SGI midi lib */ printf("%s", buf); } } /* end while */ return 0; }