<?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[bypassed to 2 buttons]]></title><description><![CDATA[<p dir="auto">How can I bypassed an fx with 2 buttons.</p>
<p dir="auto">ex: when I pressed (a) button (b) button gets pressed as well bypassing the fx</p>
]]></description><link>https://forum.hise.audio/topic/973/bypassed-to-2-buttons</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 10:01:27 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/973.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 Oct 2018 03:09:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to bypassed to 2 buttons on Sat, 20 Oct 2018 16:41:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/1">@christoph-hart</a> Thanks to david a long time ago I got something like this working for something else, I reused but it didn't work in this case.</p>
<p dir="auto">// ******************** Knobs(Sliders) Mappings ********************//<br />
const var knobs = [];</p>
<p dir="auto">// 1st Parameter Mapping (fx_enabled (bypassed)//<br />
knobs[0] = Content.getComponent("fx1Knob1");<br />
knobs[1] = Content.getComponent("fx1Knob2");</p>
<p dir="auto">knobs[0].setControlCallback(knobCB);<br />
knobs[1].setControlCallback(knobCB);</p>
<p dir="auto">inline function knobCB(control, value)<br />
{<br />
for (i = 0; i &lt; 2; i++)<br />
{<br />
if (control == knobs[i]) continue; //Skip the knob that triggered the callback<br />
knobs[i].setValue(value);<br />
}</p>
<pre><code>//Dynamics.setAttribute(setBypassed, value);
Dynamics.setBypassed;
</code></pre>
<p dir="auto">}</p>
]]></description><link>https://forum.hise.audio/post/6470</link><guid isPermaLink="true">https://forum.hise.audio/post/6470</guid><dc:creator><![CDATA[Jay]]></dc:creator><pubDate>Sat, 20 Oct 2018 16:41:18 GMT</pubDate></item><item><title><![CDATA[Reply to bypassed to 2 buttons on Sat, 20 Oct 2018 16:30:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/1">@christoph-hart</a> That's good but I one both of them to do the same thing.  So that it doesn't matter which one get pressed.</p>
]]></description><link>https://forum.hise.audio/post/6468</link><guid isPermaLink="true">https://forum.hise.audio/post/6468</guid><dc:creator><![CDATA[Jay]]></dc:creator><pubDate>Sat, 20 Oct 2018 16:30:16 GMT</pubDate></item><item><title><![CDATA[Reply to bypassed to 2 buttons on Sat, 20 Oct 2018 08:42:57 GMT]]></title><description><![CDATA[<p dir="auto">Scripting is the solution.</p>
<pre><code class="language-javascript">const var SimpleReverb = Synth.getEffect("Simple Reverb");
const var Button2 = Content.getComponent("Button2");

inline function onButton1Control(component, value)
{
	Button2.setValue(value);
	SimpleReverb.setBypassed(!value);
};

Content.getComponent("Button1").setControlCallback(onButton1Control);
</code></pre>
<p dir="auto">Example:</p>
<pre><code>HiseSnippet 984.3ocuV0zaaaCFlz1Zq1ctaEnG2AUexAqyv1oeLfhA6Z63AiljFDmktaEzRzwDQhTfhJoNEEn+M5s92X+D1uicY81NsqauTTJRNUMH5vpN42Od36ie4CeIOPJbnggBIBe6iVGPQ3uwZ9ZtZ03UDFGMaBBeGq8HgJpz13Zz5.RXH0EgwU+EsCb8Zn3u+dvHhGg6PybgPGKXNzcY9LUl2fgOm44Mk3ROh4mK6GNblifOV3Ih.9T0pKJf3bJ4D59DcZUrPmwnmGhvcs1teG4o8Vbwy5bkue3Ii1sSmka5G4DIkTt5X.NBag+W3CasiKSIjyUDEEVypiDtqmuRbN2T5iYgrEdTsQOzbfSF2nwqXdtGj11BQHbsCxZhUMMw6YsGykco+rl42EGvNCQ91ItxlTp1FTp2miRSEdt5E3yPObN5UyPu6ZM2QxBTYQzb61Vy3v97RBrClmVlbQU9Gr0XAjAW0wmbJcpDLtDQ6G2s6CreT2ta8zlMZ1.1GCU1mQj1yY9AdzComQkKr+Y6XwUmSnpcVtj5nZ2xD21jPKM5LrihTJAuO.Ksv.vwB+.AGLZ2JIdKSMYbOFmZuLh6nXBtsfah2SCVJ7Z6jh7Avp6EQ2pYi2zrQ8jUoSHUcr1caSPXMqmm753osk12+xbdabsuN90q0VZrIrXLwyaAHqaeU5oWrbbeegh9Bd6sZ7lF0a71OIxxkEEJYo7nxhhpOsIuFXs4Q9KnxztSRdfpYSY4WcyjkNlVRtDE7Ybl5EAzD6LgauBDtnjdJHgqjPPHUUr.9NIBXSGDwfEotUR6DEy97yfPk.d+Bf+qylPTD8QoDJAzLfJULc2.OgdFLhybvpt0DZ3oJQPLmSzAH7WeCX8qyJ4NCWmY77gmybUqzisdGXthxNYkRa88fEKbOgOTBhDPfqfJUM6qqoE9uf0Ys9GOE9QIp0mNVAFtIbi7HpMm3oukHI.H21Xzhd7AOjoVm+VjRLFragiAKTMcCo6csNfobVULeqT.e0xy+m4axkJMsLyLyHaMqo+1W3aPpeTprJ2nwXx7sVaLJei91gBg+b1EoGq9v6e+GGLg3Gv3mj3Z31a+mCdIUsK.1KKs+XvD45q36iCdoQkl4XpjRufBaZ4pvuO.W85thu2M+JdzghHEv08HJISenY+H+4viTbnvdAmS8B0GRpnmzXr6ps0Zi4Tta2zmbjDrm1FmDrWZvuH0vm3HEuxwLNTu0dqXOv+ad7SrpCu0CrsubHpte3CuX4UNNZ41OBR0hQzuzH1tzHdXoQ7nRi3wkFwSJMhe5ZPned3yhTBeyvGD5+vosHCW
</code></pre>
]]></description><link>https://forum.hise.audio/post/6452</link><guid isPermaLink="true">https://forum.hise.audio/post/6452</guid><dc:creator><![CDATA[Christoph Hart]]></dc:creator><pubDate>Sat, 20 Oct 2018 08:42:57 GMT</pubDate></item></channel></rss>