HISE Logo Forum
    • Categories
    • Register
    • Login

    Possible to get a button that is already connected to a ProcessorID to also show/hide another knob?

    Scheduled Pinned Locked Moved Scripting
    19 Posts 3 Posters 202 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.
    • J
      jeffd @Chazrox
      last edited by

      @Chazrox ah!!!

      thanks!! working now..
      ill keep going

      ChazroxC 1 Reply Last reply Reply Quote 0
      • ChazroxC
        Chazrox @jeffd
        last edited by

        @jeffd Yessuh!

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

          @jeffd said in Possible to get a button that is already connected to a ProcessorID to also show/hide another knob?:

          or do i need to use the string name?
          [0]: "TimeFree"

          Always use the name, avoid the magic numbers.

          So it would be HardcodedMaterFX3.TimeFree

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

          J 1 Reply Last reply Reply Quote 1
          • J
            jeffd @d.healey
            last edited by jeffd

            @d-healey

            this doesnt work?

            HardcodedMasterFX3.TimeFree.setAttribute(value);
            
            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @jeffd
              last edited by

              @jeffd

              HardcodedMasterFX3.setAttribute(HardcodedMasterFX3.TimeFree, value);

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

              J 1 Reply Last reply Reply Quote 0
              • J
                jeffd @d.healey
                last edited by jeffd

                @d-healey hmmm
                not working at all now.

                this works for my knob that is time synced

                Content.getComponent("KnobDelayTime").setControlCallback(onKnobDelayTimeControl);
                    
                 	inline function onKnobDelayTimeControl(component, value)
                 	{
                 	    HardcodedMasterFX3.setAttribute(1, value);
                 	    //Console.print(value);
                 	};
                 	    
                 	Content.getComponent("KnobDelayTime").setControlCallback(onKnobDelayTimeControl);
                 
                

                but now the free knob is not responding at all

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

                  @jeffd

                  HardcodedMasterFX3.setAttribute(1, value);

                  What is 1?

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

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    jeffd @d.healey
                    last edited by

                    @d-healey the parameter id for my hardcoded master effect

                    0 is the timefree delay, and 1 is the timesync delay.

                    i got everything to work this way
                    but i couldnt get it to work using the string name

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

                      @jeffd So if you replace 1 with the attribute constant, then it doesn't work?

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

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        jeffd @d.healey
                        last edited by

                        @d-healey i couldnt get it to.

                        This is how ive gotten it to work
                        probably a much better way to code this but maybe this can help someone:

                         // delay temposync
                         
                         	const var HardcodedMasterFX3 = Synth.getEffect("HardcodedMasterFX3");
                            const var KnobDelayTime = Content.getComponent("KnobDelayTime");
                            
                            const var btnDelaysynch = Content.getComponent("btnDelaysynch");
                            
                            const var KnobDelayTime1 = Content.getComponent("KnobDelayTime1");
                            
                            
                            inline function onKnobDelayTime1Control(component, value)
                            {
                            	HardcodedMasterFX3.setAttribute(0, value);
                            };
                            
                            Content.getComponent("KnobDelayTime1").setControlCallback(onKnobDelayTime1Control);
                            
                            
                         	inline function onKnobDelayTimeControl(component, value)
                         	{
                         	    HardcodedMasterFX3.setAttribute(1, value);
                         	    
                         	};
                         	    
                         	Content.getComponent("KnobDelayTime").setControlCallback(onKnobDelayTimeControl);
                         
                         
                         	inline function onbtnDelaysynchControl(component, value)
                         	{
                         	    HardcodedMasterFX3.setAttribute(2, value);
                         	    
                         	    if (value)
                         	    {
                        	 	    KnobDelayTime1.showControl(false);
                        	 	    KnobDelayTime.showControl(true);
                         	    }
                         	    
                         	    else
                         	    {
                        	 	    KnobDelayTime1.showControl(true);
                        	 	    KnobDelayTime.showControl(false);
                        	 	     	    
                         	    } 	    
                        	};
                         
                         	Content.getComponent("btnDelaysynch").setControlCallback(onbtnDelaysynchControl);
                         
                        
                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        20

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.3k

                        Posts