MIDI::Event Class Reference

An event inside a track. More...

#include <Event.h>

Inherited by MIDI::ChannelEvent, and MIDI::MetaEvent.

List of all members.

Public Member Functions

dword deltaTime ()
virtual EventType type ()=0
virtual DataBuffer data ()
virtual void debug ()
 Prints out information about this event. Is for debug purposes.

Protected Member Functions

 Event ()
 Empty constructor.
 Event (const Event &o)
 Copy constructor.
 Event (dword deltaTime)
 Contructor.

Detailed Description

An event inside a track.

A MIDI track is made out of events. This class is an abstract event.

There are three types of events

Each event contains a "delta time" field. This is the number of ticks to wait after the previous event before this event is executed. A delta time of 0 means that this event is to be executed as the same time as the previous event. See MIDIHeader for how long each tick is.

See also:
MIDI::MetaEvent
MIDI::ChannelEvent

Definition at line 52 of file Event.h.


Constructor & Destructor Documentation

MIDI::Event::Event (  )  [protected]

Empty constructor.

Definition at line 30 of file Event.cpp.

MIDI::Event::Event ( const Event o  )  [protected]

Copy constructor.

Definition at line 34 of file Event.cpp.

MIDI::Event::Event ( dword  deltaTime  )  [protected]

Contructor.

Definition at line 38 of file Event.cpp.


Member Function Documentation

DataBuffer MIDI::Event::data (  )  [virtual]
Returns:
This event represented as data in a MIDI file

Reimplemented in MIDI::MetaEvent, MIDI::MetaGenericEvent, MIDI::MetaNumberEvent, and MIDI::MetaTextEvent.

Definition at line 47 of file Event.cpp.

void MIDI::Event::debug (  )  [virtual]

Prints out information about this event. Is for debug purposes.

Reimplemented in MIDI::ChannelControllerEvent, MIDI::ChannelEvent, MIDI::MetaEvent, MIDI::MetaGenericEvent, MIDI::MetaNumberEvent, and MIDI::MetaTextEvent.

Definition at line 54 of file Event.cpp.

dword MIDI::Event::deltaTime (  ) 
Returns:
Number of ticks to wait after previous event to execute this one.

Definition at line 42 of file Event.cpp.

virtual EventType MIDI::Event::type (  )  [pure virtual]
Returns:
The type (meta,channel,system) that this event is

Implemented in MIDI::ChannelEvent, and MIDI::MetaEvent.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Defines

Generated on Tue Jan 5 16:09:42 2010 for libmidi by  doxygen 1.6.1