Create a list control with default settings, and then, using the sample from the docs:
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
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