HISE Logo Forum
    • Categories
    • Register
    • Login

    Toggle Button States & Automation

    Scheduled Pinned Locked Moved Newbie League
    8 Posts 4 Posters 87 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.
    • A
      aralbar
      last edited by

      Hello friends,

      Have a button that turns my plugin on and off. However, when automating this in a DAW, it shows up as a floating value (%100 to 1%).

      Just wanted ON OFF states for my toggle automation. Is this achievable?

      Tried a couple of things to no avail. Any help is much appreciated.

      Thanks

      LindonL ChazroxC 2 Replies Last reply Reply Quote 0
      • LindonL
        Lindon @aralbar
        last edited by

        @aralbar so buttons have a 0 or 1 value - what you are describing seems to be (at best guess) a slider...

        HISE Development for hire.
        www.channelrobot.com

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

          @Lindon All parameters have a range of 0 - 100 I think, regardless of the control type. I recall it being brought up on the forum a while back.

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

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @d.healey
            last edited by

            @d-healey said in Toggle Button States & Automation:

            @Lindon All parameters have a range of 0 - 100 I think, regardless of the control type. I recall it being brought up on the forum a while back.

            so its a DAW issue then not HISE..?

            HISE Development for hire.
            www.channelrobot.com

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

              @Lindon Maybe, I'm not sure

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

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

                @aralbar You could just script some hard values.

                inline function onYourButtonControl(component, value)
                {
                	if (value == 0) // Up
                	{
                		YourTarget.setValue(0); // or whatever value you want... 
                	}
                	if (value == 1) // Down
                	{
                		YourTarget.setValue(1); // or whatever value you need...
                	}
                };
                
                Content.getComponent("YourButton").setControlCallback(onYourButtonControl);
                
                

                But im curious.... What are you turning off that even accepts a value from 1-100 though? Any built in buttons only accept a value of 0 || 1as far as anything I've seen so far.

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

                  @Chazrox It's parameter automation in a daw.

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

                  1 Reply Last reply Reply Quote 0
                  • A
                    aralbar
                    last edited by

                    Thanks all for responding and suggestions. Will try a couple more stuff and keep you posted.

                    I also thought that buttons had two states (0 or 1) but that isn't the case; at least from an automation parameter perspective.

                    I've definitely used a button not a slider and the automation values are all from 0 to 100. On above 50 and off below. Most plugins do allow ON OFF automation states so was trying to achieve that.

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

                    28

                    Online

                    1.7k

                    Users

                    11.8k

                    Topics

                    102.7k

                    Posts