HISE Logo Forum
    • Categories
    • Register
    • Login

    Selecting RR group with a button.

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 70 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.
    • C
      cassettedeath
      last edited by

      Struggling to figure out how to use a button to switch between RR groups. Does anyone have a snippet?

      Working on a couple of LAF delay snippets that might be helpful for people, just to say thanks for everyone being such a great help :)

      const var Sampler1 = Synth.getSampler("Sampler1");
      Sampler1.enableRoundRobin(false);
      const var ts = [1, 2];
      
      inline function onButton1Control(component, value)
      {
      	
      
      
      Sampler1.setActiveGroup(ts.indexOf(Sampler1, 2, 1));
      
      
      };
      
      Content.getComponent("Button1").setControlCallback(onButton1Control);****bolded text****
      
      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @cassettedeath
        last edited by

        @cassettedeath said in Selecting RR group with a button.:

        ts.indexOf(Sampler1, 2, 1)

        indexOf only takes one parameter, did you mean to put that ) there?

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

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

        27

        Online

        1.7k

        Users

        11.9k

        Topics

        103.4k

        Posts