Class: TMIDIChannelPacket

Declaration: MIDI.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TMIDIPacket

Inherited By:

TMIDINoteOffPacket TMIDINoteOnPacket

Purpose:

An abstract base class for convenient access to MIDI channel messages.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Derive to provide concrete instances of MIDI channel messages.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TMIDIChannelPacket::TMIDIChannelPacket

  1. TMIDIChannelPacket (const TMIDIPacket &)
  2. TMIDIChannelPacket (const TMIDIChannelPacket &)
  3. TMIDIChannelPacket (const TTime & timeStamp, Channel, DataIndex length)

Interface Category:

API.

Purpose:

  1. Constructor.
  2. Copy constructor.
  3. Constructor.

Calling Context:

  1. Called by a derived class to convert a TMIDIPacket object.
  2. Called by a derived class to copy an object.
  3. Called by a derived class to construct a channel packet.

Parameters:

Return Value:

None.

Exceptions:

Throws TMIDIException::kInvalidStatus if not a Channel message.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TMIDIChannelPacket::~TMIDIChannelPacket

virtual ~ TMIDIChannelPacket ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TMIDIChannelPacket::operator=

  1. TMIDIChannelPacket & operator =(const TMIDIChannelPacket &)
  2. TMIDIChannelPacket & operator =(const TMIDIPacket &)

Interface Category:

API.

Purpose:

  1. Assignment operator.
  2. Assignment operator.

Calling Context:

  1. Call this function directly.
  2. Call this function directly.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

  1. Throws no exceptions, passes all exceptions through.
  2. Throws TMIDIException::kInvalidStatus if not a channel message.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TMIDIChannelPacket::GetChannel

Channel GetChannel () const

Interface Category:

API.

Purpose:

Gets the channel.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The channel.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TMIDIChannelPacket::SetChannel

void SetChannel (Channel)

Interface Category:

API.

Purpose:

Sets the channel.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.