I have a menu dropdown assigned to the FlexPhraser Variation which instead of numbering from 1 to 8, numbers as 0 to 7.
In order to make this more clear to the user I’d like to create very basic script to rename/number from 1 to 8.
This is what I have so far. I believe the issue is with the “parent” component but I could be wrong.
I confirm the Flex Phraser is called FlexPhraser.
flexActiveStateValues = {0, 1, 2, 3, 4, 5, 6, 7}
flexActiveStateNames = {“1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”}flex = this.parent:getMidiModule(“FlexPhraser”)
function flexNameChanged()
flex:setParameter(“FlexPhraser.ActiveState”, flexActiveStateValues[ActiveState])
enddefineParameter(“ActiveState”, nil, 1, flexActiveStateNames, flexNameChanged)