MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / ChordNameScaleRelative

Method ChordNameScaleRelative

Source/ChordDatabase.cpp:323–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323std::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
330std::string ChordDatabase::NoteNameScaleRelative(int pitch, bool useDegrees) const
331{

Callers

nothing calls this directly

Calls 1

ScaleRootMethod · 0.45

Tested by

no test coverage detected