Commit Graph

22 Commits

Author SHA1 Message Date
a4a00021d8 Fix missing n3 attribute and async function issue
- Add missing self.n3 = 1 attribute to MidiHandler initialization
- Fix update_rgb async function to properly yield control with await asyncio.sleep(0)
- Resolves TypeError about expecting coroutine but getting None
- Application now working properly with buttons and dials functional
2025-09-19 00:07:37 +12:00
f2dcdabf29 Fix indentation errors and reduce debug output
- Comment out all debug logging statements to reduce console noise
- Fix empty if/else blocks by adding pass statements
- Remove beat logging, TCP server logging, and MIDI debug messages
- Keep only essential info, warning, and error messages
- Revert radiate delay separation back to using main delay parameter
2025-09-19 00:02:51 +12:00
5f7db51851 Add rate-limited parameter updates and message type system
- Rate limit parameter updates to 100ms minimum interval
- Send immediate updates if rate limit allows, otherwise queue
- Process pending updates during beat handling
- All knob changes (CC30-37) now trigger parameter updates
- Add message type field: 'b' for beats, 'u' for updates
- Optimize message type to single letters to save packet space
- Prevents ESP-NOW network flooding during rapid knob adjustments
- All packets stay under 230-byte limit with automatic splitting
2025-09-18 22:11:17 +12:00
fcbe9e9094 Implement full parameter sending on pattern change and periodic updates
- Send all parameters when pattern changes (may require 2 packets if >200 bytes)
- Send periodic parameter updates every 8 beats to keep bars synchronized
- Beat packets remain minimal for performance
- All packets stay under 230-byte limit
2025-09-18 21:58:39 +12:00
36dfda74b2 Update GUI layout and MIDI CC mappings: CC36=n3, CC37=delay, remove B1/B2 references 2025-09-18 20:35:31 +12:00
8d0c9edf5d ws: adopt nested {'0': {...}} payloads
midi: bind patterns to notes 36+; beat triggers selected pattern; include n index; CC map: 30=R 31=G 32=B 33=brightness 34=n1 35=n2 36=delay; send n1/n2 raw 0-127

gui: show n1 and n2 in status
2025-09-17 20:22:11 +12:00
1da2e30d4c midi: init read of CCs on startup (delay, brightness, RGB, beat enable); track bpm/pattern for GUI\nmain: integrate MidiHandler; add status panel for delay/brightness/RGB/pattern/BPM 2025-09-14 05:23:46 +12:00
9ff38aa875 midi: add CC29 tempo reset, CC37 brightness; local beat flag; logging\nsound: add control server with RESET_TEMPO; logging; always send BPM 2025-09-14 04:53:24 +12:00
3b869851b8 Add patterns 2025-09-09 21:40:27 +12:00
9fc58a827b Move to src. Add midi and sound 2025-09-07 21:15:42 +12:00
b77b29415c Make colors bigger and add more Y padding 2025-07-12 14:21:33 +12:00
5b248a5726 Add temple of techno settings 2025-07-12 10:38:54 +12:00
62611c73c9 Add extra patterns that use a single color 2025-07-12 10:38:33 +12:00
f7f7acbdbf Intial version 2025-07-12 01:18:04 +12:00
c77fd30f8f Done a heap 2025-07-12 00:55:30 +12:00
65774837c7 Change to websocket 2025-07-11 21:33:50 +12:00
f302be85c0 Use Pipenv 2025-07-11 21:33:13 +12:00
910c225542 Inital working version 2025-05-18 22:10:14 +12:00
9d35fb5002 Add config 2025-01-04 19:44:13 +13:00
cc45c919f5 Ignore venv, pycache and config 2025-01-04 19:43:23 +13:00
161fd5e12f Add multiple servers 2024-08-30 17:35:26 +12:00
d1b9de736f Initial commit 2024-08-30 17:23:16 +12:00