I have a chain selector mapped to a macro and limited from 1 to 16 using the Ableton macro mapping.
I find that in both Max and LiveAPI object properties the macro parameter value reports as a 0..127 value.
I want to know which chain is selected when the value changes but I cant work out the conversion from 0..127 value to 1..16 without errors.
gives me close but as I mentioned, errors on certain edges.
This should be easy and straight forward, right? Am I doing it wrong?