marc_boule
(Marc Boulé)
September 30, 2021, 3:22pm
12
Andrew showed an example here in case you missed it, and it seems to work with offsets, but perhaps it doesn’t work with negative offsets like you mentioned:
Oops! Migrate2 manual page fixed.
The intention for including the arguments was to require explicitly specifying offset and default values, e.g.
configSwitch(LEN_PARAM, 1, 4, 3, "Note length", {"Whole", "Half", "Quarter", "Eighth"};
In this case, the note length is 2^{-\text{LEN}} so it’s convenient to have a different offset than 0.
If the min/max values could be omitted, it might confuse code readers on the correct valid range of the parameter.