2 Commits

Author SHA1 Message Date
891c747d11 fix: compiler script 2023-08-08 13:10:37 +04:00
7784119f85 fix: compilation warnings 2023-08-08 12:57:37 +04:00
2 changed files with 4 additions and 4 deletions

View File

@@ -1,3 +1,3 @@
#!/bin/bash
CC="clang++"
$CC -std=c++17 -I./inc/ ./src/SeeSynth.cpp ./src/Application.cpp ./src/Renderer.cpp ./src/Synth.cpp ./src/Oscillator.cpp -lm -lraylib -o ./bin/main
CC="${CXX:-c++}"
$CC -Wall -std=c++17 -I./inc/ ./src/SeeSynth.cpp ./src/Application.cpp ./src/Renderer.cpp ./src/Synth.cpp ./src/Oscillator.cpp -lm -lraylib -o ./bin/main

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