#include <Midi.h>
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 |
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.
|
|
Construct a Clock with the given number of Pulses.
|
|
|
|
|
|
Convenience method to obtain the number of whole quarter notes.
|
|
|
Convenince method to obtain the number of pulses not part of a whole quarter note.
|
|
||||||||||||
|
Convert a time from one PPQN resolution to this one.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PPQN is the number of Pulses Per Quarter Note. |
|
|
The number of pulses of this Clock. |
1.3.2