initial commit of save/load slot

This commit is contained in:
2025-07-03 12:55:25 -07:00
parent d21c0a810f
commit c9c85e64ec
6 changed files with 160 additions and 90 deletions

View File

@ -42,6 +42,8 @@ static const int CLOCK_MOD_PULSES[MOD_CHOICE_SIZE] PROGMEM = {
192, 288, 384, 480, 576, 672, 768, 864, 960, 1056, 1152, 1536, 2304, 3072, 6144, 12288
};
static const byte DEFAULT_CLOCK_MOD = 8; // x1 or 96 PPQN.
class Channel {
public:
Channel() {
@ -50,7 +52,7 @@ class Channel {
void Init() {
// Reset base values to their defaults
base_clock_mod_index = 7;
base_clock_mod_index = DEFAULT_CLOCK_MOD;
base_probability = 100;
base_duty_cycle = 50;
base_offset = 0;