The problem is with all the different MCU clones out there and which buttons exist, and what they’re labelled as. You’d almost have to have a secondary file that contains the different device mappings via consts and then load those into the main script.
I’m just so annoyed at the ‘onchange’ bug issue currently, I had some spare time this weekend and I wanted to work on some bits myself but not going to waste my time until it’s fixed.
Steinberg need to add the ‘selected track’ style controls too, as the only way of utilising them is to build a script via the API and then add a mapping page via the surface editor, but then that makes screen/lamp feedback hard as it’s an odd ‘hybrid’ approach, and I have little faith in it not breaking either.
Excellent work though, enjoyed looking through the code and how you approached this project - very interesting. I’ve not used typescript before, only pure JS - but tempted to learn it as I do a lot of php/mysql dev nowadays.