# setMin and setMax no longer working as before

**URL:** <https://forum.electra.one/t/setmin-and-setmax-no-longer-working-as-before/1952>\
**Category:** Bug reports\
**Created:** [March 20, 2023, 8:33pm UTC](https://forum.electra.one/t/setmin-and-setmax-no-longer-working-as-before/1952 "2023-03-20T20:33:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewIgnis](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/newignis/32/767_2.png) [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Post date:** [March 20, 2023, 8:33pm UTC](https://forum.electra.one/t/setmin-and-setmax-no-longer-working-as-before/1952/1 "2023-03-20T20:33:28Z")

</div>

I made presets before such as the one for the Korg 03R/W where the display limits of a control are set dynamically using value:setMin and value:setMax functions. But in FW3 they do not behave as before.

Before FW3 they indeed worked as new display values, using the full range of the bar to go from the new setMin value to the setMax value.

In FW3, it looks like the display limits are retained/imposed as set in the MIDI min and MIDI max of the control itself.Any value in setMin or setMax outside of the MIDI values is no longer reachable. Any value set that is within the MIDI values just limits the travel of a control.

To reproduce, load preset [Electra One App](https://app.electra.one/preset/YEiyHkzSEw8d9duJWv2Y)

In its fx page, choose ‘reverb hall’ as FX1 TYPE. This will limit the travel of reverb time (the third control on the screen) to move from 0 to 99. That used to use the full length of the bar, but as the control MIDI values go from 0 to 200, it now uses only half the bar.

The ‘eq low’ and ‘eq high’ controls on the second row are worse, as their setMin = -12 and setMax = +12. But their travel is now limited to 0 - 12 , only using the first 6% of the travel between 0 and 200.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/electraone/original/2X/6/6666cbde2b090c2929065a6ff0f9e5406e14db78.png)

---

<div class="post-metadata">

**Author:** ![oldgearguy](https://avatars.discourse-cdn.com/v4/letter/o/f4b2a3/32.png) [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Post date:** [March 21, 2023, 7:06pm UTC](https://forum.electra.one/t/setmin-and-setmax-no-longer-working-as-before/1952/2 "2023-03-21T19:06:35Z")

</div>

Martin and i had a brief exchange about this

> [@Fader min max vs MIDI min max](https://forum.electra.one/t/fader-min-max-vs-midi-min-max/1926):
>
> So what’s the relationship between the two different Min Max settings when defining a virtual fader? If I define a fader with no values at all in either, turning the encoder doesn’t do anything (as expected) If I define a Value Min/Max, the fader still does nothing. However, any MIDI data received does set the fader to the correct value when the parameterMap is changed, but moving the encoder does not change the value. If I define a MIDI Min/Max, the fader changes value as I move the encoder…

---

<div class="post-metadata">

**Author:** ![NewIgnis](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/newignis/32/767_2.png) [@NewIgnis](https://forum.electra.one/u/NewIgnis)\
**Post date:** [March 21, 2023, 8:14pm UTC](https://forum.electra.one/t/setmin-and-setmax-no-longer-working-as-before/1952/3 "2023-03-21T20:14:21Z")

</div>

Thing is: it used to work differently, so some of the former presets aren’t working anymore as supposed.

It used to work as follows: with the MIDI min / max you set the boundaries of the values transmitted, whereas with the display min/max you set how the values are displayed. The latter used the full scale of a control, and that is no longer the case.

I do think it’s a bug, as it diminishes functionality.

---

<div class="post-metadata">

**Author:** ![oldgearguy](https://avatars.discourse-cdn.com/v4/letter/o/f4b2a3/32.png) [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Post date:** [March 21, 2023, 10:11pm UTC](https://forum.electra.one/t/setmin-and-setmax-no-longer-working-as-before/1952/4 "2023-03-21T22:11:56Z")

</div>

agreed - when I first ran across that, I ended up doing a redesign to use a different way.

Also, since we’re keeping track -

if you use

`myBounds = control:getBounds()`

and then pass that to a helper to convert to a slot:

```auto
mySlot = helpers.boundsToSlot(myBounds)
print("Slot = " .. mySlot)

```

you always get 1

I wrote a quick converter function to use for now:

```auto
function cvtToSlot(bnds)
   local myX = math.floor(bnds[X] / 167) + 1
   local myY = math.floor(bnds[Y] / 90)

   return ((myY * 6) + myX)
end

```

Not sure how many people are making decisions based on where the control is located, but I found that to be useful for my PCM 70 preset.

---

<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:** [March 23, 2023, 6:57pm UTC](https://forum.electra.one/t/setmin-and-setmax-no-longer-working-as-before/1952/5 "2023-03-23T18:57:53Z")

</div>

> [@NewIgnis](#):
>
> In its fx page, choose ‘reverb hall’ as FX1 TYPE. This will limit the travel of reverb time (the third control on the screen) to move from 0 to 99. That used to use the full length of the bar, but as the control MIDI values go from 0 to 200, it now uses only half the bar.

Replicated and understood. It is a bug indeed. In FW3, only the preset “data model” gets updated but the visual component is not rebuilt. If you switch to different page and then come back to the FX page, it will work properly. I am already fixing it.

---

<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:** [March 28, 2023, 7:04pm UTC](https://forum.electra.one/t/setmin-and-setmax-no-longer-working-as-before/1952/6 "2023-03-28T19:04:12Z")

</div>

@NewIgnis @oldgearguy can you test 3.1.5 on beta. This should be resolved.

@oldgearguy - the `boundsToSlot` function (you mentioned above) is fixed too.

---

<div class="post-metadata">

**Author:** ![oldgearguy](https://avatars.discourse-cdn.com/v4/letter/o/f4b2a3/32.png) [@oldgearguy](https://forum.electra.one/u/oldgearguy)\
**Post date:** [March 28, 2023, 7:09pm UTC](https://forum.electra.one/t/setmin-and-setmax-no-longer-working-as-before/1952/7 "2023-03-28T19:09:23Z")

</div>

I should have some time later today. Thank you for addressing so many areas.

---

<div class="post-metadata">

**Author:** ![Moize](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/moize/32/4716_2.png) [@Moize](https://forum.electra.one/u/Moize)\
**Post date:** [September 14, 2026, 3:27pm UTC](https://forum.electra.one/t/setmin-and-setmax-no-longer-working-as-before/1952/8 "2026-09-14T15:27:42Z")

</div>

It’s still doesn’t work? I’m trying with that for few last hours, and it’s make me incredible sick. Values always are set to 0-127, but every parameter what i want to set has dynamic changes of increasment due to mode of working. It’s working like in topic always, and i’m not content from that. I was trying with setlabel() too, to cheat framework, but can’t get it.

[![](https://europe1.discourse-cdn.com/flex017/uploads/electraone/original/2X/c/c8d38507c59cc52c43763fe1370f4f53617d45d0.jpeg "E1") ](https://www.youtube.com/watch?v=1Gi_jZCWc3U)

---

<div class="post-metadata">

**Author:** ![Moize](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/moize/32/4716_2.png) [@Moize](https://forum.electra.one/u/Moize)\
**Post date:** [September 15, 2026, 9:49pm UTC](https://forum.electra.one/t/setmin-and-setmax-no-longer-working-as-before/1952/9 "2026-09-15T21:49:07Z")

</div>

Anyone, anything ? I’m trying with that more now, I know difference between MIDI min and MIDI max, and Value Min/Max, it would be simply if i can set it manually on Layout, but i need to implement dynamic changes from Lua code. I can set dynamic Midi send and phisically lock border for encoder like You see on video. But i can’t set it to use all range of encoder, only for few steps, like Value Min/Max do.

---

<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:** [September 18, 2026, 2:50pm UTC](https://forum.electra.one/t/setmin-and-setmax-no-longer-working-as-before/1952/10 "2026-09-18T14:50:26Z")

</div>

can you share (here or PM) a link to that preset. It would be the easiest way for me to review it. thanks!

---

<div class="post-metadata">

**Author:** ![Moize](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/moize/32/4716_2.png) [@Moize](https://forum.electra.one/u/Moize)\
**Post date:** [September 18, 2026, 3:03pm UTC](https://forum.electra.one/t/setmin-and-setmax-no-longer-working-as-before/1952/11 "2026-09-18T15:03:20Z")

</div>

Yesterday i didn’t get it again, and deleted my attempts, and i don’t have it right now. I make other things in that preset on clean version. I will back to it, i repaired glitting on the screen, and have little synchronization problem, i’m looking right now, to make it right, and will back to it soon. Maybe tonight will make it in time, and will back to it for sure. I have one more idea for that. Thanks for anwser.
