# Multi-Input Multibus

**URL:** <https://forum.juce.com/t/multi-input-multibus/22645>\
**Category:** Audio Plugins\
**Created:** [May 28, 2017, 3:10pm UTC](https://forum.juce.com/t/multi-input-multibus/22645 "2017-05-28T15:10:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [May 28, 2017, 3:10pm UTC](https://forum.juce.com/t/multi-input-multibus/22645/1 "2017-05-28T15:10:02Z")

</div>

Hi @fabian and all interested ones,

my plan is a plugin that will mix 32 stereo buses into one stereo output.  
I tried the obvious and added

```auto
MyAudioProcessor::MyAudioProcessor()
     : AudioProcessor (BusesProperties()
                       .withInput ("Input #1", AudioChannelSet::stereo(), true)
                       .withInput ("Input #2", AudioChannelSet::stereo(), true)
                       .withInput ("Input #3", AudioChannelSet::stereo(), true)
                       // [...]
                       .withInput ("Input #32", AudioChannelSet::stereo(), true)
                       .withOutput ("Output", AudioChannelSet::stereo(), true)
                       )

```

But that doesn’t work. I understand that is also a matter if the host supports that. So my question:

1. Is this supported by JUCE (5.0.1)?
2. Which host supports that?

I realised, that Pro Tools does not, I think I read that only one mono side chain is supported. Is that correct?  
I also tried Adobe Audition, no luck with neither VST3 nor AU.  
Garageband didn’t show any routing options at all, but I think that was to expect, given that they want to sell logic.  
Speaking of, unfortunately I don’t have logic at hand… would that support multi stereo input buses?

Thanks for all hints, have a good rest-weekend!

Daniel

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [June 6, 2017, 6:22pm UTC](https://forum.juce.com/t/multi-input-multibus/22645/2 "2017-06-06T18:22:51Z")

</div>

Bumping: is this actually the right way, or should I rather call addBus later?  
And in which host is this setup supported? Where can I check this?  
I think it is the way how ReaSurround in Reaper plugin works e.g.

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [June 7, 2017, 11:35am UTC](https://forum.juce.com/t/multi-input-multibus/22645/3 "2017-06-07T11:35:50Z")

</div>

Hi @daniel,

JUCE does support this but I don’t think you will have any luck with any of the major DAWs. I know that Logic Pro only supports max one sidechain bus. The same is with ProTools and Cubase. I think the only host that supports 32 input buses is Reaper and JUCE’s audio plugin host ☹.

Also, you don’t need to list all 32 input buses in your constructor. You can also do something like this:

```
class MyAudioProcessor
{

     MyAudioProcessor()
         : AudioProcessor (getBusesProperties())
    {
        .
        .
        .
    }

private:
     static BusesProperties getBusesProperties()
     {
         BusesProperties buses;
         buses.addBus (false, "Output", AudioChannelSet::stereo());

         for (int i = 0; i < 32; ++i)
             buses.addBus (true, "Input #" + String (i + 1), AudioChannelSet::stereo());

         return buses;
     }
};
```

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [June 9, 2017, 10:50am UTC](https://forum.juce.com/t/multi-input-multibus/22645/4 "2017-06-09T10:50:13Z")

</div>

Thanks @fabian, good to know how it is meant to work. Nice idea using the static method.

Too bad, that there is (almost) no support in hosts.  
Might end up writing a host just because of this ☹

Cheers
