E1 Mini - Four Page Preset - Easy way for buttons 3-6 to select pages 1-4?

I am making a Mini preset for the JX-3P with the Organix MIDI mod. The 32 CC parameters neatly fit four Mini preset pages of eight controls.

Hardware buttons 3 to 6 are not used. It would be great to have them directly select pages 1 to 4 for speedy navigation. Can this be done in the preset editor fairly easily? I know nothing about coding or LUA.

I know you can set up the Mini buttons to do next/previous page, but that would not be as fast.

A simple lua function should work (AI generated):

-- Maps Button 3->Page 1, Button 4->Page 2, Button 5->Page 3, Button 6->Page 4
function selectPageByButton(buttonId)
    -- Calculate target page: (3-2=1, 4-2=2, 5-2=3, 6-2=4)
    local targetPage = buttonId - 2
    
    -- Ensure the button is within the valid 3-6 range before switching
    if (buttonId >= 3 and buttonId <= 6) then
        pages.display(targetPage)
    end
end
1 Like

Thanks for that, I was just looking into some AI help when you replied. I have copied your Lua code in and sent the preset. But it is the same as before with nothing showing for buttons 3 – 6. I have also tried some Lua code from the AI I was using, but same deal.

My knowledge of the editor is limited. Just enough to throw together some CC controls.

Using AI to troubleshoot with some variations has not fixed it. But it’s no big problem, and it works quickly enough with the next/previous page buttons enabled.

The preset is here: Electra One App

I have adjusted your preset, this is a modified version with the buttons added: JX-3P (page buttons).

For your reference, this is what I have done:

  1. added momentary pads Page 1 .. Page 4 to all four preset pages
  2. the pads are configured to call pageSwitchN Lua function, where N in the function name is the page number
  3. the pads are configured as type None and the Off value is empty. That way the state of the pads is not saved to Snapshots and the page switch is triggered only when you press the button. Releasing it is ignored.
  4. Lastly, I added this Lua code to the preset:

function switchPage1(valueObject, value)
  pages.display(1)
end

function switchPage2(valueObject, value)
  pages.display(2)
end

function switchPage3(valueObject, value)
  pages.display(3)
end

function switchPage4(valueObject, value)
  pages.display(4)
end

I am finishing another larger update of the firmware and the web editor. It brings a new feature to configure the buttons to jump to the pages. But, it will be a general settings affecting the Preset content in all presets. The solution above adds the page switching directly to particular preset and does not affect others.

1 Like

Thank you for doing this and for the explanation. I can see the page buttons now, but pressing them does not change the page being displayed. When the button is pressed, it gets the highlight, but the page stays the same.

I have tried rebooting the Mini.

using my preset or your modified version?

Using your preset, ‘JX-3P (page buttons)’. I copied it to ‘My Presets’ first, then sent it to the Mini.

Edit: I sent your preset direct to the Mini, without copying first to My Presets, and now it works!

Thank you!

I just tried the upload the copy you created (in your My Presets) and it works for me too. The color of the buttons is affected by the lighting here and the camera I guess. They are actually grey.

1 Like

Thanks. I had recopied to My Presets when it was working, and deleted the original copied version. No idea why it didn’t work the first time sent. But, all is good now! Cheers!

1 Like

I have tweaked the button labels and colours now so that the currently selected page has its button obviously highlighted. It works really well, and is fast.

A group page buttons - white (grey)

B group page buttons - red

Currently displayed page button - Yellow

1 Like

If I want to convert this Mini preset for the Electra One, is it done within the same preset and use the editor split screen to drag and drop controls and labels to the 6x6 template? Or do I need to work on a clone of the Mini preset and use the split-screen to drag and drop?

At the moment I’m working on a clone because I don’t want to mess up the Mini preset.

I can successfully send the 6x6 template Mini preset to the One. But outside of the editor, the ‘Send To Electra’ button is not displayed when the One is plugged in. I guess as it is still categorized as a Mini preset. Will there be dual ‘One & Mini’ preset category?

Is it possible to change the category from Mini to One with the clone so that the preset page displays the screenshots of the One, instead of the Mini?