# How to create a plugin with audio and midi on input/ouput?

**URL:** <https://forum.juce.com/t/how-to-create-a-plugin-with-audio-and-midi-on-input-ouput/57531>\
**Category:** Audio Plugins\
**Created:** [August 22, 2023, 11:12am UTC](https://forum.juce.com/t/how-to-create-a-plugin-with-audio-and-midi-on-input-ouput/57531 "2023-08-22T11:12:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredofaure](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fredofaure/32/18205_2.png) [@fredofaure](https://forum.juce.com/u/fredofaure)\
**Post date:** [August 22, 2023, 11:12am UTC](https://forum.juce.com/t/how-to-create-a-plugin-with-audio-and-midi-on-input-ouput/57531/1 "2023-08-22T11:12:50Z")

</div>

Hello,  
i would like to create a plugin with:

- Mono audio on input,
- Stereo audio on output,
- Midi on input and output.

For this, in the projucer i selected:

- Plugin is a Synth
- Plugin Midi input
- Plugin Midi output

However when i use the plugin in Ardour, i get the following picture (red is MIDI, green is audio):

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/0/a/0a2e44a76fdb16d2be7b9103597f70f25d6fc2b1.png)  
That shows that there is no audio input.  
How to get an audio input please?  
Thanks,  
Frédéric.

---

<div class="post-metadata">

**Author:** ![KMSonnox](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KMSonnox](https://forum.juce.com/u/KMSonnox)\
**Post date:** [August 24, 2023, 8:32am UTC](https://forum.juce.com/t/how-to-create-a-plugin-with-audio-and-midi-on-input-ouput/57531/3 "2023-08-24T08:32:29Z")

</div>

Hey @fredofaure,

The plugin template has a line in the audio processor constructor that if the plugin is a synth to not add input to the plugin. You can either untick the plugin is a synth or in the plugin processor remove the if! and !end around withInput in the constructor. Either way you need to change the stereo argument for withInput to mono.

Hopefully this Helps,

Kris

---

<div class="post-metadata">

**Author:** ![fredofaure](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fredofaure/32/18205_2.png) [@fredofaure](https://forum.juce.com/u/fredofaure)\
**Post date:** [August 24, 2023, 9:03am UTC](https://forum.juce.com/t/how-to-create-a-plugin-with-audio-and-midi-on-input-ouput/57531/5 "2023-08-24T09:03:26Z")

</div>

Yes, thanks very much KMSonnox, this helps.
