Solo button in HISE - possible with radio group?
-
Hey there i have a simple multiband setup from the scriptnode template.
I want the user to be able to solo a band. This is possible with buttons and a radio group.
HiseSnippet 1620.3oc6Z0zTaaDFdEvRhIezlYRmd0GISyvfMzjNsGhiAbpmVHtwTlLSOvrHsFuwR6pJsJfSaO0KomZu1S8uP+Ij+.4T+Cjq8V9Gj9t6JYux1.FkBMMClY.se7p2m2m2uVKQqHgKMNVDgbJsc+PJx4p3184xtq0kv3nlqibtNdSRrjFU1LU89gj3XpGxwY1GnlvozbH8mWeu5DeB2kNbJDZGAyk90r.lb3rsp8ULe+FDO51r.qcuZsltB9ZBeQBfmYwKiBIt8H6S2hn11LXjy7a3wjhn1RhjFiblqtvqe6thC3l8uCKlsmOUMnBpMbiLS2P36oPrZVzZcY9dsxr6XDbWZMjEl0vB2DuIyiMX9grwGpWn7PIr4CmYxCuYyAuJ1vaYK3MAH4XAo4LP5F31tQrP4vUT34J3lbv4zg.ztMTL6E47B7ZBXCb4RAjdzFQvfABr3cVd4aWF90s9hNIbWISvKK3aIjzGxW7VK7CKTZgeZgxitTmNSbMkZhD99znItrxSGcbBtHOIXOZzsK+TheBcvFAyOOmhOZN01k6ZrZqMJ3M4L4CCo7iJP.kRU.+OaJpfqjZ1+5ore8DoTvQLfjwXewAHMbgAN5P3oRr.3OohML2YZDcdbW19cGQkeay0IRhJlIE9fIERijLEa4rN8oPBnIBpDdcZbOoHTaeAgBtxXcJcBV3gCf4Kdbs9CF7pvZGv7jcU.gCi6RArIUiVDFEQ7XhGDIRBMrcXFO2zSWiQqpxMdLrBIBRugPxlZKDzXrhGmJ3oXxgv6UAm8vCz3zBuTu0P78mGbViuKoUI.vwKe.EtDdI9DY9pYpR3oK.oi4JgnpSviYx91go+qUhaZg3MvsXR2tSFiyLALBYBmEXLswv0vazoC0UNDfyga73yut.Kj56AcpTdtPgIU++43g0ZCinPzBcaQKeR+EiIAg9zGAX71k2yW31qM6YzwKPmF4UWsiEc6R3bpebQpiO+TyJUNdmxiD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VOCDLy0+6hTBuoZb4Ji9t1QHH7gsqqa9a0XBVsnBtRQEb0hJ3mVTAuSQE7tEUvO6jET8eXSZ6cULOTEs0F5fPGmM3j87MEpQ+iQQdKG
Bad thing is the radio group can not be deselected to enable all bands again, is there any option that allows that?
-
-
@Straticah Broadcaster
attachToradioGroup
can do it. I didn't try but I guess so. -
@Straticah by script :
HiseSnippet 1987.3oc6Z0saabbEdVQMRlL1t0.on2tUWDPAKvHtxMonttlV+0RzJY1PGACXDHLb2ghS3tyrc2gQho0.En2jdU6s8p9JzGg9Bjq5KPts2Tj2fzyLytb2kjhljvTtsPzFBb94LmuyOy46rjrUjvkFGKhPVkewvPJx5t31C4xdGziv3nlGhrtO9DRrjFYalZ+ggj3XpGxxpzuPMgU40Q5We6S2m3S3tzroPnyDLW5ulEvjYy1pwuh46eLwi9BVPtc+nFMcE7CD9hA.dJg2EERb6StfdJQss0vHqMNxiIEQskDIMFYs99Bugs6Itja1+YrXVGepZPcTa3fLServ2SgX0rnC5w78ZkZ2wH3TZk4EJY7BuO9DlGaz7YdiuudA6LIx6OrVqH7JU.d0yCucyAuo.IqbPZcCjd.tsaDKTlshBOuGtIGBNcIfaOOTL6Es1+tD9.ArCtrV.oO83HXvHIp9Q6t6N1ve19wUp.t9Xo8WPhrMxd7Kqa+DacxPsKnxi51k5JqtkYQaX0sJJ0EQg6K4wfLuJUifXGHBBEbXP0s7EWt016TwdZultDALuEThdrK5s01e1iqzUDYWsiMimhqss6TKVsWtLR3e.w2uCjbUUv2efTB+kv8RVSYVLtOiSs6Nf6JYBt8T1VU2T0tCX+9CnaW42Uoruvk3Cp0idE3IRzcM83m2MSDPGIakHkQrNCf7EkmajquF3sh2IKTTC7EEFqrzXvPKWo7G9g1M6ZSr6ngnMK110m41m5Y+ysigrLaYOpcL0Ghevbc.SnRYV2pIftLf5xf6pJC.vtO1lY+yFgaeJ+BYOXtG9PXi5cVNCBf67YonuZlc7J1msCbJO4IItgO3CR7OOVIdxQCaRI+YpEp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pj2Buoo5QGFU27Zu1swxkXoRbRSrxGUFK25u03YCjh.fYQadugLZDZBECmQaIMTQAluaGkZ2.qYdm3LP4Zh0jkTHN4bSEmbtMNMq3TioEm1vTnxaPPvvwtPUACvqWsfA9iEcz9M30riIiNzbdUSqbYl55ymoZLqMwlomXwq0ttGNVzUddGMNKZb+v7Lu41zhy1lWZfsMGT.C2LB5IeMEd9d31ABgrGzyl9ybLwRvVuetaQoa9t3lwmoNJWhe5NgDkw5vHoHrqOkDUzBuqI7YVYwq+ZjaEG6Fu1QdkM1f79Uq42UUflxY0PS4LCZJmkhl5hEu7myszTyr72zKSjKN4bSEmtklZwamHOMkypflx4cHM08yygTe0vSMlNdGQTcGCsR82hLUiNx++hpZuUCU0dyfpZukhp5pEuD3d2RUsDcpmKN4bSEmtkpZwaoHOU0dqBpp89uEpJma.pJm2wTUNu8opb9eappq8ny8QMC1g4Zi52O.ZRS5ae5Tt8MYZ33eLoVS8Ctr3ifW3iurBdTLBMI3T+XFV0far9tlazso9697lEdNy.dKQhx9BQ+.h9KLZo9duuQ95sBHtQhycMeicJi6N5YfjYt9NaY7Ipw10m7KyGReXm65V7nlPPmkUv8VVAezxJ3OdYE7iVVA+3kUvexaVP0uPtjNBT47PUzVGoSBsrNR+y0QW2F8e.zYk0VC
-
@Matt_SF clean!
-
-
-
This post is deleted! -
-
-
@Straticah you want the whole fx to be bypassed on init, or you want all the bands to be not-soled on init?
-
@Straticah I guess the latter makes more sense... In that case, simply add this function :
inline function initMultiBand() { local attributes = [ScriptFX1.lows, ScriptFX1.mids, ScriptFX1.highs]; for(i = 0; i < grpBtns.length; i++) { grpBtns[i].setValue(0); ScriptFX1.setAttribute(attributes[i], 1); } } initMultiBand();
-
@Matt_SF ah, so it sets the values to 1 on startup for some reason its gives me an error on this part,
ScriptFX1.setAttribute(attributes[i], 1);
will have a look later thank you :) -
@Straticah David did an entire series of videos (well at least 2) on solo/mute button functionality - on his patreon.
-
Personally, the way I am solving this is to use broadcasters and attachToRoutingMatrix, to break connections in a callback function.