mdPrintEvent(3dm) mdPrintEvent(3dm)
mdPrintEvent - Generate a descriptive string for MIDI events
#include <dmedia/midi.h>
int mdPrintEvent(char *buf, MDevent *evbuf, int count)
mdPrintEvent can be used to format events in a buffer for printing. buf
is a user allocated character into which the formatted string will be
written. evbuf points to the array MDevents whose descriptions are to be
generated, and count indicates how many of the events should be
described.
In order to avoid overflowing buf, the programmer should insure that the
buffer can accomodate 80 bytes of description per message.
The message format is:
timestamp : channel : status type (string) : byte 1 : byte 2
If the message is a note on or note off, the note name (eg A3) is printed
in the field occupied by byte 1. Otherwise, the numeric value is
printed.
mdPrintEvent return -1 on error, 0 on success.
mdIntro(3dm)
PPPPaaaaggggeeee 1111 [ Back ]
|