MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / GetAllNotes

Function GetAllNotes

plugins/midi/midi-helpers.cpp:1031–1047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029}
1030
1031QStringList 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

Callers 2

MidiMessageSelectionMethod · 0.85
SetVariableValuesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected