Hey all!
I'm trying to set up a menu that has multiple options that, when selected, will change the MIDI value sent on another button widget when the button is triggered. How do I write a script for these widgets to do this? Are variables involved?
Example to help explain:
I select "Menu item 1" in the menu widget, and the button widget's preArgs change to [3,1]. I select "Menu item 2" in the menu widget, and the button widget's preArgs change to [3,2]. And so on...
Idea 1: A script in the menu widget to change the MIDI value the button widget will send when triggered based on the selected menu item. But I don't know how to do this? VAR? Noob to JS, here.
Idea 2: A script in the button widget to assign a different MIDI value in the PreArgs to send when it sees that the menu has chosen a menu item.
Thanks in advance for any help you can provide.