Last active
August 13, 2016 03:19
-
-
Save unohee/8f9b70d4ee336db3ebc624739960d161 to your computer and use it in GitHub Desktop.
Midi Note Array in c++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Create midi note array... | |
void makeArray{ | |
vector<bool> notes | |
int octave;//octave is 0 - 8; | |
const string note_substring[12] = | |
{ | |
"C","C#","D","D#", | |
"E","F","F#","G", | |
"G#","A","A#","B" | |
}; | |
for(int noteNum=0; noteNum<=108;noteNum++){ | |
octave = noteNum /12; | |
notes.push_back(note_substring[noteNum%12]+to_string(octave)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment