[refactor]: c++ implementation #13

Merged
e1lama merged 19 commits from refactor/cpp into master 2023-08-08 19:08:19 +00:00
18 changed files with 5569 additions and 2 deletions
Showing only changes of commit 7784119f85 - Show all commits

View File

@@ -9,8 +9,8 @@ class KeyBoard
{
private:
/* data */
static int get_semitone_shift_internal(char* root_note, char* target_note) {
char* pitch_classes[12] =
static int get_semitone_shift_internal(const char* root_note, char* target_note) {
const char* pitch_classes[12] =
{ "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B" };
// Extract the note number and pitch class for the root note