14 lines
642 B
C++
14 lines
642 B
C++
#include "SharedState.h"
|
|
|
|
volatile unsigned long lastLoop0Time = 0;
|
|
volatile unsigned long lastLoop1Time = 0;
|
|
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; |