#include <MIDIEvent.h>

Collaboration diagram for MIDIEvent:
Collaboration graph

Public Member Functions

 MIDIEvent (unsigned long deltaTime, int eventCode, int data1=0, int 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 (const MIDIEvent &)=default
 
MIDIEventoperator= (const MIDIEvent &)=default
 
 ~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 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 119 of file MIDIEvent.h.

Constructor & Destructor Documentation

MIDIEvent::MIDIEvent ( unsigned long  deltaTime,
int  eventCode,
int  data1 = 0,
int  data2 = 0 
)
inline

Definition at line 122 of file MIDIEvent.h.

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

Definition at line 140 of file MIDIEvent.h.

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

Definition at line 153 of file MIDIEvent.h.

MIDIEvent::MIDIEvent ( const MIDIEvent )
default
MIDIEvent::~MIDIEvent ( )
inline

Definition at line 168 of file MIDIEvent.h.

Member Function Documentation

MIDIEvent& MIDIEvent::operator= ( const MIDIEvent )
default
void MIDIEvent::setTime ( const unsigned long &  time)
inline

Definition at line 170 of file MIDIEvent.h.

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

Definition at line 171 of file MIDIEvent.h.

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

Definition at line 172 of file MIDIEvent.h.

MIDIByte MIDIEvent::getMessageType ( ) const
inline

Definition at line 177 of file MIDIEvent.h.

References MIDIConstants::MIDI_MESSAGE_TYPE_MASK.

MIDIByte MIDIEvent::getChannelNumber ( ) const
inline

Definition at line 180 of file MIDIEvent.h.

References MIDIConstants::MIDI_CHANNEL_NUM_MASK.

Referenced by MIDIFileReader::parseTrack().

unsigned long MIDIEvent::getTime ( ) const
inline

Definition at line 183 of file MIDIEvent.h.

Referenced by MIDIEventCmp::operator()().

unsigned long MIDIEvent::getDuration ( ) const
inline

Definition at line 184 of file MIDIEvent.h.

MIDIByte MIDIEvent::getPitch ( ) const
inline

Definition at line 186 of file MIDIEvent.h.

MIDIByte MIDIEvent::getVelocity ( ) const
inline

Definition at line 187 of file MIDIEvent.h.

MIDIByte MIDIEvent::getData1 ( ) const
inline

Definition at line 188 of file MIDIEvent.h.

MIDIByte MIDIEvent::getData2 ( ) const
inline

Definition at line 189 of file MIDIEvent.h.

MIDIByte MIDIEvent::getEventCode ( ) const
inline

Definition at line 190 of file MIDIEvent.h.

bool MIDIEvent::isMeta ( ) const
inline

Definition at line 192 of file MIDIEvent.h.

References MIDIConstants::MIDI_FILE_META_EVENT.

MIDIByte MIDIEvent::getMetaEventCode ( ) const
inline

Definition at line 194 of file MIDIEvent.h.

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

Definition at line 195 of file MIDIEvent.h.

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

Definition at line 196 of file MIDIEvent.h.

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 201 of file MIDIEvent.h.

unsigned long MIDIEvent::m_duration
private

Definition at line 202 of file MIDIEvent.h.

MIDIByte MIDIEvent::m_eventCode
private

Definition at line 203 of file MIDIEvent.h.

MIDIByte MIDIEvent::m_data1
private

Definition at line 204 of file MIDIEvent.h.

MIDIByte MIDIEvent::m_data2
private

Definition at line 205 of file MIDIEvent.h.

MIDIByte MIDIEvent::m_metaEventCode
private

Definition at line 206 of file MIDIEvent.h.

std::string MIDIEvent::m_metaMessage
private

Definition at line 207 of file MIDIEvent.h.


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