HISE Logo Forum
    • Categories
    • Register
    • Login

    Use Button to Turn Modules on and off at same time

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 263 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.
    • DanHD
      DanH
      last edited by

      Hi guys, I was hoping to script a button that would Bypass 3 Table Envelopes, whilst at the same time Enabling 3 different Table Envelopes (so you can switch between the two shapes).

      I was hoping there would be a .setEnabled function but alas it seems there is only .setBypassed; script below if anyone has any ideas...

      inline function onPITCHSHAPEControl(component, value)
      {
      //pitch
      local TEdx1 = 0 * TE1.BandOffset + TE1.Bypass;
      local TEdx2 = 0 * TE2.BandOffset + TE2.Bypass;
      local TEdx3 = 0 * TE3.BandOffset + TE3.Bypass;
      local TEdx4 = 0 * TE4.BandOffset + TE4.Enabled;
      local TEdx5 = 0 * TE5.BandOffset + TE5.Enabled;
      local TEdx6 = 0 * TE6.BandOffset + TE6.Enabled;
      TE1.setBypassed(value);
      TE2.setBypassed(value);
      TE3.setBypassed(value);
      TE4.setEnabled(value);
      TE5.setEnabled(value);
      TE6.setEnabled(value);
      };

      Content.getComponent("PITCHSHAPE").setControlCallback(onPITCHSHAPEControl);

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

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

        setBypassed(false); = setEnabled :p

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • DanHD
          DanH
          last edited by

          So close yet so far 😆

          Thank you!

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

          1 Reply Last reply Reply Quote 0
          • DanHD
            DanH
            last edited by

            Ah so doing that leaves those 3 modules in a permanent state, rather than being switchable with the button...

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @DanH
              last edited by Lindon

              @DanH

              TE1.setBypassed(value);
              TE2.setBypassed(value);
              TE3.setBypassed(value);
              TE4.setBypassed(1 - value);
              TE5.setBypassed(1 - value);
              TE6.setBypassed(1 - value);
              

              HISE Development for hire.
              www.channelrobot.com

              DanHD 1 Reply Last reply Reply Quote 0
              • DanHD
                DanH @Lindon
                last edited by

                @Lindon Perfect, thanks!!

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

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

                53

                Online

                1.7k

                Users

                11.7k

                Topics

                101.8k

                Posts