HISE Logo Forum
    • Categories
    • Register
    • Login

    one Button with many options

    Scheduled Pinned Locked Moved Scripting
    5 Posts 2 Posters 164 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.
    • T
      treynterrio
      last edited by

      Hi there, is it possible to click through multiple options with one button? for example default is EQ, first click is delay, second click is reverb, third click is distortion, fourth click is filter and then it goes back to EQ.

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

        @treynterrio Yes, you'll need a variable that keeps track of the number of times the button has been pressed and then depending on the value of that variable you perform the desired action.

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

        T 1 Reply Last reply Reply Quote 0
        • T
          treynterrio @d.healey
          last edited by

          @d-healey do you've an example? or a starting point

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

            @treynterrio I don't have an example but we can microtask it. Start with a button and a reg variable. Every time you click the button you increase the variable by 1. Once you've done it post the snippet.

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

            T 1 Reply Last reply Reply Quote 0
            • T
              treynterrio @d.healey
              last edited by

              @d-healey got it to work

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

              49

              Online

              1.7k

              Users

              11.7k

              Topics

              101.8k

              Posts