|
MUSX Document Model
|
A single time signature component. More...
#include <CommonClasses.h>
Public Member Functions | |
| bool | operator== (const TimeSigComponent &src) const |
| Test if two TimeSigComponent values are the same. | |
| util::Fraction | sumCounts () const |
| Compute the sum of all counts. | |
| Edu | sumUnits () const |
| Compute the sum of all units. | |
| TimeSigComponent | normalizeCompound () const |
| Returns a copy of this component normalized for compound meter. For example, 2 dotted quarters becomes 6/8. | |
Static Public Member Functions | |
| static std::pair< util::Fraction, Edu > | normalizeCompoundUnit (util::Fraction count, Edu unit) |
| Normalizes a single time signature count and unit to a power-of-two unit. | |
Public Attributes | |
| std::vector< util::Fraction > | counts |
| std::vector< Edu > | units |
A single time signature component.
| TimeSignature::TimeSigComponent musx::dom::TimeSignature::TimeSigComponent::normalizeCompound | ( | ) | const |
Returns a copy of this component normalized for compound meter. For example, 2 dotted quarters becomes 6/8.
|
static |
Normalizes a single time signature count and unit to a power-of-two unit.
| std::vector<util::Fraction> musx::dom::TimeSignature::TimeSigComponent::counts |
The array of counts in this component. For simple time signatures this is a single value, and it is an integer like 4/1.
| std::vector<Edu> musx::dom::TimeSignature::TimeSigComponent::units |
The array of beat values in this component. For simple time signatures this is a single value, and it is a note value like 1024 (quarter note) For straightforward compound time it may be a single dotted value like 1536 (dotted quarter)