Fundorin
Suggest taking a look at Raymond Radet's advice at
https://www.extremraym.com/en/reascript-guidelines and especially the code hierarchy of need at
https://www.extremraym.com/en/reascr...rarchy_of_Need before writing too much code all at once.
Compact code is beloved of some programmers, but sometimes it is better to be functionally sound and easy to understand, especially when someone else wants to read your code, or even you look back at your own code a few weeks later.
There are lots of tutorials there too that may help the EEL2 and scripting learning if wishing for Lua. There's also EEL2 coding examples to learn from in
https://github.com/X-Raym/REAPER-ReaScripts. "Good luck" once again and great to see progress now possible for the Novation!