@Christoph-Hart @d-healey thanks mates!!!! Sorry for the delayed answer I was out of the town.
This works neat. But I need the user to be able to assign macros with Engine.setFrontendMacros Is there a way to do that?
Screen Recording 2024-01-29 at 10.36.24.gif
HiseSnippet 1536.3oc6X80aaTDDeujrzZWZgR4Ij.cJhGbEoV9hSbhUET27WEZRqKNszR.kt4t01K4tcM2sNsVHjh3MdhOC7NeHp3S.eDP7HOw2fvr6cm8d4e0oIMDgvObxyryNyuc1YlcmsdnvkFEIBQV4VuWGJx5swM5wksmuMgwQqr.x5Z30HQRZncLq450gDEQ8PVVitrhgUtwP5e+8cli3S3tzArPnGKXtzUYAL4.t0qcOlu+RDO55r.Comp1JtB97BeQW.OihKg5Pb2lzhdehRrQvHq2ZQOlTD1PRjzHj0XyI750ns347X4eLKhskOUQ3fZ.JJl8RBeOEhUbQy2l46UOccGgPV35C7BiF6Ede7ZLOVe9C7Fuqd.6AyvzeXMRV3MZF34XBuRFv6PfjkAjFKFRWG2vMj0QNXDEdtBdENr4zj.tcSnDKKZjOeD77BPBtrX.Ya5Rg.Q+YTnRoRSXCet4symGb8QR6cHg1gA1ep8h7VLNsXKpbYewVD+uPzUx3sVivgMjvBvLRjHhJ0Zkx8Vi3FJhJrw35+3bKkkCE9i+MY0efCn+v.ktmm.9iBIxONHVfSQPPN0UttH1vqI755S.uJHly3SXKC6RypuF9LOZXcHVQo3zkqR6hfNBNPTXbCYTlIeHsksJ5ZEtG8EvrlB3w39vBxtYWtqjI31BdLtJrCwGrY9uOeNC0nV3wj2Up0Rg95aB63Yb67+Pd0JBLFSkBMOw2eKPnBoZdBaHYy89BIqIyknL5Musg4gAnOfWPaYPU16enlMOzwRb69psoCYXURW3wMwB7tAaQCSWEoBBQhYCuwGc3sY1ma7FhgfB9Jbl7Acn7iJmDkrKBoB4SPEXdoNQ38RRDFrWfXPL+UwFaNHMzAHZops3QjDj0F3JSUD907STeqNO7o7Czzqt8rKOiAsw38VsWX05s9tkmNld8xS2xj9am6K6VsXLd0fbzX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