Skip to content

Commit

Permalink
Add case numberOfDots > 1
Browse files Browse the repository at this point in the history
still need to test it
  • Loading branch information
martha-thomae committed Oct 13, 2024
1 parent 126ee36 commit 41319ca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/scoringupfunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,20 @@ void ScoringUpFunctor::ProcessBoundedSequences(const ArrayOfElementDurPairs &seq
else if (numberOfDots > 1) {
// Take first dot and evaluate if it is a dot of imperfection (check if it is "integer number of semibreves"
// away from the beginning of the sequence, and if the rest of the sequence still sums an integer number)
int startDotInd = indecesOfDots.at(0);
bool isStartDotOfDiv = EvalDotOfDiv(middleSeq, sequence, startDotInd);

// Take last dot and evaluate if it is a dot of division (check if it is "integer number of semibreves" away
// from the end of the sequence, and if the rest of the sequence still sums an integer number)
int endDotInd = indecesOfDots.at(indecesOfDots.size() - 1);
bool isEndDotOfDiv = EvalDotOfDiv(middleSeq, sequence, endDotInd);

// If neither, all dots are dots of augmentation
if (not isStartDotOfDiv and not isEndDotOfDiv) {
// This is a dot of augmentation
sum = GetValueInUnit(GetValueInMinims(middleSeq), DURATION_semibrevis);
FindDurQuals(sequence, sum);
}
}
}

Expand Down

0 comments on commit 41319ca

Please sign in to comment.