Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes

media::MidiEvent Class Reference

#include <midi.h>

Inheritance diagram for media::MidiEvent:
Inheritance graph
[legend]

List of all members.

Public Types

enum  eStatus {
  eNoteOff = 0x8,
  eNoteOn = 0x9,
  eNoteAfter = 0xa,
  eControl = 0xb,
  eProgram = 0xc,
  eChannelAfter = 0xd,
  ePitch = 0xe,
  eSystem = 0xf,
  eInvalid = 0x0
}

Public Member Functions

 MidiEvent (void) throw ()
 MidiEvent (IN const MidiEvent &event) throw ()
eStatus GetStatus (void) const throw ()
byte_t GetChannel (void) const throw ()
byte_t GetByte0 (void) const throw ()
byte_t GetByte1 (void) const throw ()
byte_t GetNote (void) const throw ()
byte_t GetVelocity (void) const throw ()
byte_t GetControlNumber (void) const throw ()
byte_t GetControlValue (void) const throw ()
byte_t GetPatch (void) const throw ()
byte_t GetPressure (void) const throw ()
word_t GetPitch (void) const throw ()
const MidiEventoperator= (IN const MidiEvent &event) throw ()
void SetStatus (IN eStatus status) throw ()
void SetChannel (IN int channel) throw ()
void SetByte0 (IN byte_t b0) throw ()
void SetByte1 (IN byte_t b1) throw ()
void SetWord (IN word_t w) throw ()

Static Public Member Functions

static bool IsValidStatus (IN eStatus status) throw ()
static int GetDataByteCount (IN eStatus status) throw ()

Protected Attributes

byte_t m_status
byte_t m_unused
union {
   byte_t   m_data [2]
   word_t   m_word
}; 

Detailed Description

Definition at line 33 of file midi.h.


Member Enumeration Documentation

Enumerator:
eNoteOff 
eNoteOn 
eNoteAfter 
eControl 
eProgram 
eChannelAfter 
ePitch 
eSystem 
eInvalid 

Definition at line 36 of file midi.h.


Constructor & Destructor Documentation

media::MidiEvent::MidiEvent ( void   )  throw () [inline]

Definition at line 49 of file midi.h.

media::MidiEvent::MidiEvent ( IN const MidiEvent event  )  throw () [inline]

Definition at line 50 of file midi.h.


Member Function Documentation

MidiEvent::eStatus media::MidiEvent::GetStatus ( void   )  const throw () [inline]

Definition at line 135 of file midi.h.

byte_t media::MidiEvent::GetChannel ( void   )  const throw () [inline]

Definition at line 143 of file midi.h.

byte_t media::MidiEvent::GetByte0 ( void   )  const throw () [inline]

Definition at line 169 of file midi.h.

byte_t media::MidiEvent::GetByte1 ( void   )  const throw () [inline]

Definition at line 177 of file midi.h.

byte_t media::MidiEvent::GetNote ( void   )  const throw () [inline]

Definition at line 185 of file midi.h.

byte_t media::MidiEvent::GetVelocity ( void   )  const throw () [inline]

Definition at line 193 of file midi.h.

byte_t media::MidiEvent::GetControlNumber ( void   )  const throw () [inline]

Definition at line 201 of file midi.h.

byte_t media::MidiEvent::GetControlValue ( void   )  const throw () [inline]

Definition at line 209 of file midi.h.

byte_t media::MidiEvent::GetPatch ( void   )  const throw () [inline]

Definition at line 217 of file midi.h.

byte_t media::MidiEvent::GetPressure ( void   )  const throw () [inline]

Definition at line 225 of file midi.h.

word_t media::MidiEvent::GetPitch ( void   )  const throw () [inline]

Definition at line 233 of file midi.h.

const MidiEvent& media::MidiEvent::operator= ( IN const MidiEvent event  )  throw () [inline]

Definition at line 67 of file midi.h.

bool media::MidiEvent::IsValidStatus ( IN eStatus  status  )  throw () [static]

Definition at line 76 of file midi.cpp.

int media::MidiEvent::GetDataByteCount ( IN eStatus  status  )  throw () [static]

Definition at line 100 of file midi.cpp.

void media::MidiEvent::SetStatus ( IN eStatus  status  )  throw () [inline]

Definition at line 151 of file midi.h.

void media::MidiEvent::SetChannel ( IN int  channel  )  throw () [inline]

Definition at line 160 of file midi.h.

void media::MidiEvent::SetByte0 ( IN byte_t  b0  )  throw () [inline]

Definition at line 78 of file midi.h.

void media::MidiEvent::SetByte1 ( IN byte_t  b1  )  throw () [inline]

Definition at line 79 of file midi.h.

void media::MidiEvent::SetWord ( IN word_t  w  )  throw () [inline]

Definition at line 80 of file midi.h.


Member Data Documentation

byte_t media::MidiEvent::m_status [protected]

Definition at line 84 of file midi.h.

byte_t media::MidiEvent::m_unused [protected]

Definition at line 85 of file midi.h.

Definition at line 88 of file midi.h.

Definition at line 89 of file midi.h.

union { ... } [protected]

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