Compare commits
2 Commits
d98e311d16
...
891c747d11
| Author | SHA1 | Date | |
|---|---|---|---|
|
891c747d11
|
|||
|
7784119f85
|
4
build.sh
4
build.sh
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
CC="clang++"
|
CC="${CXX:-c++}"
|
||||||
$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 -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
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ class KeyBoard
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
/* data */
|
/* data */
|
||||||
static int get_semitone_shift_internal(char* root_note, char* target_note) {
|
static int get_semitone_shift_internal(const char* root_note, char* target_note) {
|
||||||
char* pitch_classes[12] =
|
const char* pitch_classes[12] =
|
||||||
{ "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B" };
|
{ "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B" };
|
||||||
|
|
||||||
// Extract the note number and pitch class for the root note
|
// Extract the note number and pitch class for the root note
|
||||||
|
|||||||
Reference in New Issue
Block a user