# Overlay odd behavior. MK2 Firmware 3.5

**URL:** <https://forum.electra.one/t/overlay-odd-behavior-mk2-firmware-3-5/2520>\
**Category:** Bug reports\
**Created:** [November 6, 2023, 11:01pm UTC](https://forum.electra.one/t/overlay-odd-behavior-mk2-firmware-3-5/2520 "2023-11-06T23:01:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaltar](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/kaltar/32/1051_2.png) [@Kaltar](https://forum.electra.one/u/Kaltar)\
**Post date:** [November 6, 2023, 11:01pm UTC](https://forum.electra.one/t/overlay-odd-behavior-mk2-firmware-3-5/2520/1 "2023-11-06T23:01:30Z")

</div>

Create a list control with default settings, and then, using the sample from the docs:

```auto
local listReverbTypes = {
    { value = 1, label = "Room" },
    { value = 2, label = "Hall" },
    { value = 3, label = "Plate" },
    { value = 4, label = "Spring" }
}

overlays.create(1, listReverbTypes)
controls.get(1):getValue("value"):setOverlayId(1)

```

The list will offer the options:

- 0
- Room
- Hall
- Plate

0 appears, and ‘Spring’ is not seen.

If we set the list control MIN MIDI VALUE to 1 we get:

- Room
- Hall
- Plate

‘Spring’ is not seen! Even if is the number 4

The only solution is to always add an extra element with value 0 to the overlays AND set the control MIN MIDI VALUE to 1

```auto
local listReverbTypes = {
    { value = 0, label = "Will not appear" },
    { value = 1, label = "Room" },
    { value = 2, label = "Hall" },
    { value = 3, label = "Plate" },
    { value = 4, label = "Spring" }
}

```

- Room
- Hall
- Plate
- Spring

---

<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:** [November 11, 2023, 11:14am UTC](https://forum.electra.one/t/overlay-odd-behavior-mk2-firmware-3-5/2520/2 "2023-11-11T11:14:46Z")

</div>

I tested that briefly (and only on MK1) and I did not get that behaviour. I will look at that in more detail.

---

<div class="post-metadata">

**Author:** ![kiwigrass](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/kiwigrass/32/4983_2.png) [@kiwigrass](https://forum.electra.one/u/kiwigrass)\
**Post date:** [November 7, 2024, 9:26pm UTC](https://forum.electra.one/t/overlay-odd-behavior-mk2-firmware-3-5/2520/3 "2024-11-07T21:26:36Z")

</div>

I can confirm the same behavior. It appears that a value = 0 has to be in the overlays list or else another value is excluded when the overlay is set. In my case:

```auto
local noteList2 = {
   { value = 0, label = "this won't appear" },
   { value = 1, label = "1/1" }, { value = 2, label = "1/2" }, { value = 3, label = "1/4" },
   { value = 4, label = "1/8" }, { value = 5, label = "1/16" }, { value = 6, label = "1/32" },
   { value = 7, label = "1/4T" }, { value = 8, label = "1/8T" }, { value = 9, label = "1/16T" }, 
   { value = 10, label = "1/4D" }, { value = 11, label = "1/8D" }, {value = 12, label = "1/16D" }
   }
  overlays.create(1001, noteList2)
  local control3 = controls.get(74)
  local ctrlValue3 = control3:getValue ("value")
  ctrlValue3:setRange (1, 12,1, true)
  ctrlValue3:setOverlayId(1001)

```

This works. But if I don’t include { value = 0, label = “this won’t appear” }, then value = 6 is skipped and the last label “/16D” is not shown. Just FYI.
