Initial non-working commit of shuffle behavior. This change exposed a bug that seems to be calling each "processClockTick" method twice per tick.

This commit is contained in:
2025-06-19 09:32:41 -07:00
parent 54999d6525
commit df1a499fa0
6 changed files with 62 additions and 5 deletions

View File

@ -9,7 +9,7 @@ struct AppState;
// Define the constants for the current firmware.
const char SKETCH_NAME[] = "Gravity";
const byte SKETCH_VERSION = 3;
const byte SKETCH_VERSION = 4;
// Define the minimum amount of time between EEPROM writes.
static const unsigned long SAVE_DELAY_MS = 2000;
@ -41,6 +41,7 @@ class StateManager {
byte base_probability;
byte base_duty_cycle;
byte base_offset;
byte shuffle_index;
byte cv_source; // Cast the CvSource enum to a byte for storage
byte cv_destination; // Cast the CvDestination enum as a byte for storage
};