17:37:46.693 onPotTouch function will be deprecated. Use onPotTouchChange instead.
If I simply replace “onPotTouch” with “onPotTouchChange” it immediately stops working. What “magic” is additionally required to maintain the functionality?
I also recognized the typo as I was looking into the API-LuaExtension. I inserted your print statement and it showed that everything seemed to work accordingly - as long as I used the “old” term “onPotTouch”. As soon as I changed it to “onPotTouchChange” it immediately stopped working. But the print statements still looked good.
I was about to give up because it worked at least but comparing both versions with your print statement solved the problem.
The previous term “onPotTouch” counted the Pots from 0 … 11 (on the MK2). The new term starts counting from 1.
I fixed the Page vs Pot mistake. Good point about 1-12. I need to come up with some general way to address this everywhere where there is a difference between the Mini and the OG mk2.
There is a bit of a hassle here. Lua uses 1-based indices, while in SysEx I stay with 0-based. I am trying to stick to that rule. eg, the change of onPotTouch was primarily motivated by making that Lua function inline with that. Not that I like it, but it is how it is now.