MuseScore
3.4
Music composition and notation
|
Classes | |
struct | DivisionInfo |
struct | DivLengthInfo |
struct | MaxLevel |
struct | Node |
Enumerations | |
enum | DurationType : char { DurationType::NOTE, DurationType::REST } |
Functions | |
ReducedFraction | userTimeSigToFraction (MidiOperations::TimeSigNumerator timeSigNumerator, MidiOperations::TimeSigDenominator timeSigDenominator) |
MidiOperations::TimeSigNumerator | fractionNumeratorToUserValue (int n) |
MidiOperations::TimeSigDenominator | fractionDenominatorToUserValue (int z) |
bool | isSimple (const ReducedFraction &barFraction) |
bool | isCompound (const ReducedFraction &barFraction) |
bool | isComplex (const ReducedFraction &barFraction) |
bool | isDuple (const ReducedFraction &barFraction) |
bool | isTriple (const ReducedFraction &barFraction) |
bool | isQuadruple (const ReducedFraction &barFraction) |
bool | isQuintuple (const ReducedFraction &barFraction) |
bool | isSeptuple (const ReducedFraction &barFraction) |
DivisionInfo | metricDivisionsOfBar (const ReducedFraction &barFraction) |
DivisionInfo | metricDivisionsOfTuplet (const MidiTuplet::TupletData &tuplet, int tupletStartLevel) |
ReducedFraction | beatLength (const ReducedFraction &barFraction) |
std::vector< ReducedFraction > | divisionsOfBarForTuplets (const ReducedFraction &barFraction) |
std::vector< DivisionInfo > | divisionInfo (const ReducedFraction &barFraction, const std::vector< MidiTuplet::TupletData > &tupletsInBar) |
int | levelOfTick (const ReducedFraction &tick, const std::vector< DivisionInfo > &divsInfo) |
std::vector< int > | metricLevelsOfBar (const ReducedFraction &barFraction, const std::vector< DivisionInfo > &divsInfo, const ReducedFraction &minDuration) |
Meter::MaxLevel | maxLevelBetween (const ReducedFraction &startTickInBar, const ReducedFraction &endTickInBar, const DivisionInfo &divInfo) |
Meter::MaxLevel | findMaxLevelBetween (const ReducedFraction &startTickInBar, const ReducedFraction &endTickInBar, const std::vector< DivisionInfo > &divsInfo) |
int | tupletNumberForDuration (const ReducedFraction &startTick, const ReducedFraction &endTick, const std::vector< MidiTuplet::TupletData > &tupletsInBar) |
bool | isPowerOfTwo (unsigned int x) |
bool | isSimpleNoteDuration (const ReducedFraction &duration) |
bool | isQuarterDuration (const ReducedFraction &ticks) |
bool | is23EndOfBeatInCompoundMeter (const ReducedFraction &startTickInBar, const ReducedFraction &endTickInBar, const ReducedFraction &barFraction) |
bool | is2of3RestInTripleMeter (const ReducedFraction &startTickInBar, const ReducedFraction &endTickInBar, const ReducedFraction &barFraction) |
ReducedFraction | findTupletRatio (const ReducedFraction &startPos, const ReducedFraction &endPos, const std::vector< MidiTuplet::TupletData > &tupletsInBar) |
QList< std::pair< ReducedFraction, TDuration > > | collectDurations (const std::map< ReducedFraction, Node > &nodes, const std::vector< MidiTuplet::TupletData > &tupletsInBar, bool useDots, bool printRestRemains) |
bool | badLevelCondition (int startLevelDiff, int endLevelDiff, int tol) |
int | noteCount (const ReducedFraction &duration, bool useDots) |
bool | isLessNoteCount (const ReducedFraction &t1, const ReducedFraction &t2, const ReducedFraction &t3, bool useDots) |
void | excludeNodes (std::map< ReducedFraction, Node > &nodes, int tol, bool useDots) |
int | adjustEdgeLevelIfTuplet (const Meter::MaxLevel &splitPoint, const std::vector< DivisionInfo > &divInfo) |
QList< std::pair< ReducedFraction, TDuration > > | toDurationList (const ReducedFraction &startTickInBar, const ReducedFraction &endTickInBar, const ReducedFraction &barFraction, const std::vector< MidiTuplet::TupletData > &tupletsInBar, DurationType durationType, bool useDots, bool printRestRemains) |
Variables | |
const int | TUPLET_BOUNDARY_LEVEL = 10 |
|
strong |
int Ms::Meter::adjustEdgeLevelIfTuplet | ( | const Meter::MaxLevel & | splitPoint, |
const std::vector< DivisionInfo > & | divInfo | ||
) |
bool Ms::Meter::badLevelCondition | ( | int | startLevelDiff, |
int | endLevelDiff, | ||
int | tol | ||
) |
ReducedFraction Ms::Meter::beatLength | ( | const ReducedFraction & | barFraction | ) |
QList<std::pair<ReducedFraction, TDuration> > Ms::Meter::collectDurations | ( | const std::map< ReducedFraction, Node > & | nodes, |
const std::vector< MidiTuplet::TupletData > & | tupletsInBar, | ||
bool | useDots, | ||
bool | printRestRemains | ||
) |
std::vector< DivisionInfo > Ms::Meter::divisionInfo | ( | const ReducedFraction & | barFraction, |
const std::vector< MidiTuplet::TupletData > & | tupletsInBar | ||
) |
std::vector< ReducedFraction > Ms::Meter::divisionsOfBarForTuplets | ( | const ReducedFraction & | barFraction | ) |
void Ms::Meter::excludeNodes | ( | std::map< ReducedFraction, Node > & | nodes, |
int | tol, | ||
bool | useDots | ||
) |
Meter::MaxLevel Ms::Meter::findMaxLevelBetween | ( | const ReducedFraction & | startTickInBar, |
const ReducedFraction & | endTickInBar, | ||
const std::vector< DivisionInfo > & | divsInfo | ||
) |
ReducedFraction Ms::Meter::findTupletRatio | ( | const ReducedFraction & | startPos, |
const ReducedFraction & | endPos, | ||
const std::vector< MidiTuplet::TupletData > & | tupletsInBar | ||
) |
MidiOperations::TimeSigDenominator Ms::Meter::fractionDenominatorToUserValue | ( | int | z | ) |
MidiOperations::TimeSigNumerator Ms::Meter::fractionNumeratorToUserValue | ( | int | n | ) |
bool Ms::Meter::is23EndOfBeatInCompoundMeter | ( | const ReducedFraction & | startTickInBar, |
const ReducedFraction & | endTickInBar, | ||
const ReducedFraction & | barFraction | ||
) |
bool Ms::Meter::is2of3RestInTripleMeter | ( | const ReducedFraction & | startTickInBar, |
const ReducedFraction & | endTickInBar, | ||
const ReducedFraction & | barFraction | ||
) |
bool Ms::Meter::isComplex | ( | const ReducedFraction & | barFraction | ) |
bool Ms::Meter::isCompound | ( | const ReducedFraction & | barFraction | ) |
bool Ms::Meter::isDuple | ( | const ReducedFraction & | barFraction | ) |
bool Ms::Meter::isLessNoteCount | ( | const ReducedFraction & | t1, |
const ReducedFraction & | t2, | ||
const ReducedFraction & | t3, | ||
bool | useDots | ||
) |
bool Ms::Meter::isPowerOfTwo | ( | unsigned int | x | ) |
bool Ms::Meter::isQuadruple | ( | const ReducedFraction & | barFraction | ) |
bool Ms::Meter::isQuarterDuration | ( | const ReducedFraction & | ticks | ) |
bool Ms::Meter::isQuintuple | ( | const ReducedFraction & | barFraction | ) |
bool Ms::Meter::isSeptuple | ( | const ReducedFraction & | barFraction | ) |
bool Ms::Meter::isSimple | ( | const ReducedFraction & | barFraction | ) |
bool Ms::Meter::isSimpleNoteDuration | ( | const ReducedFraction & | duration | ) |
bool Ms::Meter::isTriple | ( | const ReducedFraction & | barFraction | ) |
int Ms::Meter::levelOfTick | ( | const ReducedFraction & | tick, |
const std::vector< DivisionInfo > & | divsInfo | ||
) |
Meter::MaxLevel Ms::Meter::maxLevelBetween | ( | const ReducedFraction & | startTickInBar, |
const ReducedFraction & | endTickInBar, | ||
const DivisionInfo & | divInfo | ||
) |
DivisionInfo Ms::Meter::metricDivisionsOfBar | ( | const ReducedFraction & | barFraction | ) |
DivisionInfo Ms::Meter::metricDivisionsOfTuplet | ( | const MidiTuplet::TupletData & | tuplet, |
int | tupletStartLevel | ||
) |
std::vector< int > Ms::Meter::metricLevelsOfBar | ( | const ReducedFraction & | barFraction, |
const std::vector< DivisionInfo > & | divsInfo, | ||
const ReducedFraction & | minDuration | ||
) |
int Ms::Meter::noteCount | ( | const ReducedFraction & | duration, |
bool | useDots | ||
) |
QList< std::pair< ReducedFraction, TDuration > > Ms::Meter::toDurationList | ( | const ReducedFraction & | startTickInBar, |
const ReducedFraction & | endTickInBar, | ||
const ReducedFraction & | barFraction, | ||
const std::vector< MidiTuplet::TupletData > & | tupletsInBar, | ||
DurationType | durationType, | ||
bool | useDots, | ||
bool | printRestRemains | ||
) |
int Ms::Meter::tupletNumberForDuration | ( | const ReducedFraction & | startTick, |
const ReducedFraction & | endTick, | ||
const std::vector< MidiTuplet::TupletData > & | tupletsInBar | ||
) |
|
strong |
const int Ms::Meter::TUPLET_BOUNDARY_LEVEL = 10 |