Keeps sending CC values as long as the knob is touched.

The MIDI specifications do not transmit unless there is a change in the CC value.

Is it possible to use the Elektra One touch sense knob to transmit even if there is no change in the CC value at regular intervals while the knob is touched?

short answer is yes - probably using a combination of the events.onPotTouch(). and timer() functionality
you can start something in the onPotTouch() until you release the knob and use the timer.onTick() to do things at regular intervals


As @oldgearguy suggested, use combination of a timer and pot touch callback:

example preset can be found at: Timer CC.

This example sends CC#5 in 100msecs interval as long as the user touches the control or whenever the value is changed.

1 Like

The preset you made worked and I figured out how to send different CCs and ports.

However, while trying this and that, I probably got into a loop of While statements and Electra one froze at the startup screen and would not connect to chrome.

I have pressed the reset button and it does not come back.

Is there any way to restore it?
MK1 and firmware is 3.5.4.

an infinite loop in the timer can be tricky. The reason is that timer.onTick() runs with a very high priority. If it does not “leave”, other things like buttons, touch, just keep waiting. I am trying to find some way how to make this more error-prone.

for now, restart E1 to the bootloader mode. (bottom-right button pressed) when powering the controller on. In bootloader, enable the USB Disk mode. USB storage device Electra will show up on your computer. Go to the ctrlv2/slots directory and remove the preset / lua files:

If you know what preset slot the preset sits in, you can delete just that specific .epr and .lua files.

Let me know if it helped.

Hi martin,

I was able to start the system by following this procedure.
Thank you.

I am very bad at programming. :woozy_face:
I will take this opportunity to work on LUA.

1 Like

Do not get intimidated. As you saw, it is easy to recover. I am thinking of adding some high-priority button combo to stop/terminate Lua. That would make things even easier.

1 Like

It is still very difficult.
I want to implement TIMER CC on all the faders on the page.
Is there any other way than writing “Configure the message and identify the control” one by one?

1 Like

I understand when you need now. I will try to extend the example. I think I will have a moment for it tomorrow.

1 Like

I made edits to the preset so that it keeps sending CC messages in given time interval for any CC control used in the preset. Here’s the updated version: Timer CC.

I have added different controls on two pages to show that any CC control will be picked up. I tested it on mk2 with v3.5.4. Should work on mk1 too. I hope :wink:

1 Like

Thank you.
It takes me a while to decipher how this is happening.
I was able to port it to my other presets and see that it is enabled on all knobs no matter what page I am on.
It’s like magic.

1 Like

I can imagine you might have some knobs where that action is not needed. For those, you can add a list with controls to exclude.

1 Like

Is it possible to reflect the same MIDI port, channel, and CC set on a knob from MIDI In in real time while not touching the knob with touch sense?
My goal is to combine this with Timer CC:)