Knob on click event?

Quite new to my Electra Mini, done some basic lua scripting, but I can’t seem to work out if it’s possible to bind to the press/click of a rotary knob. I know I can respond to touch events, but that’s not what I need. Am I missing something really obvious? Thanks

I had exact same question when I first got my Mini too;

But short answer is no, there isn’t a function in the event library to capture… as noted in the documentation ( Lua extension | Electra One Documentation ) “Note, currently only `PAGES` and `POTS` are supported.”

Also from a Mini Ui persepective, there is a ‘Pad Toggle’ control which already relies on the Pot press to work.

I believe the closest alternative is coding around capturing Pot touch/release events.

1 Like

I will be extending the Lua API to include access to the knob switches. They are not there yet because the API for mk2 and Mini has been identical so far.

4 Likes

That would be great: one of the most likely events to implement: on press the control returns to its default value.

2 Likes

Would be nice to have events for onPress, onShortRelease, onLongPress, onLongRelease, onDoublePress, onFinalRelease, etc. so that it’s easy to act on various types of events and not have delays of handling long/double click delay the handling of Press and Short Press Release.

Naming can be improved.

If you’re inclined to go this route, I can provide more detail if you want….

Hi @martin,

Can i please put in my vote for access via lua to button switch events? Just started porting my VCVRack preset to the Mini (TLDR: it worked with just a few constant variable value changes in my script - awesome .. tricky bit is how to handle mapping 6x6x6page grid mapped controls to 8x8page…) and would really like to make use of those instead of the pot touch events, especially for my custom double-tap “reset VCVRack parameter to default” action.

1 Like

@hape @egotape have brought quite a few ideas on this. I still have several things to fix and improve (after launching mini) before working on new features like this. Once that is done - we are almost there - allowing the pot switch to act as an independent control is my top priority. I really like the idea because it expands the possibilities of what can be done on a single page.

1 Like