Drafting a small library of custom-tile widgets

Thanks!

Both asks land on the same firmware limit — custom tiles only receive pot events from ONE pot, regardless of how many inputs you declare. Martin acknowledged it in https://forum.electra.one/t/multi-value-custom-controls (#4172),
not shipped as of 4.1.4. Worth a +1 there if you want it sooner.

Until then, three workarounds that already work today:

  • Multi-tile grouping — place 4 or 8 narrow custom tiles side-by-side, one pot each. Visually it reads as one widget. (Heads up: span/vspan are buggy past the first tile — usectrl:setBounds() in preset.onLoad.)
  • Mode toggle inside one tile — single pot, touchscreen tap to switch which parameter it edits. widgets/note-list-16/ in the repo uses this pattern.

Custom names per parameter — yes. Anywhere a built-in shows the parameter name you can override it in Lua viagraphics.print, and a custom tile paints whatever string you
hand it.

Mini support — the widgets currently target the MK2 layout (theme.lua has MK2 WIDTH/HEIGHT constants). Adapting to Mini shall mostly be recomputing the bounds per primitive. But I don’t have Mini to test it so it will be too painfull to develop without the ability to test it on my one.

1 Like