I am attempting to create a context menu item that would allow users to select a different number of positions on the HIT_PARAM switch, as well as relabel those positions appropriately. But if I’m understanding correctly, the Phase_driven_multihit_envelope() function isn’t called again after the module is instantiated, and it’s not supposed to be called in process(), so I’m not sure how to proceed.
In the worst case scenario, I could use hitPattern to update the values of each HIT_PARAM position in process() (which I will have to do anyway), but without updated HIT_PARAM values, that will result in multiple knob positions having the same value, or else unusably high results (e.g. 2^15 envelopes in a single phase cycle), and the values would not be correctly labeled.