# Multi-channel output MIDI plugin

**URL:** <https://forum.juce.com/t/multi-channel-output-midi-plugin/16747>\
**Category:** Audio Plugins\
**Created:** [February 19, 2016, 9:22pm UTC](https://forum.juce.com/t/multi-channel-output-midi-plugin/16747 "2016-02-19T21:22:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [February 19, 2016, 9:22pm UTC](https://forum.juce.com/t/multi-channel-output-midi-plugin/16747/1 "2016-02-19T21:22:11Z")

</div>

I'm looking for info on creating a MIDI plugin that takes one channel of input and generates multiple channels of output. I guess the MPE classes do this. Are there any examples of this kind of plugin using&nbsp;JUCE? Or maybe I&nbsp;need to dig a little more..

To clarify - I can see how to generate midi events on different channels, I guess I'm looking for a way to test it in the JUCE Plugin host - does a plugin need to advertise that it generates midi events on multiple channels? Or do I need to test in another host e.g Ableton?&nbsp;

EDIT:

I think I just need to use a MIDI tranformer/ filter plugin to test this out in the Plugin Host app..

---

<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:** [February 22, 2016, 10:15am UTC](https://forum.juce.com/t/multi-channel-output-midi-plugin/16747/2 "2016-02-22T10:15:21Z")

</div>

You can look at [Arpeggiator](https://github.com/julianstorer/JUCE/tree/master/examples/PlugInSamples/Arpeggiator)&nbsp;example to see how to only process MIDI in a plug-in. However, this example only outputs on a single channel. But it should be easy enough to &nbsp;edit the code to output on multiple channels.

---

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [February 22, 2016, 5:49pm UTC](https://forum.juce.com/t/multi-channel-output-midi-plugin/16747/3 "2016-02-22T17:49:14Z")

</div>

Thanks - I actually found the plugin tutorial a really good starting point for my design. I'll take a look at the Arpeggiator example too.&nbsp;

---

<div class="post-metadata">

**Author:** ![georgemc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/georgemc/32/34_2.png) [@georgemc](https://forum.juce.com/u/georgemc)\
**Post date:** [March 24, 2016, 2:35pm UTC](https://forum.juce.com/t/multi-channel-output-midi-plugin/16747/4 "2016-03-24T14:35:53Z")

</div>

To try and start with JUCE, I zeroed in on the Arpeggiator example and successfully built it with Visual Studio. Because I am new to this, I can't work out what it is meant to do from the code alone (I couldn't find a text description anywhere, including&nbsp;google).

&nbsp;

I have successfully inserted Arpeggiator as an Audio insert into a VST synth in Cubase. I can't find anyway to make it do something? I can change the speed parameter, but nothing extra happens when I play notes for the synth via Cubase's&nbsp;virtual keyboard.&nbsp;The synth is listening to all midi inputs.

&nbsp;

No doubt this is not the intended setup?

&nbsp;

Apologies if this is the wrong place to post a newbie question.

---

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [March 24, 2016, 3:39pm UTC](https://forum.juce.com/t/multi-channel-output-midi-plugin/16747/5 "2016-03-24T15:39:12Z")

</div>

Arpeggiators process / generate MIDI not audio! So you need to insert it in a MIDI track.

---

<div class="post-metadata">

**Author:** ![georgemc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/georgemc/32/34_2.png) [@georgemc](https://forum.juce.com/u/georgemc)\
**Post date:** [March 24, 2016, 5:21pm UTC](https://forum.juce.com/t/multi-channel-output-midi-plugin/16747/6 "2016-03-24T17:21:00Z")

</div>

I expected the Arpeggiator to process MIDI too.

I was drawn to this example, because it is exactly MIDI processing I want to do in a VST, and this sounded like it would be the place to start.

I will concede that I am probably missing vital steps in the build process, and that I may have other serious misconceptions.

When you add the built Arpeggiator VST DLL to Cubase, it only appears as an Audio Insert, but I speculated that they might&nbsp;also deal with MIDI input too.

The VST synth is on a Cubase Instrument Track, and I was expecting its MIDI input to be arpeggiated, not its audio output, given the name of the built VST is&nbsp;"Arpeggiator".

However, even if my build of the Arpeggiator and its deployment in Cubase are faulty, I would appreciate an indication of what the example is meant to do, and how I can use it.

&nbsp;

&nbsp;

&nbsp;

---

<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:** [March 29, 2016, 10:25am UTC](https://forum.juce.com/t/multi-channel-output-midi-plugin/16747/7 "2016-03-29T10:25:35Z")

</div>

VST2 does not support midi effect plug-ins directly. So you need to add a fake audio channel and simply ignore it. The Arpeggiator example will break up any chord you play into the individual notes and play these notes repeatedly.&nbsp;

---

<div class="post-metadata">

**Author:** ![GabrielSouza](https://avatars.discourse-cdn.com/v4/letter/g/58f4c7/32.png) [@GabrielSouza](https://forum.juce.com/u/GabrielSouza)\
**Post date:** [June 1, 2017, 3:57pm UTC](https://forum.juce.com/t/multi-channel-output-midi-plugin/16747/8 "2017-06-01T15:57:05Z")

</div>

HI, @adamski! Any progress on your device. I was looking for a way to have 1 midi input and distribute it in multiple outs to use in a project.
