Today, by mistake, i end up with a latch button, with 5 steps and a knob on top of each other. I forgot to delte the knob, when I was replacing it with the button.
And it actually looks really cool!
Both parameters are assigned to the same XXXX_PARAM.
That means it can both dragged, like a knob and pushed like a switch. If you drag it at the outher edge, you use the knob, if you push in the middle you use the switch.
Don’t know if this is a bad idea to do, but it looks and acts pretty cool.
Yeah, I think it would be awesome to implement something like this, but in a proper manner. The one in the clip is made with a RoundBlackKnob and the VCVLightLatch. If you use the smaller knob, it’s hard to get a hold of it, it works better with the big knob.
I am leaving it in this module for now to see if it causes any issues once I start adding presets on the module. But for now it doesn’t cause any issues.
I am keeping too, I think. Will try with the large knob, which I hope will make it easier to grab the knob and drag it. It’s a bit hard with the normal one and really hard with the small one.
By default, you can click a round button outside the circle as long as the mouse pointer stays inside the bounding rectangle. Usually this is not a problem, but when you put a button on top of a knob, the button’s onHover() and onButton() methods should only react when the mouse pointer stays inside the circle. See