MIDI trigger animation from script processor
-
Hi,
I would like to trigger an animation (currently a two states button) in the interface.
I can do it from the noteOn/noteOff in the main interface script, but, because I already have some script processor with certain behaviours, I would like to use them in order to trigger the button in the main interface.In this snippet, I link the buttons with two other buttons in a script processor. They work when clicking on the buttons, and when the script processor buttons triggered by MIDI. The problem is, when triggered by MIDI, the main interface buttons don't follow!
I know how to control buttons in a script processor from the main interface (scriptProc.setAttribute(n ,1)), but I can't find the opposite
Also, it would be amazing if I can trigger a note from the buttons in the main interface (for a sample/preset preview like function)HiseSnippet 1154.3oc4X0saaaCElx1Zc1coqcqXXWJTLLXCjUH6z0Ufff5DG6BiUmXDmjs6JXjosIhDoFEk2LJJvdF1k6p8drmj8Vz2fsCojsjyTbrRZ5.57MF77G+NGd3QeR8EbGRP.WfLJe7LeBx3SLGLiImzZBlxPc2GY7ol8nCo6xndXIkyP6MyGGDPFhLLJ9BkQFkKgz+d6y2C6hYNjDQHzobpC4kTOpLQZ+leO00sCdH4XpWJqeRytNbVKtKOD.TQSajO14b7XxAXkYELQFeT6gTIWLPhkj.jQo83CmMXB+mYQ1eJMfdlKQsnNZ.DnHwc3tCUHVIE0ZB0cX+4Id.BYX1OoLTLpL7PcVuPdR439ZEVIdjtdXTXUvq9UCO6rfWgTvqTD7df4.GA0WlnQgs6Z1kIIhQX3HHMrhrEY7mls3fAL4i8vmS5HfEKbn5V11aZ0v1t11iBYNpiZKN6.tjbHqZsJutR4JuoxE0LZTVpTahf65RDYoUcjKVgaUYgdmQDaZME6FRlaGj4KWZMWuRqSTBmxPNqKiJOzmvtr9ATbURU5iAEXpTW3uWbgeuPoDtLPg5aYynE0QZDmt4GkC2ajg6mzcerDC3vHFR.L8IBIUUAL1mLEtaE0PT1beRv4RtuFyd9blJALLWCT+KIa4lMmsXwudRSZPOtGDGr.DaT.kq.2HUf+iyVcfW2F7OOVZx0u5Y0nW32KXBG7ARnGRXEmmV6XMu6eLQtHUp9nX8Op11aT4hd03J7pg1qMpbIWYnirp1CvILBS4tR0A5t6p0r1YGqsdZsWuQkxVvu3+hwxiCHxSUcCUqqhuVUkxuwh3FPrtpf9rrCZiKFzEAbt4yCJcLiKHsmpxSo.tCtMX5Jt8eyyR6airz9FmkuWFjU4cyfLaz7VujQaKNmRaTRRkVpNYxvrDQePOm7N4aN4jTiyPecS+4EktCW9gv9XAvbAV0coHsh4p2IWyUaN8l.jFnqdNLP2gOLzEKWlCjh3WrhKxITsor.pbVZhg4fXj8Zyaacg6CL6SkNSxFuEx.upF5aY7FSybCy1iFQbjIfsjYme75xo75Ak6EAk6ZNfxHZx+Zf7E50V+.dJw5EDFQnJp0uL5+Vy9qeaco+6u1z+OzQBa+wBLKvmGjNvMGP7nGCWZBRuamD.rZI+zQpS4zxawwhLU81m2ARxL8Y.VFJzsK65wCYxkZOJdavyuz+AuFx69aa27gCEWO3lQEzn++58YuOzF646RZylRbgGJnw3mAOEXDNzUNW5x8083Lt+DNi5j9P+HhTPGOlHRi8LSnckR38VSj7vlGQbI3zMveUyWBMdXATmHWyZQ80uVrpyquzLBtVpKiVeXLTu3+OGpeDOTRYi6ggFUfjfIPXd.LK0g.Hgw.VvfL3o7JW0qsUq0y5Hrg5E+M7KVYc0ZiXk0mq78xd3gcD7W4DwIT0K+wZIPdyzeHnxl8TqsVvjTUa7f4guxwQUr+Fn5jsGMxsGakaOdRt83aysGOM2d7c41imsBOzeRvPIO9aBBB52VSA2vnMCCct5tbz+.Uw34O
Thanks
-
I just had to call component.changed() in the Script Proc...
But the line that helped a lot once added to my main script was startThinking.setValue(1) -
Hi
I still have an issue here...
Everything's fine inside Hise, but the exported standalone or VST doesn't animate on MIDI notesCould anyone try this snippet please? And the exported result...
HiseSnippet 1203.3oc4X0saZbDEdVvaSfTRSZip5kqrppvRNQ.NMMRQVAaLNB0fMx3316hFu6.Lx6Ny1YGnEEEo9Lzmf9Z02h7FzdlY2kcvYACIwVUsbC572b9lyebF5I3tjnHt.YU5zogDj0ma2eJSNp0HLkg5b.x5Kr6R8n6w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cO+P3RlqM8wxwBc4xdA7wL4bkGEW4bxZ7ppM9W8qpt4FNTb0faNQPqdu2yyuGTFGD5SZylP7gePPiwuD9EfA3w9xTtyWW2ky3gi3LpqYR+DhTPGNjHLwdtWn8jR3Y3YbdPySH9DrYA7217kPgGV.wIxGXrn9pGKVV95arigqipYz4+FC0K9+yg5mvGKorgcwPgJrhfMrEceXVpKAPBiAa.C7fWzoLUSWSQqm0QXdZh+F9jHrth1JQX8Tg2H9H.6J3u1MdePUs7s0bf6MS++ZUxtqh1Y1VjpXS.LO70ttpf8CgnS9VzXssXm01hGu1V78qsEOYss3GVaKd5RrP+ObNVxS9KNAF8ZqW+1xpMCCUt5pbz+.1ZFqA
Thanks!
-
declaring the animation buttons as GLOBAL fixed the issue, no need for using intermediary buttons in the midi script proc...