struct SpecialEvent

This struct stores text, lyrics and change tempo events among others. More...

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

Public Members


Detailed Description

This struct stores text, lyrics and change tempo events among others.

It includes the main information for an event. That is, the absolute millisecond at which this event is played (from the beginning of the song), the delta milliseconds from the previous SpecialEvent, an ID, etc.

This struct is used as nodes for a linked list, which you can get using MidiPlayer::specialEvents().

int id

An integer ID, that is assigned in order to each SpecialEvent.

ulong diffmilliseconds

Delta milliseconds from the previous SpecialEvent.

ulong absmilliseconds

The absolute millisecond (from the beginning of the song) at which this SpecialEvent object is played.

int ticks

MIDI ticks (from the beginning of the song) at which this event is played.

int type

Type of event. This currently includes:

The "Change number of beats per measure" and "beat" events are not really in the midi file, but they are added to the linked list in case you have an use for it.

char [1024] text

Text field . It has a meaning only for Text and Lyrics events.

ulong tempo

Tempo field . It has a meaning only for Change Tempo events.

int num

Numerator . It has a meaning only for Change number of beats per measure and beat events.

int den

Denominator . It has a meaning only for Change number of beats per measure and beat events.


Generated by: dfaure@faure on Sun Mar 26 14:25:24 2000, using kdoc 2.0a35.