Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents a standard musical time signature. More...
#include <omSoundTimeSignature.h>
Public Member Functions | |
TimeSignature () | |
Create a new default time signature representing 4/4 time. More... | |
TimeSignature (UInt newNumerator, UInt newDenominator) | |
Create a new time signature with the specified time signature numberator and denominator. More... | |
UInt | getNumerator () const |
Return the numerator value of this time signature, indicating the number of beats per measure. More... | |
void | setNumerator (UInt newNumerator) |
Set the numerator value of this time signature, indicating the number of beats per measure. More... | |
UInt | getDenominator () const |
Return the denominator value of this time signature, indicating which note value gets a beat. More... | |
void | setDenominator (UInt newDenominator) |
Set the denominator value of this time signature, indicating which note value gets a beat. More... | |
data::String | toString () const |
Return a string representation of the time signature, 'N/D'. More... | |
operator data::String () const | |
Convert this time signature into a string representation, 'N/D'. More... | |
A class that represents a standard musical time signature.
The numberator of the time signature indicates the number of beats per measure, and the denominator indicates what note value represents a beat. The note value is usually a power of 2: 1, 2, 4, 8, 16, 32, etc.
|
inline |
Create a new default time signature representing 4/4 time.
Create a new time signature with the specified time signature numberator and denominator.
|
inline |
Return the numerator value of this time signature, indicating the number of beats per measure.
|
inline |
Set the numerator value of this time signature, indicating the number of beats per measure.
|
inline |
Return the denominator value of this time signature, indicating which note value gets a beat.
The note value is almost always a power of 2: 1, 2, 4, 8, 16, 32, etc.
|
inline |
Set the denominator value of this time signature, indicating which note value gets a beat.
The note value is almost always a power of 2: 1, 2, 4, 8, 16, 32, etc.
|
inline |
Return a string representation of the time signature, 'N/D'.
|
inline |
Convert this time signature into a string representation, 'N/D'.