Skip to content

drum_machine: the panel is controlpanel; drum_seq goes - #7

Closed
bdbarnett wants to merge 1 commit into
mainfrom
drum-machine/controlpanel
Closed

bdbarnett wants to merge 1 commit into
mainfrom
drum-machine/controlpanel

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

The drum machine's PANEL button now opens controlpanel (PyDevices/pydevices#368), the same panel mpvst's editor uses. The machine's kits sit on backlit pads, its 16 macros on encoders with LED rings, and a dot-matrix display shows the patch and the value being turned. The panel's EXIT button returns to the sequencer, replacing the floating BACK button. The screen is deleted asynchronously, after EXIT's own click returns.

drum_seq held only a word-for-word copy of the old panel, so it goes, along with packages/drum_seq.json and its gallery.toml rows. The cast README now names the controlpanel package where it named drum_seq. controlpanel joins the generator's installable deps and the drum machine's # deps: line. The browser link asks for pydevices-controlpanel (the wheel mapping is in PyDevices/pydevices#368), and the generated pages are refreshed.

Tested on CPython 3.12, Linux, at the drum machine's 720 x 480 with a TR-808 loaded:

  • PANEL built the panel with 16 macros and the machine's patch.
  • Pressing a pad called program_change, and every encoder showed the instrument's macro values afterwards.
  • EXIT returned to the sequencer screen.

gallery_generator.py --check is clean.

This needs PyDevices/pydevices#368 merged and controlpanel published, or installed beside the example on a board, before it merges. Without it, PANEL does nothing, as before, when the import fails.

Draft: the look gets a review first.

The PANEL button opens controlpanel, the panel mpvst's editor uses, with an
EXIT button in place of the floating BACK one. drum_seq held only a copy of the
old panel, so it goes, with its manifest and gallery.toml rows.
@bdbarnett

Copy link
Copy Markdown
Contributor Author

Replaced by #10, rebased onto main.

@bdbarnett bdbarnett closed this Nov 1, 2026
@bdbarnett
bdbarnett deleted the drum-machine/controlpanel branch November 1, 2026 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant