| 321 | } |
| 322 | |
| 323 | std::string ChordDatabase::ChordNameScaleRelative(int rootPitch) const |
| 324 | { |
| 325 | const std::vector<std::string> chordNames = { "I", "bII", "II", "bIII", "III", "IV", "bV", "V", "bVI", "VI", "bVII", "VII" }; |
| 326 | int relpitch = (rootPitch + 12 - TheScale->ScaleRoot()) % 12; |
| 327 | return chordNames[relpitch]; |
| 328 | } |
| 329 | |
| 330 | std::string ChordDatabase::NoteNameScaleRelative(int pitch, bool useDegrees) const |
| 331 | { |