HISE Logo Forum
    • Categories
    • Register
    • Login

    Opening a Panel When Selecting ‘Steps’ in LFO ComboBox

    Scheduled Pinned Locked Moved General Questions
    7 Posts 2 Posters 16 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • lijas90L
      lijas90
      last edited by

      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
      
      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @lijas90
        last edited by

        @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.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        lijas90L 1 Reply Last reply Reply Quote 1
        • lijas90L
          lijas90 @d.healey
          last edited by

          @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.

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @lijas90
            last edited by

            @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.

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            lijas90L 1 Reply Last reply Reply Quote 0
            • lijas90L
              lijas90 @d.healey
              last edited by

              @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);
              
              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @lijas90
                last edited by

                @lijas90 did you remove the processor parameter id assignment in the property editor?

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

                lijas90L 1 Reply Last reply Reply Quote 0
                • lijas90L
                  lijas90 @d.healey
                  last edited by

                  @d-healey Exactly! That was it. Now it works. Thank you very much, David!

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post

                  17

                  Online

                  2.0k

                  Users

                  12.9k

                  Topics

                  111.5k

                  Posts