Commit Graph

12 Commits

Author SHA1 Message Date
1c0fb86bc1 Reverse the order of clock mod options. (#16)
This now matches original Gravity behavior. Also, now when applying CV mod positive voltages increase clock mod instead of reducing it.

Also fix pulse out, which wasn't previously updated when CLOCK_MOD was moved to program mem.

Reviewed-on: https://git.pinkduck.xyz/awonak/libGravity/pulls/16
2025-07-22 00:00:49 +00:00
ab71ac9c37 Add copyright license information 2025-07-04 14:05:58 -07:00
14d1c497b3 Add clock reset behavior to EXT when internally clocked. 2025-07-04 10:54:16 -07:00
74d98fed13 add missing midi echo 2025-07-03 09:08:38 -07:00
dd1228be00 Vendorize uClock (#10)
Add copy of uClock to the repo including memory optimization changes.

Also add user config setting for changing Pulse Out resolution.

Reviewed-on: https://git.pinkduck.xyz/adam/libGravity/pulls/10
Co-authored-by: Adam Wonak <adam.wonak@gmail.com>
Co-committed-by: Adam Wonak <adam.wonak@gmail.com>
2025-07-02 02:45:39 +00: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
c1b29924f7 Do not show MIDI tempo. Serial MIDI is too unstable. CV ext seems pretty stable when given a steady clock, but I need to try unstable sources / polyrhythms. 2025-06-03 07:33:50 -07:00
01bf09d4f5 Consistent clock behavior for ext cv and midi. 2025-06-02 21:56:17 -07:00
8cf64fefca Initial commit for midi. Midi out is working, Midi In is still a work in progress. 2025-06-01 22:53:51 -07:00
20f65d9bdf Full rewrite of graphics lib. Replace adafruit with u8g2. Overhaul UI. 2025-06-01 19:18:59 -07:00
98c3769008 Update clock.h to support uClock v2.2.1 and implement external PPQN 4 (#3)
Reviewed-on: https://git.pinkduck.xyz/adam/libGravity/pulls/3
Co-authored-by: Adam Wonak <adam.wonak@gmail.com>
Co-committed-by: Adam Wonak <adam.wonak@gmail.com>
2025-05-30 03:08:31 +00:00
32a23b7bf9 Initial commit of mostly working library. 2025-05-04 10:43:15 -07:00