struct MidiFileInfo

All the information about a MIDI file. More...

Definition#include <midfile.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


Detailed Description

Contains all the information about a MIDI file.

int format

Format of MIDI file.

int ntracks

Number of tracks.

int ticksPerCuarterNote

Ticks per cuarter note.

ulong ticksTotal

Total number of MIDI ticks

double millisecsTotal

Total number of milliseconds

int [256] patchesUsed

Patches used in the MIDI file.

In each position of the array it stores the number of times the corresponding patch is used. So, if a MIDI file plays 782 notes with a piano, patchesUsed[0] will store 782. In the same way, if it doesn't use the Music Box patch, patchesUsed[10] will be 0.