| 1029 | } |
| 1030 | |
| 1031 | QStringList GetAllNotes() |
| 1032 | { |
| 1033 | static bool done = false; |
| 1034 | static QStringList result; |
| 1035 | static const QStringList notes = {"C", "C#", "D", "D#", "E", "F", |
| 1036 | "F#", "G", "G#", "A", "A#", "B"}; |
| 1037 | if (!done) { |
| 1038 | for (int octave = -1; octave <= 9; octave++) { |
| 1039 | for (int noteIndex = 0; noteIndex < 12; noteIndex++) { |
| 1040 | result << notes[noteIndex] + |
| 1041 | QString::number(octave); |
| 1042 | } |
| 1043 | } |
| 1044 | done = true; |
| 1045 | } |
| 1046 | return result; |
| 1047 | } |
| 1048 | |
| 1049 | } // namespace advss |
no outgoing calls
no test coverage detected