Out-of-line definitions for Chord methods (needed for linking with unity builds)
| 283 | |
| 284 | // Out-of-line definitions for Chord methods (needed for linking with unity builds) |
| 285 | const char* Chord::getRootName() const { |
| 286 | static const char* noteNames[] = { |
| 287 | "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B" |
| 288 | }; |
| 289 | return (rootNote >= 0 && rootNote < 12) ? noteNames[rootNote] : "?"; |
| 290 | } |
| 291 | |
| 292 | const char* Chord::getTypeName() const { |
| 293 | switch (type) { |