<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Selecting RR group with a button.]]></title><description><![CDATA[<p dir="auto">Struggling to figure out how to use a button to switch between RR groups. Does anyone have a snippet?</p>
<p dir="auto">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 :)</p>
<pre><code>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****
</code></pre>
]]></description><link>https://forum.hise.audio/topic/12556/selecting-rr-group-with-a-button</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 09:21:59 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/12556.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 May 2025 02:28:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Selecting RR group with a button. on Thu, 01 May 2025 09:20:47 GMT]]></title><description><![CDATA[<p dir="auto">@cassettedeath said in <a href="/post/102504">Selecting RR group with a button.</a>:</p>
<blockquote>
<p dir="auto">ts.indexOf(Sampler1, 2, 1)</p>
</blockquote>
<p dir="auto"><code>indexOf</code> only takes one parameter, did you mean to put that <code>)</code> there?</p>
]]></description><link>https://forum.hise.audio/post/102520</link><guid isPermaLink="true">https://forum.hise.audio/post/102520</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Thu, 01 May 2025 09:20:47 GMT</pubDate></item></channel></rss>