Martin, is this message type something that the Electra supports or must it be coded like in this example? If not, can it be added in a future firmware release?
midi.sendControlChange(PORT_1, 1, 99, 0) -- msb of parameter number
midi.sendControlChange(PORT_1, 1, 98, 2) -- lsb of parameter number
midi.sendControlChange(PORT_1, 1, 38, 0) -- msb of value
midi.sendControlChange(PORT_1, 1, 6, value) -- lsb of value
This is standard nrpn, Electra One supports it
1 Like
I’m new to nrpns so could be wrong, but isn’t the lsb/msb for value backwards in this example ?
I.e., CC38 is LSB, and CC6 is MSB afaik ?
1 Like
You are absolutely right. I had to use LUA code to solve this. That’s why I asked if Electra supports this format.
1 Like
Apologies, I didn’t read properly.
But doesn’t the web editor have a swapping of msb / lsb functionality? (not at computer)
It is foreseen in E1 without lua:
For NRPN you have 2 parameters you can set:
- Byte Order changes whether CC38 is LSB or MSB (so that is what you are looking for)
- Reset NRPN determines whether you need to resend CC100 and CC101.
In the next 4 examples I’m sending value 3:
Example 1
Example 2
Example 3

Example 4

2 Likes
I made an option list with the values 0-9. When I turn clockwise, the value alternates between 0 and 1, i.e. 0, 1, 0, 1, 0 and so on.
I have tried all 4 variations and none of them work. My LUA code works. Check out the following picture.
I don’t see the difference between the behaviour of your example and my example no 4.
1 Like
The difference is that my version doesn’t output 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 when I turn the pot clockwize. It outputs 0, 1, 0, 1, 0, 1, 0, 1, 0, 1 and so on. I have no idea why. Maybe I can test your preset?
Here’s a preset where I tested the NRPN with LSB first in 3 different ways. The outcome is as expected for all 3.
There might be something different going on in yours; could it be you’ve used the same NRPN address on multiple controls, and the last only allows 2 values?