HISE Logo Forum
    • Categories
    • Register
    • Login

    Enable Parametriq Eq

    Scheduled Pinned Locked Moved General Questions
    8 Posts 4 Posters 270 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.
    • L
      lijas90
      last edited by

      Hi, does anyone know how I can activate/deactivate a ParametriqEQ with code? I want to assign it to a button, but I can't figure it out. I've tried using the properties setValue, showControl, and setBypassed. Thanks!

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

        @lijas90 You don't need to use code for this, you can connect it up in the property editor.

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

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

          @d-healey
          I already know that, but I need to do it with code because I want the Parametric EQ to activate while simultaneously making a panel that I've placed on top disappear.Thanks

          d.healeyD L 2 Replies Last reply Reply Quote 0
          • d.healeyD
            d.healey @lijas90
            last edited by

            @lijas90 I see, well setBypassed is the correct function, so show me what you tried to do with it.

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

            L 1 Reply Last reply Reply Quote 0
            • L
              Lurch @lijas90
              last edited by

              @lijas90 showControl will show/hide your panel

              To enable/disable your EQ you want to reference it in your script, reference your button, add a control callback for your button and put the nameofyourEQ.setBypassed(value); in the callback.

              From memory, when a button is off the value is 0 and when it's on it's 1. So if you find your button is switching on the EQ when the button is off, and off when the button is on, you can try (value-1);

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

                @d-healey

                Line 916, column 32: Unknown function 'setBypassed'

                const var btnOnEq = Content.getComponent("btnOnEq");
                const var PanelParametricEq("PanelParametricEq");
                
                const var PanelTapaEq = Content.getComponent("PanelTapaEq");
                
                
                inline function onBtnOnEq (component,value){
                	
                	if(btnOnEq.getValue() == 1){
                		
                		PanelParametricEq.setBypassed(1);
                		PanelTapaEq.showControl(true);
                	}else{
                		PanelParamerticEq.setBypassed(0);
                		PanelTapaEq.showControl(false);
                	}
                }
                
                btnOnEq.setControlCallback(onBtnOnEq);
                

                Thanks!

                d.healeyD rglidesR 2 Replies Last reply Reply Quote 0
                • d.healeyD
                  d.healey @lijas90
                  last edited by

                  @lijas90 You need to call setBypassed on the EQ module itself, rather than the tile on your interface.

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

                  1 Reply Last reply Reply Quote 1
                  • rglidesR
                    rglides @lijas90
                    last edited by

                    @lijas90 You need to add a generic script reference for the EQ then bypass it in the button callback

                    const var ParametriqEQ1 = Synth.getEffect("Parametriq EQ1");
                    const var Button1 = Content.getComponent("Button1");
                    
                    inline function onButton1Control(component, value)
                    {
                        ParametriqEQ1.setBypassed(value);
                    };
                    
                    Content.getComponent("Button1").setControlCallback(onButton1Control);
                    
                    1 Reply Last reply Reply Quote 2
                    • First post
                      Last post

                    15

                    Online

                    1.8k

                    Users

                    12.1k

                    Topics

                    105.5k

                    Posts