11enum class METRIC { SIMPLE, COMPOUND, IRREGULAR };
Represents a musical time signature (meter) for a measure.
Definition: time-signature.h:20
TimeSignature(const int timeUpper=4, const int timeLower=4)
Constructs a TimeSignature with specified upper and lower values.
int getUpperValue() const
Returns the upper value (numerator) of the time signature.
METRIC getMetric() const
Returns the metric type of the time signature (simple, compound, or irregular).
void setLowerValue(int lowerValue)
Sets the lower value (denominator) of the time signature.
void setUpperValue(int upperValue)
Sets the upper value (numerator) of the time signature.
int getLowerValue() const
Returns the lower value (denominator) of the time signature.
const std::string getMetricAsString() const
Returns the metric type as a string ("SIMPLE", "COMPOUND", "IRREGULAR").