Forum
    • Categories
    • Register
    • Login

    Detect if Stereo or Multi-Output?

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 58 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.
    • D
      daniloprates
      last edited by

      This topic got a bit lengthy, so I'm posting this question here:

      Since Engine.getNumPluginChannels() always returns the max outputs, even if it was added as Stereo, is there another way to detect if the plugin was inserted in the DAW either as Stereo or Multi-Output?

      (I'm currently implementing an UI toggle switch, but it'd be great to detect it automatically)

      dannytaurusD 1 Reply Last reply Reply Quote 0
      • dannytaurusD
        dannytaurus @daniloprates
        last edited by

        @daniloprates Different DAWs handle multiple outputs in different ways.

        I know Logic loads separate versions for Stereo and Multi-Output, and other DAWs may too. But the problem is, in Logic at least, is that even though it's loaded as a 'Stereo' version, Logic still sees all the multiple outputs, therefore you can't get a reliable number.

        In Reaper, there's no option to load a Stereo or Multi-Output version. It just loads the plugin with however many outputs are specified.

        Meat Beats: https://meatbeats.com
        Klippr Video: https://klippr.video

        D 1 Reply Last reply Reply Quote 0
        • D
          daniloprates @dannytaurus
          last edited by

          @dannytaurus so, UI toggle it is

          dannytaurusD 1 Reply Last reply Reply Quote 0
          • dannytaurusD
            dannytaurus @daniloprates
            last edited by

            @daniloprates Someone else with more experience might weigh in here but as far as I can tell, UI toggle, or combos box per sound, is the way to go.

            Meat Beats: https://meatbeats.com
            Klippr Video: https://klippr.video

            1 Reply Last reply Reply Quote 1
            • ChazroxC
              Chazrox
              last edited by Chazrox

              I think you have to manually change the output amounts by connecting/disconnecting them via script using the routing manager api's.

              Do you already have something along the lines of this...

              
              const var routing = Synth.getRoutingMatrix("masterContainer"); 
              
              //this sets 12 outputs by default. 
              for(i=0; i < 12; i++)
              {
              	routing.addConnection(i,i); // 1 to 1 channel routing // Use this function to make connections. 
              	Console.print(i); // Check outputs.
              }
              
              

              See the docs for more options to clear and reset connections.

              https://docs.hise.dev/scripting/scripting-api/routingmatrix/index.html

              https://docs.hise.dev/scripting/scripting-api/routingmatrix/index.html

              D 1 Reply Last reply Reply Quote 0
              • D
                daniloprates @Chazrox
                last edited by

                @Chazrox yes, I've added an UI toggle, so when it's on it'll route it to multiple outputs, otherwise to stereo

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

                17

                Online

                2.1k

                Users

                13.2k

                Topics

                114.2k

                Posts