HISE Logo Forum
    • Categories
    • Register
    • Login

    Channel Routing with a Few Lines of Code

    Scheduled Pinned Locked Moved Scripting
    1 Posts 1 Posters 243 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.
    • A
      aaronventure
      last edited by aaronventure

      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.

      Set your desired channel count in the master matrix.

      Add a ScriptFX effect. In the processBlock function, simply right shift the source channel to target channels.

      // This copies channels 1 and 2 to channels 3-16
      function processBlock(channels)
      {
      	for (i=1;i<8;i++)
      	{
      	    channels[0] >> channels[(i*2)];
      	    channels[1] >> channels[(i*2)+1];
      	}
      }
      

      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?

      962db70b-1cdf-400c-b207-51a27c179379-image.png

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

      26

      Online

      1.7k

      Users

      11.7k

      Topics

      102.0k

      Posts