libkmid Library API Documentation

MidiFileInfo Struct Reference

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

#include <midfile.h>

List of all members.

Public Attributes

int format
int ntracks
int ticksPerCuarterNote
ulong ticksTotal
double millisecsTotal
ulong ticksPlayed
int patchesUsed [256]


Detailed Description

Contains all the information about a MIDI file. All the information about a MIDI file.

Version:
0.9.5 17/01/2000
Author:
Antonio Larrosa Jimenez <larrosa@kde.org>

Definition at line 38 of file midfile.h.


Member Data Documentation

int MidiFileInfo::format
 

Format of MIDI file.

Definition at line 43 of file midfile.h.

int MidiFileInfo::ntracks
 

Number of tracks.

Definition at line 48 of file midfile.h.

Referenced by MidiPlayer::play(), MidiPlayer::removeSong(), and MidiPlayer::setPos().

int MidiFileInfo::ticksPerCuarterNote
 

Ticks per cuarter note.

Definition at line 53 of file midfile.h.

Referenced by MidiPlayer::play().

ulong MidiFileInfo::ticksTotal
 

Total number of MIDI ticks.

Definition at line 58 of file midfile.h.

Referenced by MidiPlayer::play().

double MidiFileInfo::millisecsTotal
 

Total number of milliseconds.

Definition at line 63 of file midfile.h.

int MidiFileInfo::patchesUsed[256]
 

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.

Definition at line 76 of file midfile.h.

Referenced by MidiPlayer::play().


The documentation for this struct was generated from the following file:
KDE Logo
This file is part of the documentation for libkmid Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 20 09:49:48 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003