Opening a Panel When Selecting ‘Steps’ in LFO ComboBox
-
Hi friends, I'm trying to open a panel when selecting an option in a ComboBox, but I can't get it to work. When I do it from a ComboBox I created myself, there's no problem, but I want to do it from a ComboBox inside an LFO Modulator. Any help? Thanks!
HiseSnippet 1333.3oc0W0rbaaCDFT1r0lsxSRSNzC4.FeR10iGo3eTxj5opV1pUS7OZBcR6L8PBDInHlPBPSBYaUO9Yn25qS6iReDxaP6BBRQpH++jbn7.k.Vr69sK1+XuXgCMIQDiLrNZTDEY70l1i3R+19DFG0cGjwBl6SRjzXrdqsGEQRRntHCiY9I0FFyOKJ84C+v1j.B2gVrEB8FAygtGKjIK1sWqWxBB5PboGwBKc50a00QvaKBDCA7LiYcTDw48jAzCHpiUwD8yjDejwxlOeiMZPb8Z50XsFOuuqmCcsl02b8lOkrwy77ZVuw5q41zac.jewttLoH1VRjzDjwraKbGY6KNkqUvaXIr9AT0hFHaPy5s6HBbUlnZWTaeVfaubGUBBjRuB21LZ21iM2m4xFueg66AoDvEbT1AZTYR3MyDvqQY3UuD7tDHYTBRypgzCMschYQxBJJ77Ulc4vsoGAtmJCE8YQUdREy1B3Db4pgj2S6DCKFyQsMqWeE7F0quzKpZU0BtsRj3SHw3HBmFXKoQI3sv47OfJaKBiDbXQsEKNxhZtqZUr0pIfQq3KVDTyiDjPW5EX0QX7.Fmh8FxcjLAWqnC4oLUyIW5qbBIXHcopVmiUOUsTuYd3Zo6i2ZKbykNWuq54JzqLFjwKtPeNJfgalkLnB7bQpMc4lNfy9h2v5GSVboUSTjR4tMIHnODgWqrQo7MisVA+.gjdHu1RVmaMu0EV3Oljm2kRKSCAz3KkrJuK95XrFeXXeZ7JXsiM+fPr0jArlWc.a47IGsaozAE7tbl7vHJ+pxxPY9RH3tRFpfiJSCsePVncakicawYHlqpxUgeFkh6hRKy0BMVFypkw2jIC6.lKMtGbOjJkGM01M9Xg8g+xkHIHieyby0WEd79N06m2Fds1geZViPut6NJk.olY9Av2DQikLka2XG5IPcUcd97l6PSduTDAtmwAcPh9s0Uc1XK6u62ZTwhAsBIEzPOo0oLWoeA8ia4SYC7KUX+ksXRZHfuUMsgrVqihYD9f.pkM4TK6iGRhoVuhvcEgVsGlHgeRC4QR5YfTrL+ExITOQbHJJONnqqxB1qyg38EtCCHPnWCnqPLzP.JIontPJWc.tR8FnRdfuT6AplWGTkkkY9EoyJy2z3OAzOR8mdvexrSSiu0.gxsQSiuGHcRd7MT61XZUcGhoRUKJWsnqWsfECpoj9lvBJayyMoMuGoelMOmY5+aT55F4V559ehZouF11rK9TBWhk9TcYO76JT16vRAFBD43S8gWcwIz.piDu7xojWd4Uw3BKYgorDOHX1l86Sz0GMcuKnqY98c4VopANxH.kqln+kpGEOgIGUdfjOO8WefFilp3xLf8QQn2Hv5DSOdHk6LpbIJ0DQcKFnp0ezJOgHKQe7I2iN.TTYAdDEBAfI2bJO7kcnPH8Y7ASNm0iasmPDsKm.ltaYgzymjnZo.snlPLfXORnmBrcf.BpKQr6.tHlpaSUdecB93LZ0zapHjc9rW47Nbm235uyqbKiKeT50+36YUfvcOzb1aWn40OYJ5Ng3wAg+O.wOzrGS53e4I+UtD7hPexR9QSOteUyc87f5dE.bVyN+5mmY6QuRLTBIw6SjwLUaiCFFZCehjCEzNGJLqlCynhJmSutddGEaJ2Mcw+BOYDanVajQrQNQTHwIV7VG8LRpf+4R2AvDO8iulG9JPXMdpggPnP36adqiyjhZJFe58kw0tuLt98kwMtuLt48kwl2WFe1Myn5yO+wgPsXcZCBseuc0UgMF2BvXFz+AdHpSiB -
@lijas90 You can't use a control callback and processor/parameter ID. It's one or the other. So in your case you need to do everything from the callback.
-
@d-healey Phew, I think this is a bit too much for me
. I guess that I should first listen to the LFO parameter and then link it to the panel so it can be shown. -
@lijas90 In your callback you need to do 2 things.
Hide/show the panel
Set the attribute of the LFO.You're already doing the first one, so just one step to go. I have a ton of videos where I show how to set module attributes from controls - it's the same for all component (knobs, buttons, combo boxes, etc.). The only difference is that with a combobox the first value is 1, not 0.
-
@d-healey I give up… I’ve tried doing it with the LFO’s
setAttribute, but it doesn’t work either… I’ll try again later. Thanks a lot, David.const var lfo = Synth.getModulator("LFO Modulator1"); inline function panelOnSteps(component, value) { if (value == 7){ panelSteps.showControl(true); } else { panelSteps.showControl(false); } lfo.setAttribute(lfo.WaveFormType, value); }; Content.getComponent("comboVibra").setControlCallback(panelOnSteps); -
@lijas90 did you remove the processor parameter id assignment in the property editor?
-
@d-healey Exactly! That was it. Now it works. Thank you very much, David!