MUSX Document Model
Loading...
Searching...
No Matches
musx::dom::TimeSignature::TimeSigComponent Struct Reference

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.
 

Public Attributes

std::vector< util::Fractioncounts
 
std::vector< Eduunits
 

Detailed Description

A single time signature component.

Member Data Documentation

◆ counts

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.

◆ units

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)