Class: TMIDITick

Declaration: MIDI.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TTime

Inherited By:

None.

Purpose:

A derived class of TTime that represents a dimensionless unit of time. This can be used for time stamps in a MIDI sequence that can be converted to units of time by tempo events in the metrical case and a frame rate in the SMPTE case, for example, together with a resolution. See TMIDISequence for more details.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Derive to provide additional functionality or state.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TMIDITick::TMIDITick

  1. TMIDITick ()
  2. TMIDITick (const TTime &)
  3. TMIDITick (Tick ticks)
  4. TMIDITick (const TMIDITick &)

Interface Category:

API.

Purpose:

  1. Default constructor. The initial value is undefined.
  2. Constructor.
  3. Constructor.
  4. Copy constructor.

Calling Context:

  1. Called by the stream-in operators and directly.
  2. Call this function directly.
  3. Call this function directly.
  4. Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TMIDITick::operator=

TMIDITick & operator =(const TMIDITick &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Call this function directly.

Parameters:

Return Value:

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

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TMIDITick::~TMIDITick

virtual ~ TMIDITick ()

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: TMIDITick::GetTicks

Tick GetTicks () const

Interface Category:

API.

Purpose:

Gets the ticks as a dimensionless value.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Tick ticks -The number of ticks.

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.