How To Create VST Plugins? Information for those just getting started

DSP, Plugin and Host development discussion.
RELATED
PRODUCTS
very angry mobster
KVRian
Topic Starter
610 posts since 15 Dec, 2003 from Melbourne, Australia

Post Tue Sep 27, 2011 12:11 am

There seems to have been a few "how do I..." threads lately. Perhaps a sticky is needed?

The text below contains additions and edits from several people. Ideally it would be a wiki and publicly editable. Please suggest additions/edits/updates etc.

***

Learn How to Make VST Plugins.

Learning how to make VST plugins from scratch isn't easy. Making anything non-trivial requires knowledge and skills in several areas. Additionally, there isn't a single "How To..." guide that will take you through step by step. You'll need to piece together information from different sources depending on your own specific goals.

Before learning how to code VST plugins you should check out:
- SynthEdit
- SynthMaker
- Reaktor
- Max/MSP
- PureData
- CSound
- SuperCollider
- Bidule
- Usine
These environments allow you to build something unique without the pain of writing low-level code. If you absolutely need to build a VST plugin, these environments may be useful for prototyping.

Depending on exactly what you want to do, you will require knowledge in a few different areas. If you're lucky you'll already have studied some of this and only need to fill in gaps. If not, you've a long road ahead. Don't get overly discouraged, a surprising amount can be achieved with a limited understanding of the basic principles.


Audio Basics

Before building a VST plugin it would be useful to have an understanding of exactly what sound is and how sound is represented in the digital domain.

Introduction to Sound Processing by Davide Rocchesso [PDF] Discrete time systems, sampling theorem, audio DSP, maths, psychoacoustics, sound analysis and sound modelling.

Signals, Sound, and Sensation by William M. Harmann "Designed to follow an introductory text on psychoacoustics, this book takes readers through the mathematics of signal processing from its beginnings in the Fourier transform to advanced topics in modulation, dispersion relations, minimum phase systems, sampled data, and nonlinear distortion. "


Programming

Most professional VST plugins are written in C++. Alternative languages can be used. They each have pros and cons. If you are unsure what language to use, C++ is probably the safest bet. If you don't already know how to program, go to your local bookstore, browse through all the programming books and choose the one that makes the most sense. Consider enrolling in a class.

Be aware, learning how to program isn't easy. Learning how to develop VST plugins at the same time will make the task more difficult again. Most people would recommend learning how to program before developing VST plugins.

Some understanding of basic computer science stuff (especially algorithmic complexity, maybe state machines too) is probably useful as well... though that isn't very hard.

The Audio Programming Book by Richard Boulanger might be useful. Its one of the few books which covers audio plugin formats.

BasicSynth by Daniel Mitchell "BasicSynth [...] shows you how to create a custom synthesizer in software using the C++ programming language."

For many more programming resources see What are the most important parts of C++ for coding plug-ins?

Recommend a book for learning C++


Maths

Basic engineering math (linear algebra, complex analysis, etc) should be more or less sufficient (ie pick any university textbook, it'll have more or less the right stuff); even less if you're not planning on doing any filter design or other "fancy" stuff. Mostly you just have to be fairly confident with your math, since most of the time "try random things" doesn't exactly work very well (as if we didn't do it anyway) when it comes to math.

www.PurpleMath.com Practical algebra lessons.

Digital Signal Processing

You will benefit from some digital signal processing (DSP) knowledge. You can probably get by without knowing how to write your own FFT routines, but you should know what a FFT is and why it is useful.

Much of what is covered in introductory DSP textbooks will not be immediately useful for developing plugins, but advanced texts focusing on audio usually require at least a conversational level DSP understanding.

Online and Free:
The Scientist & Engineer's Guide to Digital Signal Processing

Print:
Understanding Digital Signal Processing by Richard G. Lyons


Audio Digital Signal Processing

Audio DSP extends on core DSP concepts to include the way digital signal processes apply to digital audio. It includes subjects such as audio filters, delays, non-linear effects (think compression) and much more.

DAFX by Udo Zolzer is a good introductory textbook covering many audio DSP techniques. It sometimes reads as a summary. For more detailed material you may need to seek specific papers. DAFX has many references listed and provides a good starting point for exploring.

The Art of VA Filter Design Zero-delay feedback filter design. No preliminary filter design knowledge required.

DSP Audio Classics

DSP Audio Algorithm Notes by XOXOS


Previous Threads Asking a Similar Question
Adivce for someone with ZERO experience
How do I go about learing to develop synths?
Developing a Vst Effect Plugin Where To Start?
What is your development setup?

Any more threads that should be linked here?


Books...
The books listed here aren't the only books on these topics. They are listed here as a starting point for your own research. Please look at alternatives before purchasing anything.


Audio Plugin Frameworks

JUCE is an all-encompassing C++ class library for developing cross-platform software. JUCE includes components for VST, AU and RTAS. JUCE is often highly recommended. Definitely check it out if you use C++.

IPlug is a C++ framework for developing audio plugins and GUIs.

Enhanced version of Cockos' IPlug A simple-to-use C++ framework for developing cross platform audio plugins and targeting multiple plugin APIs with the same code. VST / VST3 / Audiounit / RTAS / AAX (Native) formats supported.

VST.NET allows VST Plugin developers to write Plugins in any .NET language. It makes the transition between the C++ and .NET world smooth and easy. The Framework built on top of the interop layer provides a clear and structured architecture accelerating development considerably.

Delphi ASIO and VST A Delphi library for creating VST plugins, VST hosts and ASIO applications. Includes algorithms for filters and dynamics.
Last edited by very angry mobster on Mon Dec 15, 2014 2:38 am, edited 17 times in total.

User avatar
whyterabbyt
Beware the Quoth
32725 posts since 4 Sep, 2001 from R'lyeh Oceanic Amusement Park and Funfair

Post Tue Sep 27, 2011 12:48 am

Here's another book which I suspect might be useful. Its one of the few books which covers audio plugin formats.

http://www.amazon.co.uk/Audio-Programmi ... 39&s=books
my other hardware modular is a bugbrand.

User avatar
bpblog
KVRAF
1702 posts since 22 Apr, 2009 from Belgrade

Post Tue Sep 27, 2011 1:32 am

here's a link with some tips and an introduction to VST programming:

http://www.axiworld.be/vst.html
Bedroom Producers Blog << Free VST Plugins!

User avatar
mystran
KVRAF
7747 posts since 12 Feb, 2006 from Helsinki, Finland

Post Tue Sep 27, 2011 1:51 am

As far as math goes, basic engineering math (linear algebra, complex analysis, etc) should be more or less sufficient (ie pick any university textbook, it'll have more or less the right stuff); even less if you're not planning on doing any filter design or other "fancy" stuff. Mostly you just have to be fairly confident with your math, since most of the time "try random things" doesn't exactly work very well (as if we didn't do it anyway) when it comes to math.

Some understanding of basic CS stuff (especially algorithmic complexity, maybe state machines too) is probably useful as well... though that isn't very hard.

very angry mobster
KVRian
Topic Starter
610 posts since 15 Dec, 2003 from Melbourne, Australia

Post Tue Sep 27, 2011 6:51 am

I've added your book recommendation Whyterabbyt.

@Mystran: Thanks for the maths. That's been dropped in as well.

@bpblog: Is this stuff too Delphi specific?


Can anyone recommend a good maths text book?

What else is needed? Any other comments?

xoxos
Banned
12368 posts since 30 Apr, 2002 from i might peeramid

Post Tue Sep 27, 2011 8:40 am

for your 'audio basics' book link, i think dspguide.com is indispensible. the prose isn't exclusory at all.

i currently noticed that the free pdf 'introduction to sound processing' by davide rochesso has a brief but exhaustive appendix on math required for dsp. i am.. still going through it.. :)

really, i think the current sticky on resources has all the information that currently exists. perhaps the paragraphs you have written above could be added to the first post, so people have a start on why they should be familiar with these resources :)

for math in general, purplemath.com provides very accessible explanations (i don't know if it's currently linked in the thread).
you come and go, you come and go. amitabha neither a follower nor a leader be tagore "where roads are made i lose my way" where there is certainty, consideration is absent.

nay-seven
KVRist
391 posts since 11 May, 2005 from France

Post Fri Sep 30, 2011 11:50 am

Interesting thread !
can i add Usine to your list..?
since the last version you can save your patch as VST or VSTI
no native oscillator yet, but you can easily built midi or audio effect..

very angry mobster
KVRian
Topic Starter
610 posts since 15 Dec, 2003 from Melbourne, Australia

Post Fri Sep 30, 2011 7:49 pm

nay-seven wrote:Interesting thread !
can i add Usine to your list..?
since the last version you can save your patch as VST or VSTI
no native oscillator yet, but you can easily built midi or audio effect..
Added.

User avatar
Aleatoriac
KVRAF
1725 posts since 31 Dec, 2004 from betwixt

Post Fri Sep 30, 2011 8:00 pm

Open notepad.
Type in "saw square sine tri."
Save file. Change file extension to .dll
Drop in VST folder.

No not really. If only. :hihi:

re8
KVRist
304 posts since 3 Nov, 2007 from Earth, USA, CO, Denver

Post Fri Sep 30, 2011 10:36 pm

What ever happened to the WiKi? Any info "sticky-able" is more or less FAQ, which WiKis excel at...

billythekidd
KVRer
14 posts since 22 Mar, 2011

Post Tue Oct 04, 2011 4:29 am

For a good guide to sound through to perception I cannot recommend Hartmann's text enough. It is a little pricey, but it now seems to be available on google books :)

http://books.google.com/books/about/Sig ... 72rIoTHiEC

Meffy
Skunk Mod
21249 posts since 10 Jun, 2004 from Pony Pasture

Post Tue Oct 04, 2011 4:49 am

I've tentatively set the thread to sticky. If having that many sticky threads is inconvenient for anyone, let me know and I'll reconsider.

V@dim
KVRist
88 posts since 18 Jun, 2011 from Ukraine

Post Mon Oct 17, 2011 8:39 am

This book shoud be added too: http://www.amazon.com/BasicSynth-Daniel ... 0557022126 . It's very good DSP (and not only about dsp) tutorial for complete noobs, every beginning developer must read this.

Best section for the book is Audio Basics or Audio Digital Signal Processing, probably in Audio Basics.

User avatar
Bronto Scorpio
KVRAF
5546 posts since 13 Feb, 2006 from Wiesmoor, Germany

Post Mon Oct 17, 2011 9:02 am

Great thread!

@ very angry mobster: It would be nice if you could add Pure Data to your "Before learning how to code VST plugins you should check out:" list :)
It's a great free alternative :)

Cheers
Dennis

very angry mobster
KVRian
Topic Starter
610 posts since 15 Dec, 2003 from Melbourne, Australia

Post Mon Oct 17, 2011 7:54 pm

re8 wrote:What ever happened to the WiKi? Any info "sticky-able" is more or less FAQ, which WiKis excel at...
Yep, a wiki page would be ideal..

@xoxos, billythekidd, Vadkvr: Nice link suggestions. I've added them all.

@Bronto Scorpio: Added Pure Data to the list. Thanks for the suggestion.

@Meffy: Thanks for the sticky.

Return to “DSP and Plugin Development”