# Developers

**URL:** https://forum.electra.one/c/developers/13.md?page=3

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

**Page:** 4

---

## [Emit messages?](https://forum.electra.one/t/emit-messages/3081)

<div class="topic-metadata">

**Author:** [@rkram53](https://forum.electra.one/u/rkram53)\
**Replies:** 1\
**Last updated:** [July 11, 2024, 9:35pm UTC](https://forum.electra.one/t/emit-messages/3081 "2024-07-11T21:35:21Z")

</div>

Can someone please tell me what all these initial emit messages mean I started getting from Lua complier in debug window. Program seems to work but not sure what’s suddenly generating these messages? I must have done som…

---

## [Graphics Etch-A-Sketch](https://forum.electra.one/t/graphics-etch-a-sketch/3033)

<div class="topic-metadata">

**Author:** [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Replies:** 8\
**Last updated:** [June 27, 2024, 9:39am UTC](https://forum.electra.one/t/graphics-etch-a-sketch/3033 "2024-06-27T09:39:29Z")

</div>

I was playing around with the graphics LUA example Martin posted a while ago (simple draw of box, filled rectangle, text) One of the things I wanted to do (for use in another application) was to be able to recreate the …

---

## [Os date and time functions?](https://forum.electra.one/t/os-date-and-time-functions/3025)

<div class="topic-metadata">

**Author:** [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Replies:** 3\
**Last updated:** [June 19, 2024, 9:55pm UTC](https://forum.electra.one/t/os-date-and-time-functions/3025 "2024-06-19T21:55:07Z")

</div>

Martin - did you expose the date and time functions, or were they too bulky for the Electra One OS?

---

## [Electra lua calls for reading and parsing Midi Messages](https://forum.electra.one/t/electra-lua-calls-for-reading-and-parsing-midi-messages/3007)

<div class="topic-metadata">

**Author:** [@rkram53](https://forum.electra.one/u/rkram53)\
**Replies:** 2\
**Last updated:** [June 13, 2024, 8:04pm UTC](https://forum.electra.one/t/electra-lua-calls-for-reading-and-parsing-midi-messages/3007 "2024-06-13T20:04:22Z")

</div>

I need to send send a CC (I can do that fine) to Osmose (a USB device) which will then spew out a ton of CC53 messages with preset names. Are there predefined lua functions for Elecra to read a Midi messages from a USB m…

---

## [How to stop control from resetting to default value when pot is double-tapped?](https://forum.electra.one/t/how-to-stop-control-from-resetting-to-default-value-when-pot-is-double-tapped/2961)

<div class="topic-metadata">

**Author:** [@Phommed](https://forum.electra.one/u/Phommed)\
**Replies:** 3\
**Last updated:** [June 3, 2024, 3:59pm UTC](https://forum.electra.one/t/how-to-stop-control-from-resetting-to-default-value-when-pot-is-double-tapped/2961 "2024-06-03T15:59:26Z")

</div>

I am developing a E1 preset that uses a double tap action (custom implemented using the onPotTouch event handler) on an E1 pot to send a sysex command equivalent to “please reset to your default value” to remote software…

---

## [How to prevent incoming MIDI CC from changing Parameter Map values?](https://forum.electra.one/t/how-to-prevent-incoming-midi-cc-from-changing-parameter-map-values/2897)

<div class="topic-metadata">

**Author:** [@P4U2Player](https://forum.electra.one/u/P4U2Player)\
**Replies:** 7\
**Last updated:** [May 31, 2024, 5:23am UTC](https://forum.electra.one/t/how-to-prevent-incoming-midi-cc-from-changing-parameter-map-values/2897 "2024-05-31T05:23:42Z")

</div>

Hi, I’m making a LUA script to handle incoming MIDI CC messages and Parameter Map. I want to prevent CC messages from changing Parameter Map value of the control bound to that CC#, in certain situation. Is it possible…

---

## [Stopping a Controls Function From Firing](https://forum.electra.one/t/stopping-a-controls-function-from-firing/2957)

<div class="topic-metadata">

**Author:** [@RobinC](https://forum.electra.one/u/RobinC)\
**Replies:** 3\
**Last updated:** [May 30, 2024, 11:39am UTC](https://forum.electra.one/t/stopping-a-controls-function-from-firing/2957 "2024-05-30T11:39:35Z")

</div>

I have a preset that uses quite a few virtual controls with functions assigned to them The functions are firing when the preset is sent to the Electra from the web editor or the first time that a preset is loaded on th…

---

## [Write to a Sysexblock](https://forum.electra.one/t/write-to-a-sysexblock/2954)

<div class="topic-metadata">

**Author:** [@RobinC](https://forum.electra.one/u/RobinC)\
**Replies:** 3\
**Last updated:** [May 26, 2024, 12:19pm UTC](https://forum.electra.one/t/write-to-a-sysexblock/2954 "2024-05-26T12:19:20Z")

</div>

I’m doing an editor for Novations Bass Station 2. Bulk of it is working fine I’ve got a requirement where I want to request a patch dump from the Bass Station. I want to change the last 16 bytes that I receive from it a…

---

## [Any "Intro to LUA" tutorials available?](https://forum.electra.one/t/any-intro-to-lua-tutorials-available/2924)

<div class="topic-metadata">

**Author:** [@OldManZero](https://forum.electra.one/u/OldManZero)\
**Replies:** 4\
**Last updated:** [May 18, 2024, 6:56am UTC](https://forum.electra.one/t/any-intro-to-lua-tutorials-available/2924 "2024-05-18T06:56:37Z")

</div>

Hi. I’m working on a semi-complex preset for the Alesis Andromeda and am in need of creating a few simples actions. I don’t see a way to do what I need to do in the basic web editor so I think I need to utilize LUA som…

---

## [Beta v3.5 - Hidden pages and moving controls between pages](https://forum.electra.one/t/beta-v3-5-hidden-pages-and-moving-controls-between-pages/2425)

<div class="topic-metadata">

**Author:** [@martin](https://forum.electra.one/u/martin)\
**Replies:** 6\
**Last updated:** [May 7, 2024, 4:01pm UTC](https://forum.electra.one/t/beta-v3-5-hidden-pages-and-moving-controls-between-pages/2425 "2024-05-07T16:01:43Z")

</div>

This is a demo of marking a page as hidden (Page properties in the sidebar editor) and moving controls around the pages. This particular example creates two tabs on one preset page: Oscillator and Filter. Tapping the Pa…

---

## [Beta v3.5 - Dynamic lists](https://forum.electra.one/t/beta-v3-5-dynamic-lists/2423)

<div class="topic-metadata">

**Author:** [@martin](https://forum.electra.one/u/martin)\
**Replies:** 9\
**Last updated:** [May 7, 2024, 3:57pm UTC](https://forum.electra.one/t/beta-v3-5-dynamic-lists/2423 "2024-05-07T15:57:58Z")

</div>

A preset to demonstrate dynamic changes of the Overlay lists based on the state of another control. The dynamic lists are meant to be used anywhere where meaning of one parameter changes in context of another parameter v…

---

## [Touch test example](https://forum.electra.one/t/touch-test-example/2895)

<div class="topic-metadata">

**Author:** [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Replies:** 0\
**Last updated:** [May 4, 2024, 8:51pm UTC](https://forum.electra.one/t/touch-test-example/2895 "2024-05-04T20:51:37Z")

</div>

Some touch testing First of all, any inputs from @martin or anyone else to clean up weirdness, x,y values, min/max, etc in here would be appreciated. I’m using some (probably not 100% correct) math to figure out which …

---

## [Is there an easy way to tell a momentary pad to only send the on value?](https://forum.electra.one/t/is-there-an-easy-way-to-tell-a-momentary-pad-to-only-send-the-on-value/2891)

<div class="topic-metadata">

**Author:** [@jhh](https://forum.electra.one/u/jhh)\
**Replies:** 1\
**Last updated:** [May 3, 2024, 12:36pm UTC](https://forum.electra.one/t/is-there-an-easy-way-to-tell-a-momentary-pad-to-only-send-the-on-value/2891 "2024-05-03T12:36:26Z")

</div>

Subject says it all. I noticed that a momentary pad by default sends the on value when triggered, and immediately afterwards sends the off value. Is there a (easy) way to tell the pad to NOT send the off value?

---

## [Unusual Electra One use case](https://forum.electra.one/t/unusual-electra-one-use-case/2885)

<div class="topic-metadata">

**Author:** [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Replies:** 0\
**Last updated:** [May 1, 2024, 11:53pm UTC](https://forum.electra.one/t/unusual-electra-one-use-case/2885 "2024-05-01T23:53:39Z")

</div>

I have a need to collaborate with some other folks on a development effort. They do not have all the same hardware I have. My solution was to take the Electra One preset I have for the device and turn it into an emulat…

---

## [Creating a Yamaha Checksum Byte in Lua](https://forum.electra.one/t/creating-a-yamaha-checksum-byte-in-lua/2864)

<div class="topic-metadata">

**Author:** [@Hardingmal](https://forum.electra.one/u/Hardingmal)\
**Replies:** 1\
**Last updated:** [April 26, 2024, 4:21pm UTC](https://forum.electra.one/t/creating-a-yamaha-checksum-byte-in-lua/2864 "2024-04-26T16:21:37Z")

</div>

Hi all, My first entirely Lua patch is nearly done, for the Yamaha PSS480, I’ve been working away on it for a while. The PSS 480 sends the whole patch with every control adjustment, so every control uses the same funct…

---

## [Benchmarking lua code](https://forum.electra.one/t/benchmarking-lua-code/2809)

<div class="topic-metadata">

**Author:** [@Mint-Gecko](https://forum.electra.one/u/Mint-Gecko)\
**Replies:** 2\
**Last updated:** [April 6, 2024, 4:20pm UTC](https://forum.electra.one/t/benchmarking-lua-code/2809 "2024-04-06T16:20:37Z")

</div>

Is there a way to benchmark LUA code on the E1? I tried using os.clock() but that one is unavailable. Right now, I’m commenting out code if that’s easily possible without breaking stuff but I wish there was a quicker an…

---

## [How do I optimize overlays?](https://forum.electra.one/t/how-do-i-optimize-overlays/2795)

<div class="topic-metadata">

**Author:** [@Electrolove](https://forum.electra.one/u/Electrolove)\
**Replies:** 3\
**Last updated:** [April 1, 2024, 7:09pm UTC](https://forum.electra.one/t/how-do-i-optimize-overlays/2795 "2024-04-01T19:09:48Z")

</div>

When I create an overlay, it looks something like this. local diffusion = { { value = 0, label = “0.0%” }, { value = 1, label = “4.0%” }, { value = 2, label = “8.0%” }, { value = 3, label = “12.0%” }, { value = 4, …

---

## [How do I get the current value of a control?](https://forum.electra.one/t/how-do-i-get-the-current-value-of-a-control/2792)

<div class="topic-metadata">

**Author:** [@Electrolove](https://forum.electra.one/u/Electrolove)\
**Replies:** 2\
**Last updated:** [March 31, 2024, 5:56pm UTC](https://forum.electra.one/t/how-do-i-get-the-current-value-of-a-control/2792 "2024-03-31T17:56:46Z")

</div>

I have a control with id ref#1. How do I get the current value of that control? I do not want to get the value when the control is changed, I know how to do that. I want to get it at any time from any part of my lua code…

---

## [New beta release with the graphics library](https://forum.electra.one/t/new-beta-release-with-the-graphics-library/2724)

<div class="topic-metadata">

**Author:** [@martin](https://forum.electra.one/u/martin)\
**Replies:** 7\
**Last updated:** [March 31, 2024, 2:59pm UTC](https://forum.electra.one/t/new-beta-release-with-the-graphics-library/2724 "2024-03-31T14:59:00Z")

</div>

I have just deployed a new beta release of the firmware and webapp on to beta.electra.one. It is an alpha version of the upcoming v3.6. It brings a new feature that allows preset creators to use custom controls with thei…

---

## [New way to brick it](https://forum.electra.one/t/new-way-to-brick-it/2784)

<div class="topic-metadata">

**Author:** [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Replies:** 2\
**Last updated:** [March 26, 2024, 9:22pm UTC](https://forum.electra.one/t/new-way-to-brick-it/2784 "2024-03-26T21:22:44Z")

</div>

Ok, here’s something I hadn’t seen before and I can’t recover it at the moment. LUA coding error, and on a reboot, the progress bar goes all the way to the end, but stays there. The USB Device text is constantly highli…

---

## [Squarp Pyramid to Instrument Converter](https://forum.electra.one/t/squarp-pyramid-to-instrument-converter/597)

<div class="topic-metadata">

**Author:** [@thetechnobear](https://forum.electra.one/u/thetechnobear)\
**Replies:** 2\
**Last updated:** [March 22, 2024, 3:15pm UTC](https://forum.electra.one/t/squarp-pyramid-to-instrument-converter/597 "2024-03-22T15:15:21Z")

</div>

this is small python script bit like my preset to instrument converter…( see here ) this allows Squarp Pyramid ‘instrument definition’ files to converted into instrument definitions for the Electra One It should be …

---

## [A generic function for hiding controls based on a parameter value](https://forum.electra.one/t/a-generic-function-for-hiding-controls-based-on-a-parameter-value/2744)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 0\
**Last updated:** [March 17, 2024, 12:41pm UTC](https://forum.electra.one/t/a-generic-function-for-hiding-controls-based-on-a-parameter-value/2744 "2024-03-17T12:41:54Z")

</div>

In the last V0.3 version of Electra One App, I’ve made a generic ‘hideCtrl’ function for hiding controls. In the elements of table ctrl2Hide you tell: which parameter will influence what control, based on which value…

---

## [How do I set a slider MIN MIDI VALUE and MAX MIDI VALUE to for example 0-10 in LUA?](https://forum.electra.one/t/how-do-i-set-a-slider-min-midi-value-and-max-midi-value-to-for-example-0-10-in-lua/2741)

<div class="topic-metadata">

**Author:** [@Electrolove](https://forum.electra.one/u/Electrolove)\
**Replies:** 2\
**Last updated:** [March 15, 2024, 8:05am UTC](https://forum.electra.one/t/how-do-i-set-a-slider-min-midi-value-and-max-midi-value-to-for-example-0-10-in-lua/2741 "2024-03-15T08:05:11Z")

</div>

I have a slider. I want to set the slider MIN MIDI VALUE and MAX MIDI VALUE in LUA. Are there som example code I can look at?

---

## [Access to all control attributes?](https://forum.electra.one/t/access-to-all-control-attributes/2708)

<div class="topic-metadata">

**Author:** [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Replies:** 5\
**Last updated:** [March 2, 2024, 7:57am UTC](https://forum.electra.one/t/access-to-all-control-attributes/2708 "2024-03-02T07:57:45Z")

</div>

I see that control:print() lists all the attributes associated with a control. (or similarly value:print() attributes) I would like to be able to retrieve the formatter function associated with a control ID (and maybe …

---

## [Retrieve LUA from Electra One](https://forum.electra.one/t/retrieve-lua-from-electra-one/2700)

<div class="topic-metadata">

**Author:** [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Replies:** 2\
**Last updated:** [February 17, 2024, 1:13pm UTC](https://forum.electra.one/t/retrieve-lua-from-electra-one/2700 "2024-02-17T13:13:57Z")

</div>

This has probably been asked, but I can’t find it and I’m slightly stuck … Chrome pushed an update. I update as normal, but in the process, my editing session with the Electra One is gone and reset back to yesterday mo…

---

## [Reusing the same controls or control slots for multiple tones?](https://forum.electra.one/t/reusing-the-same-controls-or-control-slots-for-multiple-tones/2691)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 4\
**Last updated:** [February 16, 2024, 6:45am UTC](https://forum.electra.one/t/reusing-the-same-controls-or-control-slots-for-multiple-tones/2691 "2024-02-16T06:45:21Z")

</div>

Imagine each voice on your synth has 4 tones All tones have the same sysex address structure, and their address values are exactly 512 apart for the same parameter. Now imagine there are too many controls to show all t…

---

## [How to add Roland Checksum for a sendSysEx \[Solved\]](https://forum.electra.one/t/how-to-add-roland-checksum-for-a-sendsysex-solved/2690)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 3\
**Last updated:** [February 13, 2024, 9:55pm UTC](https://forum.electra.one/t/how-to-add-roland-checksum-for-a-sendsysex-solved/2690 "2024-02-13T21:55:32Z")

</div>

Hi, how to calculate a Roland checksum in lua? Imagine the command looks like : midi.sendSysex (devPort, commandArray, payLoadArray,checkSum) and I need to calculate the checkSum based on the payLoadArray. What’s a g…

---

## [parameterMap vs control:getValue()](https://forum.electra.one/t/parametermap-vs-control-getvalue/2682)

<div class="topic-metadata">

**Author:** [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 4:55pm UTC](https://forum.electra.one/t/parametermap-vs-control-getvalue/2682 "2024-02-06T16:55:08Z")

</div>

If I know the parameter ID, is there any preference (performance, space, ‘the Electra Way’, etc.) reason to use one of these over the other? I know if I have to use the control to get the message to get the parameter ID…

---

## [Patching: Map incoming Sysex-Value to Midi Range](https://forum.electra.one/t/patching-map-incoming-sysex-value-to-midi-range/2667)

<div class="topic-metadata">

**Author:** [@busa](https://forum.electra.one/u/busa)\
**Replies:** 8\
**Last updated:** [February 4, 2024, 7:16pm UTC](https://forum.electra.one/t/patching-map-incoming-sysex-value-to-midi-range/2667 "2024-02-04T19:16:19Z")

</div>

Hi There I have a Fader configured with 4 Values A,B,C,D (0-3) and Midi-Range 0-127. So the outgoing Midi Values are 0 for “A”, 42 for “B” , 85 for “C” & 127 for “D”. The corresponding Sysex-Value consists only of 2 Bit…

---

## [Using closures in lua: who has examples?](https://forum.electra.one/t/using-closures-in-lua-who-has-examples/2655)

<div class="topic-metadata">

**Author:** [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Replies:** 1\
**Last updated:** [January 28, 2024, 5:38pm UTC](https://forum.electra.one/t/using-closures-in-lua-who-has-examples/2655 "2024-01-28T17:38:09Z")

</div>

Hi, as an enthusiast synth lover, I have the tendency to stretch a E1 preset to its limits, so we can do more with the synth the makers intended us to do with. That to me is the real attraction in using an Electra One. …

[Previous page](https://forum.electra.one/c/developers/13.md?page=2)

[Next page](https://forum.electra.one/c/developers/13.md?page=4)
