Embedded Scripting Engine!

something like this?
https://forum.renoise.com/t/idea-for-a-simple-advanced-edit-scripting/18824