# Example of a simple VST Host

**URL:** <https://forum.juce.com/t/example-of-a-simple-vst-host/10751>\
**Category:** Audio Plugins\
**Created:** [July 9, 2013, 12:43pm UTC](https://forum.juce.com/t/example-of-a-simple-vst-host/10751 "2013-07-09T12:43:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhjdhj](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dhjdhj/32/39_2.png) [@dhjdhj](https://forum.juce.com/u/dhjdhj)\
**Post date:** [July 9, 2013, 12:43pm UTC](https://forum.juce.com/t/example-of-a-simple-vst-host/10751/1 "2013-07-09T12:43:31Z")

</div>

Is there an example de minimis that shows how to build a VST Host with Juce? The sample is quite sophisticated and very powerful, but it’s extremely hard to figure out exactly what is needed to just create a basic host that will let you instantiate a single VST and communicate with audio and MIDI ports.

Thanks

---

<div class="post-metadata">

**Author:** ![falkTX](https://avatars.discourse-cdn.com/v4/letter/f/9f8e36/32.png) [@falkTX](https://forum.juce.com/u/falkTX)\
**Post date:** [July 9, 2013, 4:40pm UTC](https://forum.juce.com/t/example-of-a-simple-vst-host/10751/2 "2013-07-09T16:40:01Z")

</div>

the vst sdk has an example of a host.

I have working vst-host code here:  
[https://github.com/falkTX/Carla/blob/master/source/backend/plugin/VstPlugin.cpp](https://github.com/falkTX/Carla/blob/master/source/backend/plugin/VstPlugin.cpp)  
But I wouldn’t call it simple…

---

<div class="post-metadata">

**Author:** ![dhjdhj](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dhjdhj/32/39_2.png) [@dhjdhj](https://forum.juce.com/u/dhjdhj)\
**Post date:** [July 9, 2013, 6:12pm UTC](https://forum.juce.com/t/example-of-a-simple-vst-host/10751/3 "2013-07-09T18:12:29Z")

</div>

Wow – i had a quick look — lots of stuff going on.

Basically, what I’d like is a de minimis example that looks something like the following pseudo code (but actually works)

main()  
{  
InitMIDI…  
InitAudio…;  
LoadVST(“name of VST”); // Whatever else is needed so it can receive MIDI and send out audio  
RunUntilClose…  
}
