MIDIBEAT1: a fun P1 project, exploring RGB LEDs, MIDI, rotary encoders, 16x seven-seg LEDs....
TonySpiner
Posts: 33
Hi, big shout-out to this forum!
I'm using Claude as an AI helper to develop P1 code for MIDIBEAT1.
I'll post about it here.

Comments
A P1 MIDI project to experement with Euclidean rhythm, as described by Godfried Toussaint.
MIDIBEAT1 distributes k hits across n steps as evenly as possible:
Example:
E(3,8) → a classic tresillo pattern
E(5,8) → cinquillo
A fast hit-test makes this practical in real time: (s × k) mod n < k → hit.
now using AI helpers to create a simple HMI. The amazing contributions in the Propeller1 OBEX make my tinkering possible, thank you all!
Attached is MIDIBEAT1's HMI input driver: 8_encoders_16_buttons_Claude_165.spin object.
Could be revised further but seems to work fine. Mostly created by Claude, from JonnyMac's 74HC165 code and Mark Tillotson's encoder patterns.
The input hardware is 8 rotary encoders and 16 push-buttons, spread across two PCBs each with 2x 74HC165 ICs, giving 32 raw digital inputs on 3 I/O pins.