[feat]: Filter (#18)

closes #16

Reviewed-on: #18
This commit is contained in:
2023-09-10 00:56:47 +03:00
parent 868a59da0e
commit bb3ccc296a
22 changed files with 372 additions and 48 deletions

View File

@@ -7,7 +7,7 @@
class KeyBoard {
private:
static int get_semitone_shift_internal(const char* root_note,
static int GetSemitoneShiftInternal(const char* root_note,
char* target_note) {
const char* pitch_classes[12] = {"C", "C#", "D", "D#", "E", "F",
"F#", "G", "G#", "A", "A#", "B"};
@@ -65,7 +65,7 @@ class KeyBoard {
char* target_note_cstr = new char[target_note.length() + 1];
strcpy(target_note_cstr, target_note.c_str());
int result = get_semitone_shift_internal("A4", target_note_cstr);
int result = GetSemitoneShiftInternal("A4", target_note_cstr);
delete[] target_note_cstr;
return result;