Strategies for copying/moving controls in real-time

QUESTION

On my Electra One Mini preset for a Chase Bliss Lost + Found pedal, I have two symmetrical rows of dials and lists (indicated by red and green)—each one sends unique CC messages.

I would like to be able to switch between the following “modes,” each a distinct combination of the red and green controls in the upper and lower rows as shown in the screenshot:
R - G, R - R, G - G, G - R

It’s not just color; there’s some display logic for each row where the Modify and Time knob names change depending on the effect category in the far right list.

One approach is to create four separate pages, one for each combination. The two things I don’t like about this:
• I’d like to reserve my page count for additional controls

• If I update one control, I’d have to remember to do it in four places

I’ve started experimenting with copying controls in Lua by reading a control into a table using and creating a new control with the data.

local originalControl = controls.get(1)

local copiedControlData = originalControl:toTable()

copiedControlData.slot = 7
copiedControlData.id = nil
copiedControlData.bounds = nil

local newControl = controls.create(copiedControlData)

This does generate a new dial control. I can see it update when I move the knob for the original dial, but when I move the physical knob for slot 7 (where the new control was placed), the corresponding dial control doesn’t react at all.

So I have two questions to start:

  • What am I missing in the copy process above that makes the physical knob not control the dial? Is it a small detail or am I going about making new controls the wrong way?
  • Does anyone have suggestions for a strategy to repeat/move certain controls dynamically that doesn’t involve redundant controls across multiple pages?

More info below if it helps explain the interface I’m trying to build…

BACKGROUND

The Chase Bliss Lost+Found pedal has two “sides,” each with a three-way switch to choose an effect and two control knobs Time and Modify.

The left side effect choices are Reverb, Pitch, or Warp. The right side is Delay, Synth, or Bend. The Time and Modify knobs control different parameters (detailed in the manual) depending on which effect you choose.

The Electra One is great for this because I can update the names of the virtual Time and Modify knobs (which the actual pedal interface obviously can’t do). My current preset uses the top row of controls for the left effect knobs/switches and the bottom row for the right ones.

The pedal has the ability, via two dipswitches, to replace the effect trio on the right with the one from the left (and vice versa). For example, side A contains Pitch and Reverb options, so I can’t use both at the same time. Flipping a dipswitch gives you the same effect choices on side B, so now Pitch + Reverb (or even Reverb + Reverb) is possible. I’d like to mirror that switching of sides/controls in my Electra One preset.

Thanks!

I figured out what I was missing. I needed to assign the newControl to a pot using setPot.
newControl:setPot(CONTROL_SET_1, POT_7)

This discovery may be enough for me to move forward…

1 Like