# Is there a Max Parameter Number?

**URL:** <https://forum.electra.one/t/is-there-a-max-parameter-number/2854>\
**Category:** General discussion\
**Created:** [April 20, 2024, 10:50pm UTC](https://forum.electra.one/t/is-there-a-max-parameter-number/2854 "2024-04-20T22:50:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![javelin276](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/javelin276/32/2625_2.png) [@javelin276](https://forum.electra.one/u/javelin276)\
**Post date:** [April 20, 2024, 10:50pm UTC](https://forum.electra.one/t/is-there-a-max-parameter-number/2854/1 "2024-04-20T22:50:56Z")

</div>

Hi Guys, Is there a maximum allowed parameterNumber? I’ve got an error I can’t seem to fix. ParameterNumber 10 is somehow locking onto the sysex command for either parameter number 517 or 518. I’ve tried everything I can think of to disengage it, but nothing seems to work. I have a total of 603 parameter numbers.  
In checking further, I have a whole bunch of low-numbered parameters that are way off on the sysex command assignments. The editor says one thing, the actual sysex output is another. I have a program I wrote that can show me what the actual sysex messages are.

Version 3.6 also locks up when I load my FS1R editor, I have to revert back to 3.5.4 to get it back working again. My other test programs run under 3.6, but not my large FS1R editor.

OK. When I remove my LUA code it runs under 3.6. I’ll test blocks of it until I isolate the piece that locks it up again. When I removed all of the LUA code the low parameter numbers are working correctly again. Hmmm.

OK. The page operator button LUA is locking it up under 3.6. Here’s an example:  
function OperatorPage4 (valueObject, value)  
pages.display(5)  
end

I’ll recover and I’ll keep checking my LUA code.

OK. All my other code works, and the sysex scrambling went away! Yes!  
That means just the pages.display(#) LUA function isn’t working under 3.6.  
I can live with that for now.

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)\
**Post date:** [April 22, 2024, 6:13am UTC](https://forum.electra.one/t/is-there-a-max-parameter-number/2854/2 "2024-04-22T06:13:40Z")

</div>

> [@javelin276](#):
>
> Is there a maximum allowed parameterNumber? I’ve got an error I can’t seem to fix. ParameterNumber 10 is somehow locking onto the sysex command for either parameter number 517 or 518. I’ve tried everything I can think of to disengage it, but nothing seems to work. I have a total of 603 parameter numbers.

the parameterNumber is stored as a 14-bit number, thus 16383 is the maximum you can use.

> [@javelin276](#):
>
> function OperatorPage4 (valueObject, value)  
> pages.display(5)  
> end

I am looking at that. If you send me the link to the preset (no need to make it public, just send me the link/url on the PM), I can verify that it is the the same issue I am already looking at.

---

<div class="post-metadata">

**Author:** ![jhh](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/jhh/32/951_2.png) [@jhh](https://forum.electra.one/u/jhh)\
**Post date:** [April 22, 2024, 6:43am UTC](https://forum.electra.one/t/is-there-a-max-parameter-number/2854/3 "2024-04-22T06:43:54Z")

</div>

Is that the same as the control id in a preset? That is documented [Preset format description | Electra One Documentation](https://docs.electra.one/developers/presetformat.html#control) as having a value range of 1…432 (and checked in the remote script).

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)\
**Post date:** [April 22, 2024, 6:48am UTC](https://forum.electra.one/t/is-there-a-max-parameter-number/2854/4 "2024-04-22T06:48:12Z")

</div>

parameterNumber is property of the Message, eg CC #77 has parameterNumber = 77. NRPN #1236 has parameterNumber 1236.

I will respond on the control id in that other thread.

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)\
**Post date:** [April 22, 2024, 4:51pm UTC](https://forum.electra.one/t/is-there-a-max-parameter-number/2854/5 "2024-04-22T16:51:44Z")

</div>

> [@javelin276](#):
>
> OK. The page operator button LUA is locking it up under 3.6. Here’s an example:  
> function OperatorPage4 (valueObject, value)  
> pages.display(5)  
> end

pls, update your firmware to v3.6.1 and let me know if the issue persists. Thanks!

---

<div class="post-metadata">

**Author:** ![javelin276](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/javelin276/32/2625_2.png) [@javelin276](https://forum.electra.one/u/javelin276)\
**Post date:** [April 23, 2024, 2:01am UTC](https://forum.electra.one/t/is-there-a-max-parameter-number/2854/6 "2024-04-23T02:01:58Z")

</div>

Super! I’m back on shift work so I’ll check it in a couple of days.

---

<div class="post-metadata">

**Author:** ![javelin276](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/javelin276/32/2625_2.png) [@javelin276](https://forum.electra.one/u/javelin276)\
**Post date:** [April 26, 2024, 4:50pm UTC](https://forum.electra.one/t/is-there-a-max-parameter-number/2854/7 "2024-04-26T16:50:32Z")

</div>

That fixed it. Thanks Martin! I like the Electra One because you’re SO RESPONSIVE to our issues, Thanks!

---

<div class="post-metadata">

**Author:** ![javelin276](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/javelin276/32/2625_2.png) [@javelin276](https://forum.electra.one/u/javelin276)\
**Post date:** [April 26, 2024, 8:40pm UTC](https://forum.electra.one/t/is-there-a-max-parameter-number/2854/8 "2024-04-26T20:40:33Z")

</div>

OK, new issue. I can place 5 pages.display(#) functions in a row (LUA) and it works. When I place the 6th into the LUA code it locks up again. I have 8 functions like this, one for each FS1R Operator page.

I’m going to try placing the 6th further down in the code, away from the first 5 to see if it makes a difference… Nope. It locked up under 3.6.1 again. I’m back in 3.5.4 to get it unlocked so I can remove the error code and get the E1 back.
