Skip to content

Commit

Permalink
Ensured undefined chords ("X") in reference are excluded from evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
jpauwels committed Oct 7, 2015
1 parent 178cf1c commit 54e88ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions SimilarityScoreChord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,11 @@ const size_t SimilarityScoreChord::calcChordIndex(const MusOO::Chord& inChord, M
outMappedChord = Chord::none();
return m_NumOfTrueChords;
}
else if (inChord == Chord::undefined())
{
outMappedChord = Chord::undefined();
return this->m_NumOfTestLabels;
}
else if (m_Mapping == "bass")
{
outMappedChord = Chord(inChord.bass(true), ChordType::rootOnly());
Expand Down
2 changes: 1 addition & 1 deletion libMusOO

0 comments on commit 54e88ad

Please sign in to comment.