Skip to content

Instantly share code, notes, and snippets.

@unohee
Last active August 13, 2016 03:19
Show Gist options
  • Save unohee/8f9b70d4ee336db3ebc624739960d161 to your computer and use it in GitHub Desktop.
Save unohee/8f9b70d4ee336db3ebc624739960d161 to your computer and use it in GitHub Desktop.
Midi Note Array in c++
//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