svcore  1.9
MIDIEvent Class Reference

#include <MIDIEvent.h>

Collaboration diagram for MIDIEvent:

List of all members.

Public Member Functions

 MIDIEvent (unsigned long deltaTime, MIDIByte eventCode, MIDIByte data1=0, MIDIByte data2=0)
 MIDIEvent (unsigned long deltaTime, MIDIByte eventCode, MIDIByte metaEventCode, const std::string &metaMessage)
 MIDIEvent (unsigned long deltaTime, MIDIByte eventCode, const std::string &sysEx)
 ~MIDIEvent ()
void setTime (const unsigned long &time)
void setDuration (const unsigned long &duration)
unsigned long addTime (const unsigned long &time)
MIDIByte getMessageType () const
MIDIByte getChannelNumber () const
unsigned long getTime () const
unsigned long getDuration () const
MIDIByte getPitch () const
MIDIByte getVelocity () const
MIDIByte getData1 () const
MIDIByte getData2 () const
MIDIByte getEventCode () const
bool isMeta () const
MIDIByte getMetaEventCode () const
std::string getMetaMessage () const
void setMetaMessage (const std::string &meta)

Private Member Functions

MIDIEventoperator= (const MIDIEvent)

Private Attributes

unsigned long m_deltaTime
unsigned long m_duration
MIDIByte m_eventCode
MIDIByte m_data1
MIDIByte m_data2
MIDIByte m_metaEventCode
std::string m_metaMessage

Friends

bool operator< (const MIDIEvent &a, const MIDIEvent &b)

Detailed Description

Definition at line 117 of file MIDIEvent.h.


Constructor & Destructor Documentation

MIDIEvent::MIDIEvent ( unsigned long  deltaTime,
MIDIByte  eventCode,
MIDIByte  data1 = 0,
MIDIByte  data2 = 0 
) [inline]

Definition at line 120 of file MIDIEvent.h.

MIDIEvent::MIDIEvent ( unsigned long  deltaTime,
MIDIByte  eventCode,
MIDIByte  metaEventCode,
const std::string &  metaMessage 
) [inline]

Definition at line 132 of file MIDIEvent.h.

MIDIEvent::MIDIEvent ( unsigned long  deltaTime,
MIDIByte  eventCode,
const std::string &  sysEx 
) [inline]

Definition at line 145 of file MIDIEvent.h.

MIDIEvent::~MIDIEvent ( ) [inline]

Definition at line 157 of file MIDIEvent.h.


Member Function Documentation

void MIDIEvent::setTime ( const unsigned long &  time) [inline]

Definition at line 159 of file MIDIEvent.h.

References m_deltaTime.

void MIDIEvent::setDuration ( const unsigned long &  duration) [inline]

Definition at line 160 of file MIDIEvent.h.

References m_duration.

unsigned long MIDIEvent::addTime ( const unsigned long &  time) [inline]

Definition at line 161 of file MIDIEvent.h.

References m_deltaTime.

MIDIByte MIDIEvent::getMessageType ( ) const [inline]

Definition at line 166 of file MIDIEvent.h.

References m_eventCode, and MIDIConstants::MIDI_MESSAGE_TYPE_MASK.

Definition at line 169 of file MIDIEvent.h.

References m_eventCode, and MIDIConstants::MIDI_CHANNEL_NUM_MASK.

Referenced by MIDIFileReader::parseTrack().

unsigned long MIDIEvent::getTime ( ) const [inline]

Definition at line 172 of file MIDIEvent.h.

References m_deltaTime.

Referenced by MIDIEventCmp::operator()().

unsigned long MIDIEvent::getDuration ( ) const [inline]

Definition at line 173 of file MIDIEvent.h.

References m_duration.

MIDIByte MIDIEvent::getPitch ( ) const [inline]

Definition at line 175 of file MIDIEvent.h.

References m_data1.

MIDIByte MIDIEvent::getVelocity ( ) const [inline]

Definition at line 176 of file MIDIEvent.h.

References m_data2.

MIDIByte MIDIEvent::getData1 ( ) const [inline]

Definition at line 177 of file MIDIEvent.h.

References m_data1.

MIDIByte MIDIEvent::getData2 ( ) const [inline]

Definition at line 178 of file MIDIEvent.h.

References m_data2.

MIDIByte MIDIEvent::getEventCode ( ) const [inline]

Definition at line 179 of file MIDIEvent.h.

References m_eventCode.

bool MIDIEvent::isMeta ( ) const [inline]

Definition at line 181 of file MIDIEvent.h.

References m_eventCode, and MIDIConstants::MIDI_FILE_META_EVENT.

Definition at line 183 of file MIDIEvent.h.

References m_metaEventCode.

std::string MIDIEvent::getMetaMessage ( ) const [inline]

Definition at line 184 of file MIDIEvent.h.

References m_metaMessage.

void MIDIEvent::setMetaMessage ( const std::string &  meta) [inline]

Definition at line 185 of file MIDIEvent.h.

References m_metaMessage.

MIDIEvent& MIDIEvent::operator= ( const MIDIEvent  ) [private]

Friends And Related Function Documentation

bool operator< ( const MIDIEvent a,
const MIDIEvent b 
) [friend]

Member Data Documentation

unsigned long MIDIEvent::m_deltaTime [private]

Definition at line 192 of file MIDIEvent.h.

Referenced by addTime(), getTime(), and setTime().

unsigned long MIDIEvent::m_duration [private]

Definition at line 193 of file MIDIEvent.h.

Referenced by getDuration(), and setDuration().

Definition at line 194 of file MIDIEvent.h.

Referenced by getChannelNumber(), getEventCode(), getMessageType(), and isMeta().

Definition at line 195 of file MIDIEvent.h.

Referenced by getData1(), and getPitch().

Definition at line 196 of file MIDIEvent.h.

Referenced by getData2(), and getVelocity().

Definition at line 197 of file MIDIEvent.h.

Referenced by getMetaEventCode().

std::string MIDIEvent::m_metaMessage [private]

Definition at line 198 of file MIDIEvent.h.

Referenced by getMetaMessage(), and setMetaMessage().


The documentation for this class was generated from the following file: