#include "midi.h"Functions | |
| int | bytes_to_decimal (unsigned char *bytes, int n) |
| int | variable_time (unsigned char *bytes, int *k) |
| void | system_exclusive (unsigned char *bytes, int *k) |
| void | meta (unsigned char *bytes, int *k, int delta_time) |
| void | midi (unsigned char *bytes, int *k, int type, int track, int delta_time) |
| int | load_midi (FILE *input) |
| int bytes_to_decimal | ( | unsigned char * | bytes, | |
| int | n | |||
| ) |
This function receives n bytes and convert them to an integer.
| int variable_time | ( | unsigned char * | bytes, | |
| int * | k | |||
| ) |
This function receives k bytes and convert them to an integer, according to the sintax of the Variable Length Values presented in the MIDI Specification.
| void system_exclusive | ( | unsigned char * | bytes, | |
| int * | k | |||
| ) |
This function interprets the bytes of 'system exclusive' events.
| void meta | ( | unsigned char * | bytes, | |
| int * | k, | |||
| int | delta_time | |||
| ) |
This function interprets the bytes of 'meta' events.
| void midi | ( | unsigned char * | bytes, | |
| int * | k, | |||
| int | type, | |||
| int | track, | |||
| int | delta_time | |||
| ) |
This function interprets the bytes of 'midi' events.
| int load_midi | ( | FILE * | input | ) |
This function receives a MIDI file, reads its bytes, interprets them and fills the table of MIDI events. It also assigns values to some important global variables (like 'n_tracks' and 'ticks_per_beat'). It returns 0 in case of success and returns 1 otherwise.
1.6.2-20100124