Commit Graph

5 Commits

Author SHA1 Message Date
d39954d6c5 Rename from shuffle to swing. Add indicator for aligning swing hits with notes. 2025-06-21 16:44:28 -07:00
0b610f53c0 Fix shuffle calculation logic.
Make shuffle percentge based.
2025-06-20 09:21:38 -07:00
df1a499fa0 Initial non-working commit of shuffle behavior. This change exposed a bug that seems to be calling each "processClockTick" method twice per tick. 2025-06-19 09:32:41 -07:00
966f5b767b code cleanup for consistency 2025-06-17 07:27:22 -07:00
d12764313b Introduce StateManager to persist state between power cycles (#6)
- add reset state menu option to return all settings back to default values.
- add reverse encoder menu option and save state
- make saving to EEPROM safer by wrapping put calls with noInterrupts()
- improve save state behavior by using a mutex flag and update check with debounce in main loop
- refactor gravity.h global const definitions to be static and more readable.
- improve usage of EncoderDir in ISR with pointer to instance and static isr() method.
- reduce u8g2 memory usage by using single page buffer

Reviewed-on: https://git.pinkduck.xyz/adam/libGravity/pulls/6
Co-authored-by: Adam Wonak <adam.wonak@gmail.com>
Co-committed-by: Adam Wonak <adam.wonak@gmail.com>
2025-06-16 02:47:25 +00:00