Rotary encoder
This commit is contained in:
+10
-1
@@ -2,4 +2,13 @@
|
||||
|
||||
volatile unsigned long lastLoop0Time = 0;
|
||||
volatile unsigned long lastLoop1Time = 0;
|
||||
volatile bool watchdogActive = false;
|
||||
volatile bool watchdogActive = false;
|
||||
|
||||
const Scale SCALES[] = {
|
||||
{ "C Major", { 261.63, 293.66, 329.63, 349.23, 392.00, 440.00, 493.88, 523.25 }, 8 },
|
||||
{ "C Minor", { 261.63, 293.66, 311.13, 349.23, 392.00, 415.30, 466.16, 523.25 }, 8 },
|
||||
{ "Pentatonic", { 261.63, 293.66, 329.63, 392.00, 440.00, 523.25, 587.33, 659.25 }, 8 },
|
||||
{ "Blues", { 261.63, 311.13, 349.23, 369.99, 392.00, 466.16, 523.25, 587.33 }, 8 }
|
||||
};
|
||||
const int NUM_SCALES = sizeof(SCALES) / sizeof(SCALES[0]);
|
||||
volatile int currentScaleIndex = 0;
|
||||
Reference in New Issue
Block a user