Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

TSE3::Clock Struct Reference

Time of a MidiEvent. More...

#include <Midi.h>

List of all members.

Public Member Functions

 Clock (int pulses=0)
 Clock (const Clock &m)
int beat () const
int pulse () const
 operator int () const
const Clock operator+ (const Clock &c)
const Clock operator+ (int i)
Clock operator+= (const Clock &c)
const Clock operator- (const Clock &c)
const Clock operator- (int i)
Clock operator-= (const Clock &c)
const Clock operator * (const Clock &c)
const Clock operator * (int i)
Clock operator *= (const Clock &c)
Clock operator *= (int i)
const Clock operator/ (const Clock &c)
const Clock operator/ (int i)
Clock operator/= (const Clock &c)
Clock operator/= (int i)
const Clock operator% (const Clock &c)
const Clock operator% (int i)
Clock operator%= (const Clock &c)
Clock operator%= (int i)

Static Public Member Functions

Clock convert (Clock time, int otherPPQN)

Public Attributes

int pulses

Static Public Attributes

const int PPQN = 96


Detailed Description

Time of a MidiEvent.

The Clock class describes a time at which an MidiCommand or other Event may be transmitted/recieved. It is used primarily by the MidiEvent class.

The time is a signed integer value of pulses, where a pulse is a division of a quarter note (crotchet) as defined by the Clock::PPQN variable.

This is a value type.

Author:
Pete Goodliffe
Version:
3.00
See also:
MidiEvent

PPQN


Constructor & Destructor Documentation

TSE3::Clock::Clock int  pulses = 0  )  [inline]
 

Construct a Clock with the given number of Pulses.

Parameters:
pulses Number of pulses.

TSE3::Clock::Clock const Clock m  )  [inline]
 


Member Function Documentation

int TSE3::Clock::beat  )  const [inline]
 

Convenience method to obtain the number of whole quarter notes.

Returns:
Number of whole quarter notes.
See also:
pulse

int TSE3::Clock::pulse  )  const [inline]
 

Convenince method to obtain the number of pulses not part of a whole quarter note.

Returns:
Number of remaining pulses.
See also:
beat

Clock TSE3::Clock::convert Clock  time,
int  otherPPQN
[inline, static]
 

Convert a time from one PPQN resolution to this one.

Parameters:
time Clock in other PPQN resolution
otherPPQN The other PPQN resolution
Returns:
The Clock value in this PPQN resolution

TSE3::Clock::operator int  )  const [inline]
 

const Clock TSE3::Clock::operator+ const Clock c  )  [inline]
 

const Clock TSE3::Clock::operator+ int  i  )  [inline]
 

Clock TSE3::Clock::operator+= const Clock c  )  [inline]
 

const Clock TSE3::Clock::operator- const Clock c  )  [inline]
 

const Clock TSE3::Clock::operator- int  i  )  [inline]
 

Clock TSE3::Clock::operator-= const Clock c  )  [inline]
 

const Clock TSE3::Clock::operator * const Clock c  )  [inline]
 

const Clock TSE3::Clock::operator * int  i  )  [inline]
 

Clock TSE3::Clock::operator *= const Clock c  )  [inline]
 

Clock TSE3::Clock::operator *= int  i  )  [inline]
 

const Clock TSE3::Clock::operator/ const Clock c  )  [inline]
 

const Clock TSE3::Clock::operator/ int  i  )  [inline]
 

Clock TSE3::Clock::operator/= const Clock c  )  [inline]
 

Clock TSE3::Clock::operator/= int  i  )  [inline]
 

const Clock TSE3::Clock::operator% const Clock c  )  [inline]
 

const Clock TSE3::Clock::operator% int  i  )  [inline]
 

Clock TSE3::Clock::operator%= const Clock c  )  [inline]
 

Clock TSE3::Clock::operator%= int  i  )  [inline]
 


Member Data Documentation

const int TSE3::Clock::PPQN = 96 [static]
 

PPQN is the number of Pulses Per Quarter Note.

int TSE3::Clock::pulses
 

The number of pulses of this Clock.


The documentation for this struct was generated from the following file:
Generated on Wed May 25 14:46:23 2005 for TSE3 by doxygen 1.3.2