struct Clock
|
Time of a MidiEvent. More... |
|
|
Public Methods
Public Static Methods
- static Clock convert (Clock time, int otherPPQN)
Public Members
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.
See also: MidiEvent, PPQN
static const int PPQN
| PPQN |
Clock (int pulses = 0)
| Clock |
Construct a Clock with the given number of Pulses.
Parameters:
Clock (const Clock &m)
| Clock |
[const]
Convenience method to obtain the number of whole quarter notes.
Returns: Number of whole quarter notes.
See also: pulse
[const]
Convenince method to obtain the number of pulses not
part of a whole quarter note.
Returns: Number of remaining pulses.
See also: beat
Clock convert (Clock time, int otherPPQN)
| convert |
[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
[const]
const Clock operator+ (const Clock &c)
| operator+ |
const Clock operator+ (int i)
| operator+ |
Clock operator+= (const Clock &c)
| operator+= |
const Clock operator- (const Clock &c)
| operator- |
const Clock operator- (int i)
| operator- |
Clock operator-= (const Clock &c)
| operator-= |
const Clock operator* (const Clock &c)
| operator* |
const Clock operator* (int i)
| operator* |
Clock operator*= (const Clock &c)
| operator*= |
Clock operator*= (int i)
| operator*= |
const Clock operator/ (const Clock &c)
| operator/ |
const Clock operator/ (int i)
| operator/ |
Clock operator/= (const Clock &c)
| operator/= |
Clock operator/= (int i)
| operator/= |
const Clock operator% (const Clock &c)
| operator% |
const Clock operator% (int i)
| operator% |
Clock operator%= (const Clock &c)
| operator%= |
Clock operator%= (int i)
| operator%= |
- Version: 3.00
- Author: Pete Goodliffe
- Generated: pete on philemon on Wed May 25 14:39:52 2005, using kdoc 2.0a54.