HISE Logo Forum
    • Categories
    • Register
    • Login

    Can FAUST have dynamic channel count?

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 138 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.
    • ustkU
      ustk
      last edited by ustk

      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?

      Can't help pressing F5 in the forum...

      A 1 Reply Last reply Reply Quote 0
      • A
        aaronventure @ustk
        last edited by

        @ustk where are you changing the matrix? The right click on the channel meter thing?

        ustkU 1 Reply Last reply Reply Quote 0
        • ustkU
          ustk @aaronventure
          last edited by

          @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);
          

          Can't help pressing F5 in the forum...

          A 1 Reply Last reply Reply Quote 0
          • A
            aaronventure @ustk
            last edited by

            @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.

            ustkU 1 Reply Last reply Reply Quote 1
            • ustkU
              ustk @aaronventure
              last edited by

              @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!

              Can't help pressing F5 in the forum...

              A 1 Reply Last reply Reply Quote 0
              • A
                aaronventure @ustk
                last edited by

                @ustk that's even better. Nice one.

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

                26

                Online

                1.7k

                Users

                11.8k

                Topics

                102.8k

                Posts