Before reinventing the wheel: does anyone know of a library that would contain something akin to radio buttons but in 2D?
Thanks!
On Tue, 2023-12-12 at 11:30 +0000, Martin Dupras wrote:
Before reinventing the wheel: does anyone know of a library that would contain something akin to radio buttons but in 2D?
Check out [carlito-grid] from:
https://github.com/reduzent/netpd-instruments
(in the abs folder). It also has a help patch.
Roman
Before reinventing the wheel: does anyone know of a library that would contain something akin to radio buttons but in 2D?
I don't, though I'd be interested too.
If you can make do without a visible grid of buttons, and deduce button presses from coordinates on a plane instead, the available 2D / xy sliders + a bit of dividing/rounding could work:
https://forum.pdpatchrepo.info/topic/8656/xy-slider-controls-two-variables-a...
https://forum.pdpatchrepo.info/topic/13818/xyz-slider-3-d-slider-using-mouse...
https://forum.pdpatchrepo.info/topic/2699/xy-control
https://forum.pdpatchrepo.info/topic/10854/xy-abstraction-to-get-mouse-click...
Best, Albert.
Thanks everyone, that was very useful.
In the end, for my purposes, the mtx.ctl in the ELSE library was closest to what I was after.
Thanks everyone!
On Tue, 12 Dec 2023 at 11:30, Martin Dupras martindupras@gmail.com wrote:
but it's not a actually a 2d radio, as you gotta turn it on and off... it's been on my list to build an actual 2d radio button for a good while now. It will happen eventually, as a full compiled object. While at it I will also make mtx.ctl a compiled object.
But I could change my plans and just adapt mtx.ctl into a 2d radio button for the next update, but of course I already got lots of things in my to do list...
Em qui., 14 de dez. de 2023 às 11:14, Martin Dupras martindupras@gmail.com escreveu:
Hi Alex
On Thu, 2023-12-14 at 12:14 -0300, Alexandre Torres Porres wrote:
It will happen eventually, as a full compiled object.
[mtx.ctl] is a pretty neat abstraction. Why do you want it to rewrite as a (from a user perspective) immutable object? I can modify and adapt an abstraction and see how it works internally. Not so much with a compiled object.
Roman
Em qui., 14 de dez. de 2023 às 12:39, Roman Haefeli reduzent@gmail.com escreveu:
Virtually all of GUI objects in ELSE should ideally be compiled objects and I didn't do it yet cause tcl/tk is a nightmare and I havent figured it out quite well... a couple of things I'd like is to have a nice properties window. Another nice thing could be easily resizing by click and drag. For mtx.ctl, I wanna have another option with knobs instead of toggles, to make it a matrix mixer... now that I have a nice compiled [knob] object in Pd, that can happen.
I can modify and adapt an abstraction and see how it works internally.
Good, it's there for you to have fun even if it gets replaced :) and github preserves history