From 7784119f852ec873c08a2a3f67611a6ba17dcdaa Mon Sep 17 00:00:00 2001 From: HiveBeats Date: Tue, 8 Aug 2023 12:57:37 +0400 Subject: [PATCH] fix: compilation warnings --- inc/KeyBoard.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/KeyBoard.h b/inc/KeyBoard.h index e49f774..4aa83e6 100644 --- a/inc/KeyBoard.h +++ b/inc/KeyBoard.h @@ -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