# \#lua

**URL:** https://forum.electra.one/tag/lua/6.md

[Latest](https://forum.electra.one/latest.md) · [Categories](https://forum.electra.one/categories.md) · [Tags](https://forum.electra.one/tags.md)

---

## ["Radio Button" pad group behavior: how to force visual ON state?](https://forum.electra.one/t/radio-button-pad-group-behavior-how-to-force-visual-on-state/4617)

<div class="topic-metadata">

**Author:** [@SV\_huMMer](https://forum.electra.one/u/SV_huMMer)\
**Replies:** 0\
**Last updated:** [September 26, 2026, 5:55pm UTC](https://forum.electra.one/t/radio-button-pad-group-behavior-how-to-force-visual-on-state/4617 "2026-09-26T17:55:22Z")

</div>

Hi all! I’ve been polishing my E1 MkII presets for Kinotone Ghosts and Ribbons. In both presets I used groups of pads that are calling up different modes on these pedals, and modes can be active one at a time. I didn;t…

---

## [Looking for a 16 step custom control for ARP and SEQ](https://forum.electra.one/t/looking-for-a-16-step-custom-control-for-arp-and-seq/4425)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 8\
**Last updated:** [May 27, 2026, 9:56pm UTC](https://forum.electra.one/t/looking-for-a-16-step-custom-control-for-arp-and-seq/4425 "2026-05-27T21:56:21Z")

</div>

Hi, I’m looking for someone to help me out on making a custom control that can control sequencers or ARP’s with note lists (like Waldorf does). The custom control should be 5-6 slots wide and 1 slot deep and contain th…

---

## [midi.sendNprn MIDI function does not work, or does not exist as documented in v4.1.4](https://forum.electra.one/t/midi-sendnprn-midi-function-does-not-work-or-does-not-exist-as-documented-in-v4-1-4/4422)

<div class="topic-metadata">

**Author:** [@Phommed](https://forum.electra.one/u/Phommed)\
**Replies:** 0\
**Last updated:** [May 16, 2026, 3:34pm UTC](https://forum.electra.one/t/midi-sendnprn-midi-function-does-not-work-or-does-not-exist-as-documented-in-v4-1-4/4422 "2026-05-16T15:34:06Z")

</div>

I am trying to programmatically send MIDI NPRN messages from a E1 preset, but get a lua runtime error when the code executes a midi.sendNprn() MIDI function call. Here’s my code: local nprn = (stringNum + 7) \<\< 7 + p…

---

## [\[SOLVED \]Use one fader to dynamically control other faders by changing parameter numbers](https://forum.electra.one/t/solved-use-one-fader-to-dynamically-control-other-faders-by-changing-parameter-numbers/4041)

<div class="topic-metadata">

**Author:** [@FerdiBinger](https://forum.electra.one/u/FerdiBinger)\
**Replies:** 3\
**Last updated:** [April 20, 2026, 7:41am UTC](https://forum.electra.one/t/solved-use-one-fader-to-dynamically-control-other-faders-by-changing-parameter-numbers/4041 "2026-04-20T07:41:50Z")

</div>

Hi, I am trying to implement a “smart” fader which can control several other faders, one at a time. for this I try to update the smart fader’s parameter number to match the one of the target fader to control. I have a…

---

## [LFO Machine (Data pipes Broken?)](https://forum.electra.one/t/lfo-machine-data-pipes-broken/4371)

<div class="topic-metadata">

**Author:** [@xiizoo](https://forum.electra.one/u/xiizoo)\
**Replies:** 4\
**Last updated:** [April 17, 2026, 2:27pm UTC](https://forum.electra.one/t/lfo-machine-data-pipes-broken/4371 "2026-04-17T14:27:37Z")

</div>

Hello, I’ve been working on a preset to drive up to 6 LFO’s onto Electra one MK2. Here is a summary of the features developed so far : Six independent LFOs Each LFO runs its own phase, waveform, rate, and output p…

---

## [parameterMap.modulate limitations when virtual parameters are involved](https://forum.electra.one/t/parametermap-modulate-limitations-when-virtual-parameters-are-involved/4345)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 0\
**Last updated:** [March 30, 2026, 5:49pm UTC](https://forum.electra.one/t/parametermap-modulate-limitations-when-virtual-parameters-are-involved/4345 "2026-03-30T17:49:25Z")

</div>

Hi, as I’m into LFO’s for the moment I make more use of parameterMap.modulate than before. This works rather well, provides nice visual feedback and takes care of a lot of scaling in values. However I can’t seem to pro…

---

## [Turn the 'send LFO' into a MIDI clock syncable lfo?](https://forum.electra.one/t/turn-the-send-lfo-into-a-midi-clock-syncable-lfo/4343)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 0\
**Last updated:** [March 29, 2026, 10:56am UTC](https://forum.electra.one/t/turn-the-send-lfo-into-a-midi-clock-syncable-lfo/4343 "2026-03-29T10:56:06Z")

</div>

Hi @martin , the preset ‘Send LFO’ you made (Electra One App) is really easy to understand and convert from a pipe lfo into one that can be added in other presets. It was also quite easy to add additional controls to it…

---

## [How to highlight a toggle pad](https://forum.electra.one/t/how-to-highlight-a-toggle-pad/4339)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 2\
**Last updated:** [March 24, 2026, 2:07pm UTC](https://forum.electra.one/t/how-to-highlight-a-toggle-pad/4339 "2026-03-24T14:07:09Z")

</div>

Imagine you have a temporary toggle pad for requesting a globals dump, changing a patch etc… but you need more certainty you’ve actually pressed the button, so you’re preventing yourself from pressing it a second time. H…

---

## [How to manage a multitype envelope in your preset](https://forum.electra.one/t/how-to-manage-a-multitype-envelope-in-your-preset/4335)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 0\
**Last updated:** [March 22, 2026, 11:23am UTC](https://forum.electra.one/t/how-to-manage-a-multitype-envelope-in-your-preset/4335 "2026-03-22T11:23:26Z")

</div>

Hi, this may be useful to someone somewhere. In a Waldorf Micro Q synth, one has multiple envelope modes: ADSR : classical four stage ALDSDSR : 7 stage envelope with an additional attack level, breakpoint and double d…

---

## [onPotTouch | If the recommendation from the Lua messages is followed, the function will not work](https://forum.electra.one/t/onpottouch-if-the-recommendation-from-the-lua-messages-is-followed-the-function-will-not-work/4303)

<div class="topic-metadata">

**Author:** [@HaPe](https://forum.electra.one/u/HaPe)\
**Replies:** 6\
**Last updated:** [March 10, 2026, 9:10am UTC](https://forum.electra.one/t/onpottouch-if-the-recommendation-from-the-lua-messages-is-followed-the-function-will-not-work/4303 "2026-03-10T09:10:09Z")

</div>

I get the following error message: 17:37:46.693 onPotTouch function will be deprecated. Use onPotTouchChange instead. If I simply replace “onPotTouch” with “onPotTouchChange” it immediately stops working. What “magic” …

---

## [Fader E1](https://forum.electra.one/t/fader-e1/3988)

<div class="topic-metadata">

**Author:** [@Abbes](https://forum.electra.one/u/Abbes)\
**Replies:** 15\
**Last updated:** [February 12, 2026, 10:59pm UTC](https://forum.electra.one/t/fader-e1/3988 "2026-02-12T22:59:58Z")

</div>

:level\_slider: Electra One – “Fader E1” custom faders Source : Fader E1 Hi everyone! I’m sharing a small preset called Fader E1 for the Electra One . It was designed together with ChatGPT. The idea is simple: custom fa…

---

## [Callback function on device port/channel changes](https://forum.electra.one/t/callback-function-on-device-port-channel-changes/4202)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 3\
**Last updated:** [February 10, 2026, 3:48pm UTC](https://forum.electra.one/t/callback-function-on-device-port-channel-changes/4202 "2026-02-10T15:48:00Z")

</div>

Since we have the possibility of changing the Midi Channels and Ports on the E1 itself, most of my presets don’t deal well with that option, because the devChannel and devPort are read in a variable and used on my places…

---

## [Send SysEx data to different devices](https://forum.electra.one/t/send-sysex-data-to-different-devices/4070)

<div class="topic-metadata">

**Author:** [@HaPe](https://forum.electra.one/u/HaPe)\
**Replies:** 14\
**Last updated:** [February 10, 2026, 12:33pm UTC](https://forum.electra.one/t/send-sysex-data-to-different-devices/4070 "2026-02-10T12:33:38Z")

</div>

I’ve never needed to work with more than one instrument—which is obviously called devices—simultaneously on the E1 before. Today I tried it. I spent a lot of time reading the manuals and searching the forum. Unfortunate…

---

## [Read overlay strings?](https://forum.electra.one/t/read-overlay-strings/4200)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 0\
**Last updated:** [February 7, 2026, 10:19am UTC](https://forum.electra.one/t/read-overlay-strings/4200 "2026-02-07T10:19:27Z")

</div>

Some has a lua code for the following: given a parameter and its value read out the content of the string from the current overlay, attached to that parameter and value. Purpose: retrieve in a formatting function the Vo…

---

## [Custom control for envelopes anyone?](https://forum.electra.one/t/custom-control-for-envelopes-anyone/4169)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 10\
**Last updated:** [February 4, 2026, 11:21am UTC](https://forum.electra.one/t/custom-control-for-envelopes-anyone/4169 "2026-02-04T11:21:43Z")

</div>

Has anyone designed a custom control for a 4 slot ADSR envelope ? In other words the graphical representation of the envelope is shown once and thus much larger on the screen, but there are 4 encoder pots in use immedia…

---

## [How to create a custom scale for knobs in LUA?](https://forum.electra.one/t/how-to-create-a-custom-scale-for-knobs-in-lua/4115)

<div class="topic-metadata">

**Author:** [@klaustrophil](https://forum.electra.one/u/klaustrophil)\
**Replies:** 3\
**Last updated:** [January 26, 2026, 5:12pm UTC](https://forum.electra.one/t/how-to-create-a-custom-scale-for-knobs-in-lua/4115 "2026-01-26T17:12:28Z")

</div>

I want to implement a bipolar poti which represents the following values for a target: -12, -6, -3, -2, 1, 2, 3, 6, 12. The value 1 should be the default one. Additionally, the poti should have a wider center position so…

---

## [How to react to encoder presses?](https://forum.electra.one/t/how-to-react-to-encoder-presses/4116)

<div class="topic-metadata">

**Author:** [@klaustrophil](https://forum.electra.one/u/klaustrophil)\
**Replies:** 0\
**Last updated:** [January 16, 2026, 12:41am UTC](https://forum.electra.one/t/how-to-react-to-encoder-presses/4116 "2026-01-16T00:41:17Z")

</div>

I just received my Electra Mini:) Is it already possible to react to the encoder press in LUA?

---

## [Silent Lua compilation failure at ~265KB - mk2 firmware 4.1.2](https://forum.electra.one/t/silent-lua-compilation-failure-at-265kb-mk2-firmware-4-1-2/4058)

<div class="topic-metadata">

**Author:** [@Abbes](https://forum.electra.one/u/Abbes)\
**Replies:** 0\
**Last updated:** [December 6, 2025, 2:58am UTC](https://forum.electra.one/t/silent-lua-compilation-failure-at-265kb-mk2-firmware-4-1-2/4058 "2025-12-06T02:58:45Z")

</div>

Post pour le Forum E1 Titre : Silent Lua compilation failure at ~265KB - mk2 firmware 4.1.2 Message : Hey Martin! :waving\_hand: I’m Gemini, an AI assistant helping Abbes with the E1 MSC project. We ran into something i…

---

## [pages.setActiveControlSet(controlSetId)](https://forum.electra.one/t/pages-setactivecontrolset-controlsetid/4046)

<div class="topic-metadata">

**Author:** [@HaPe](https://forum.electra.one/u/HaPe)\
**Replies:** 4\
**Last updated:** [November 30, 2025, 5:49pm UTC](https://forum.electra.one/t/pages-setactivecontrolset-controlsetid/4046 "2025-11-30T17:49:22Z")

</div>

I wonder if the subjected function still works or what I am doing wrong. I used to use the following function: … a lot i.e. for pads located in control set 2 or 3 before firmware 4.n and it always worked. Today I e…

---

## [Use Control Categories in Lua possible?](https://forum.electra.one/t/use-control-categories-in-lua-possible/4042)

<div class="topic-metadata">

**Author:** [@FerdiBinger](https://forum.electra.one/u/FerdiBinger)\
**Replies:** 0\
**Last updated:** [November 21, 2025, 11:00am UTC](https://forum.electra.one/t/use-control-categories-in-lua-possible/4042 "2025-11-21T11:00:11Z")

</div>

Hi, is it possible to access/use Categories assigned to Contols in the web editor in Lua code? the use-case I have in mind is to iterate over all controls in a given category to do stuff with them. By now I do this by…

---

## [Learning LUA for E1](https://forum.electra.one/t/learning-lua-for-e1/3989)

<div class="topic-metadata">

**Author:** [@GnOhmen](https://forum.electra.one/u/GnOhmen)\
**Replies:** 6\
**Last updated:** [November 10, 2025, 4:49pm UTC](https://forum.electra.one/t/learning-lua-for-e1/3989 "2025-11-10T16:49:43Z")

</div>

Hey everyone. Hope you are doing good. I wanna learn some LUA with focus on the E1. Where should i go or what should i read to maybe get a bit of understanding? Kalle

---

## [Showing LFO wave types in source selection lists](https://forum.electra.one/t/showing-lfo-wave-types-in-source-selection-lists/3957)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 1\
**Last updated:** [October 12, 2025, 11:12pm UTC](https://forum.electra.one/t/showing-lfo-wave-types-in-source-selection-lists/3957 "2025-10-12T23:12:42Z")

</div>

Hi all, when making a mod matrix, you typically assign sources such as LFO’s to a destination. I use selection lists for this that then stipulate if I choose “LFO1” or “LFO2” as a source. But ideally, since I already a…

---

## [KnobConnector: Control any plugin with your E1 in REAPER 7](https://forum.electra.one/t/knobconnector-control-any-plugin-with-your-e1-in-reaper-7/3251)

<div class="topic-metadata">

**Author:** [@Mint-Gecko](https://forum.electra.one/u/Mint-Gecko)\
**Replies:** 33\
**Last updated:** [October 5, 2025, 1:14pm UTC](https://forum.electra.one/t/knobconnector-control-any-plugin-with-your-e1-in-reaper-7/3251 "2025-10-05T13:14:35Z")

</div>

I’ve been working on a project for Reaper and Electra One users: KnobConnector. It’s a control surface plugin that organizes all parameters of a track’s plugin into a logical hierarchy, making it easier to navigate and c…

---

## [sendNrpn broken: workaround](https://forum.electra.one/t/sendnrpn-broken-workaround/3310)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 9\
**Last updated:** [August 27, 2025, 4:33pm UTC](https://forum.electra.one/t/sendnrpn-broken-workaround/3310 "2025-08-27T16:33:54Z")

</div>

have been using sendNrpn in the past, but now it’s throwing errors: error running function 'runFunction': ctrlv2/slots/p065.lua:26: bad argument #0 to 'sendNrpn' (number expected, got table) In line 26 I’ve got the fol…

---

## [Some difficulty with accessing messge and value](https://forum.electra.one/t/some-difficulty-with-accessing-messge-and-value/3890)

<div class="topic-metadata">

**Author:** [@1overf](https://forum.electra.one/u/1overf)\
**Replies:** 3\
**Last updated:** [August 25, 2025, 5:48am UTC](https://forum.electra.one/t/some-difficulty-with-accessing-messge-and-value/3890 "2025-08-25T05:48:40Z")

</div>

I’ve been trying to access a control during a midi callback function. I need to find the parameter id number so I can use parameterMap.set (). I tried using the following which didn’t work: local control = controls.get…

---

## [Preventing parameter map changes to send back MIDI messages during parsing](https://forum.electra.one/t/preventing-parameter-map-changes-to-send-back-midi-messages-during-parsing/3822)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 0\
**Last updated:** [July 21, 2025, 6:04pm UTC](https://forum.electra.one/t/preventing-parameter-map-changes-to-send-back-midi-messages-during-parsing/3822 "2025-07-21T18:04:12Z")

</div>

Hi, I’m testing parsing via own matrices (not via the parsing allocation of the webeditor) for rather complex sysex responses. Via midi.onSysex, I manage to convert the received sysex bytes into parameter values. I do …

---

## [LUA; how do I retrieve the MIDI channel from a valueObject?](https://forum.electra.one/t/lua-how-do-i-retrieve-the-midi-channel-from-a-valueobject/3790)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 2\
**Last updated:** [July 6, 2025, 10:34am UTC](https://forum.electra.one/t/lua-how-do-i-retrieve-the-midi-channel-from-a-valueobject/3790 "2025-07-06T10:34:41Z")

</div>

LUA; how do I retrieve the MIDI channel from a valueObject?

---

## [Can a LIST determine the Channel some Fader sents MIDI to?](https://forum.electra.one/t/can-a-list-determine-the-channel-some-fader-sents-midi-to/3652)

<div class="topic-metadata">

**Author:** [@Llorgos](https://forum.electra.one/u/Llorgos)\
**Replies:** 1\
**Last updated:** [April 21, 2025, 6:14pm UTC](https://forum.electra.one/t/can-a-list-determine-the-channel-some-fader-sents-midi-to/3652 "2025-04-21T18:14:52Z")

</div>

Hi all, I have a LIST set for switching the 8 channels of my OP-XY. This hapens within Channel 1 and CC 102. I was wondering, is it possible to force the following 4 FADERS which listen to CC 12-15 to change their chan…

---

## [How to handle non existing parameters?](https://forum.electra.one/t/how-to-handle-non-existing-parameters/3564)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 1\
**Last updated:** [February 18, 2025, 10:08pm UTC](https://forum.electra.one/t/how-to-handle-non-existing-parameters/3564 "2025-02-18T22:08:49Z")

</div>

Usually in lua, it’s easy to test if a certain variable is not defined, and prevent it from being processed. For instance: if table\[i\] then result = result + table\[i\] will keep on working even if certain member of tab…

---

## [Set multiple controls at once back to their default state?](https://forum.electra.one/t/set-multiple-controls-at-once-back-to-their-default-state/3525)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 2\
**Last updated:** [January 30, 2025, 9:46pm UTC](https://forum.electra.one/t/set-multiple-controls-at-once-back-to-their-default-state/3525 "2025-01-30T21:46:59Z")

</div>

Hi all, I want to implement an init instruction, that would send an init Sysex dump into a synth’s memory. Simultaneously there will be a set onf controls in the E1 I should set back to its default state (I can’t have t…

[Next page](https://forum.electra.one/tag/lua/6.md?match_all_tags=true&page=1&tags%5B%5D=lua)
