Can FAUST have dynamic channel count?
-
I am changing the matrix connection of a scriptnode between 1 and 2 channels, Faust logically complains...
Is there a way to make it comply? Any basic example? -
@ustk where are you changing the matrix? The right click on the channel meter thing?
-
@aaronventure I'm scripting it:
const var BottomFX_RM = Synth.getRoutingMatrix("BottomFX"); // then later BottomFX_RM.removeConnection(1, 1); // or BottomFX_RM.addConnection(1, 1);
-
@ustk in that case you might want to have two copies of the dsp file, one single channel, one dual channel, and switch between them using the branch node.
-
@aaronventure Yeah thanks, in fact I placed a matrix directly in scriptnode, so when I remove a connection it doesn't change the channel count and acts as a mute instead. That did it for me.
Thanks again! -
@ustk that's even better. Nice one.