# HG changeset patch # User matthiasm # Date 1290955770 -32400 # Node ID f568555390f1b79d7c3e16b14bec689333c227f1 # Parent e5c16976513dd113149c727c4565555e86f418cf refined chord note output diff -r e5c16976513d -r f568555390f1 chromamethods.cpp --- a/chromamethods.cpp Sun Nov 28 23:10:57 2010 +0900 +++ b/chromamethods.cpp Sun Nov 28 23:49:30 2010 +0900 @@ -342,6 +342,7 @@ slashNotation = bassnames[iSemitone][kSemitone]; } } + if (slashNotation=="") tempchordnotes.push_back(MIDI_basenote + (iSemitone+12) % 12); for (unsigned kSemitone = 0; kSemitone < 12; kSemitone++) { // bass pitch classes // cerr << ((kSemitone - iSemitone + 12) % 12) << endl; float bassValue = 0; @@ -351,7 +352,7 @@ } else { if (tempPCVector[((kSemitone - iSemitone + 12) % 12) + 12] == 1) bassValue = 0.5; } - loadedChordDict.push_back(bassValue); + loadedChordDict.push_back(bassValue); } for (unsigned kSemitone = 0; kSemitone < 12; kSemitone++) { // chord pitch classes loadedChordDict.push_back(tempPCVector[((kSemitone - iSemitone + 12) % 12) + 12]); @@ -364,7 +365,8 @@ os << notenames[12+iSemitone] << chordType << "/" << slashNotation; } // cerr << os.str() << endl; - loadedChordNames.push_back(os.str()); + loadedChordNames.push_back(os.str()); + m_chordnotes->push_back(tempchordnotes); for (int iNote = 0; iNote < tempchordnotes.size(); ++iNote) { cerr << tempchordnotes[iNote] << " ";