Widget value sync to text label - Missmatch

I try to display the selected mixer output via a textlabel. To display the standard label like “Output 5-6” is no problem. But i like to show only “5-6” due to the available space for the display.

I used the “MapValueToDiscreteString(Cab_Val, TextStringArray)” function and found that the calculated value is not always in sync with the selected output.

Looks like the boundaries for the change from one output to the next are not linear distributed but the MapValueToDiscreteSting function expects a linear distrbution. See the attached Picture and example rackspace.

Test Output Selection.rackspace (83.4 KB)

Any tips or tricks or hints to fix this ???