HISE Logo Forum
    • Categories
    • Register
    • Login

    Changing Arp settings with buttons ?

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 278 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.
    • DalartD
      Dalart
      last edited by

      Was looking at creating buttons to change the steps in an arpeggiator, but I have no clue on how to set up the buttons to do this.

      Using a knob was simple enough to change the value of steps but if I had 4 buttons to change from 8 steps, 16, 24 and 32, I dont know how to call for the change from each button.

      Can someone please show me how this is done ?
      Thank you to whoever has the time !

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

        @Dalart so to use a slider(knob) you'd do this:

        inline function onArpStepsControl(component, value)
        {
        	//
            Arpeggiator1.setAttribute(Arpeggiator1.NumStepSlider,value);
        };
        

        to use a button to set the number of steps to (say) 4 you'd do this

        inline function onFourStepsControl(component, value)
        {
        	//
            Arpeggiator1.setAttribute(Arpeggiator1.NumStepSlider,4);
        };
        

        HISE Development for hire.
        www.channelrobot.com

        DalartD 1 Reply Last reply Reply Quote 2
        • DalartD
          Dalart @Lindon
          last edited by

          @Lindon I see, thanks a bunch.

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

          19

          Online

          1.8k

          Users

          12.0k

          Topics

          104.2k

          Posts