<?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[Channel Routing with a Few Lines of Code]]></title><description><![CDATA[<p dir="auto">The routing matrix won't let you do anything you want elegantly (like Reaper, for example) and iterating big routings in Scriptnode can get messy.</p>
<p dir="auto">Set your desired channel count in the master matrix.</p>
<p dir="auto">Add a ScriptFX effect. In the processBlock function, simply right shift the source channel to target channels.</p>
<pre><code>// This copies channels 1 and 2 to channels 3-16
function processBlock(channels)
{
	for (i=1;i&lt;8;i++)
	{
	    channels[0] &gt;&gt; channels[(i*2)];
	    channels[1] &gt;&gt; channels[(i*2)+1];
	}
}
</code></pre>
<p dir="auto">With it being this simple in code, I why isn't there a Reaper-style XY Matrix for FX when clicking on the channels icon?</p>
<p dir="auto"><img src="/assets/uploads/files/1711867657765-962db70b-1cdf-400c-b207-51a27c179379-image.png" alt="962db70b-1cdf-400c-b207-51a27c179379-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.hise.audio/topic/9325/channel-routing-with-a-few-lines-of-code</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Nov 2026 13:10:38 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/9325.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 31 Mar 2024 06:49:58 GMT</pubDate><ttl>60</ttl></channel></rss>