This is a curated list of my favourite music DSP and audio programming resources, focusing on the C++ programming language. I like implementations that allow you to be creative quickly. The less code for the end user (e.g plug-in developer) the better! This was originally meant to be an official "Awesome list", but apparently you are not meant to write in the first person, so this is now a "more awesome" list.
Oli Larkin
I'm currently working hard on free open source projects such as iPlug2. If you'd like to support this work, please click the sponsor button above to find out how. I am available for one-to-one skype lessons and consultancy sessions to help you progress your audio programming projects. I've been doing this kind of thing with people of all levels of experience for many years, as well as teaching audio programming at several UK Universities. I've developed many projects using both JUCE and iPlug, and I've collaborated with well-known companies on software used by thousands of people, as well as making my own successful products. If you're looking for some guidance with your audio project, I can probably help.
- iPlug2 - iPlug (originally created by Cockos) is an awesome plug-in framework. I have been maintaining a fork of it since ~2011 called WDL-OL. In 2018 Alex Harker and I made a big effort to update it. iPlug's syntax is super simple, for example, creating a parameter or a control in the UI is only a single line of C++ code.
- JUCE - JUCE is an undeniably awesome C++ application/plug-in framework with audio roots. It boasts a vast amount of functionality for the development of music software, including support for almost all plug-in formats and platforms. JUCE is used widely in the music technology industry and it has excellent documentation, code standards, features and support. The JUCE team at Roli organise the Audio Developer's Conference (ADC) which is the most awesome conference around if you like audio programming. What's more all the videos from all the ADCs so far are available on youtube.
- VSTGUI - VSTGUI is Steinberg's cross-platform UI toolkit for audio plug-ins. It is released under a BSD licence, and although it's not my weapon of choice, it's an impressive piece of work and many plug-in developers use it for their products.
- AudioKit - Well, i'm going to break the rules and include AudioKit here which uses the Swift programming language, because if you want to make apps for Apple's devices this is a great option, although if you want to do low level stuff, you will still have to delve into C/C++. It's a DSP and UI toolkit for audio things, so going in this category.
- WDL - WDL is Cockos' library of reusable C++ code, that is used to power the DAW Reaper, amongst other things. Whilst not traditionally a framework, there is so much good stuff in here, it is highly recommended - although there is next to no documentation, so it's not for the faint hearted. For more info about the various parts of WDL (which can be used independently), check the Cockos site
- ASPiK - This is a new framework from Will Pirkle (to accompany his books) which is based on the VST3 SDK and it's AU/AAX wrappers, along with VST GUI and its runtime UI editor. It includes a project creator and a lot of extra "nuts and bolts" code for plug-in development. NOTE: in my opinion this plug-in framework is incredibly verbose. There is so much code and mixing of library/implementation that I think it is a bit overwhelming, but if you are following the books it may be useful.
- DPF - Distrho Plug-in Framework is a nice C++ plug-in framework by falkTX, supporting lots of Linux formats.
- Gamma - Gamma is a very awesome C++ DSP framework by Lance Putnam - a developer whose name I've known since the synthedit days. The beauty of Gamma is the conciseness of the implementation of certain techniques. The STFT is a bit of a pain to code yourself, involving overlapping FFT windows etc - how about this for a concise end user implementation.
- Q - A very nice looking modern C++ DSP library with concise examples
- FAUST - FAUST is a powerful domain specific programming language (DSL) for audio DSP with many options for quickly compiling to different “architectures” including audio plug-ins. FAUST is not interpreted like programming languages such as Puredata/Max/Supercollider/javascript, it is fully compiled to C++ or bytecode - so the FAUST compiler is really a transpiler. This functionality is highly suited to rapid prototyping but can also produce robust and performant binaries. Whilst the rapid prototyping possibilities of FAUST are appealing to me, what I like most about it is the extensive library of high quality DSP routines. Coupled with a concise and expressive syntax, FAUST is a powerful language and definitely worth learning, to use in conjunction with C++. You can check out one of the things I've done with FAUST here
- HIIR - HIIR is a seriously cool oversampling library by Laurent de Soras. Oversampling is something we often need in audio DSP, and this library handles it elegantly - providing a variety of classes for low latency IIR half band filtering (including SIMD optimizations). Originally this had a LGPL licence but now it's available under the WTFPL - my favourite licence.
- HOALibrary - As someone who works a lot with spatial audio, it's fantastic that the CICM have released this flexible DSP library for high order ambisonics (HOA) - a spatial audio platform that is becoming more and more relevant thanks to VR (GPL Licence).
This is a small selection of books that have been helpful to me. There are many others that look absolutely great but I have not used them in anger (yet).
- Will Pirkle - Will Pirkle has written two books that will be invaluable the aspiring audio plug-in developer - "Designing Audio Effect Plug-Ins in C++" and "Designing Software Synthesizer Plug-Ins in C++". For more info see here
- Dodge and Jerse - Computer Music: Synthesis, Composition and Performance, 2nd Edition - This is my absolute favourite book to recommend to students studying computer music/audio synthesis. I find the book does not date like some other computer music texts. The MUSIC-N style block diagrams are charming and the techniques are discussed very well.
- Udo Zölzer (Ed) - DAFX: Digital Audio Effects - This is a great book on audio DSP, written by a variety of domain experts, and it includes Matlab code examples.
- JOS - Julius Smith's site and his four books are an amazing resource. Matlab and FAUST code examples included!
- DAFX Conference Archive - All the papers from the DAFX conference are available online. Another great resource.
- EarLevel Engineering - Nigel Redmond's DSP blog contains some very nicely written explanations of a variety of topics.
- Michael Tyson blog - In depth article about Four common mistakes in audio development
- Ross Bencina's blog/site - Another Australian who writes a lot of interesting software and articles about lock free programming
Slightly veering off topic, these are the software tools that I find useful in my audio programming. Xcode and Visual Studio Community are the free IDEs that I use, and both are very powerful these days.
- Cockos Reaper - In my opinion Reaper is "the programmer's DAW". Whilst it might not be as immediate as some other DAWs, for anyone who wants to try anything experimental in terms of music technology, Reaper is a great place to do it. This is most obvious to me in the area of spatial audio. Reaper supports up to 64 channels per bus/track - that means you can do 7th order ambisonics in Reaper (since a long time ago). Protools and Nuendo have recently announced 3rd order Ambisonics support (16 channel buses). 7 > 3 go figure. Reaper includes its own scriptable assembly language "JS" (which stands for JesuSonic NOT JavaScript). This can really come in handy for quick custom plug-ins. It also has great metering and visualisation utility plug-ins written with JS. Reaper has its own API so you can make plug-ins that integrate very closely with the DAW at a level that VST etc can't provide.
- Mathworks Matlab - Matlab is a great piece of software, even if open source alternatives such as Octave and Python + ... are equally capable. The audio systems toolbox allows you to build VST plug-ins directly from Matlab. Although it's buried deep in the application, you'll find that Matlab audio systems toolbox uses both WDL-OL and JUCE to provide its plug-in functionality. Matlab also has great functionality for plotting curves and loads of other things.
- Cycling '74 Max - Max is a great environment to use for prototyping audio plug-ins. There are just so many options for integrating different technologies, I highly recommend it - even if nowadays most of the max patches I make only include a few objects!
- Desmos - This is an awesome online graphing calculator. Check out some interactive Casio CZ waveforms that I made saw square reso1
- Coliru - This is an online interactive C++ compiler, which can be a very nice and quick way to test out a particular feature of the language, without having to build a binary.
- Compiler Explorer - Compiler explorer is a great tool for checking the assembly code that different compilers will produce.
- FAUST Editor - This is an online FAUST IDE and compiler, that lets you test FAUST code with webaudio. You can then tell it to output a zip file with a binary for your preferred platform. This saves you all the trouble of installing FAUST and its dependencies on your local machine.
- Matplotlib-cpp - A C++ interface to the matplotlib python plotting tool. Allows you to visualize algorithms using the same code that you can use in production.
- xeus-cling - This is a really cool project allowing you to use JIT compiled C++ in jupyter notebooks - which, like Matplotlib-cpp above is great for visualizing algorithms using the same code that you can use in production, inside the popular jupyter notebook format.
- soul online compiler - Very exciting project from Roli - a new sound programming language that you can play with now in the browser.
I got into programming in C/C++ by making objects for Max and Synthedit. Learning how to use the SDKs for one of those or for one of the following open source packages is a nice way to start in my opinion, since you don't need to think about too many things. What's more - these great projects all show you how you can go about certain tasks... the code is there for you to look at. It might take you a while to find it, and sometimes the code might be hard to understand, but they all have oscillators, filters etc. There are many third party objects as well, that are also open source. Don't just copy stuff - you won't learn and you also probably violate the license, which is bad karma (and illeagal)!
- puredata - I don't think pd needs an introduction! Also check out libpd, which you can use as an embeddable DSP runtime in your C++ audio plug-in etc.
- supercollider - Likewise, but make sure you look at the scsynth part for DSP stuff.
- csound - CSound has seen a renaisannce of late and can be used as an embedable DSP library
- vcvrack - Wow... i was seriously impressed when VCVRack was released earlier this year. Whilst the other items in this list have been around a while and have somewhat arcane code-bases, this is pretty new and the API is very clean and simple. I think making a VCVRack module it is a great way to get into audio programming.
- mutable instruments - Emilie Gillet's work is very inspiring. Although written for microcontrollers, there is so much to learn from here. And it's ported to VCVRack so you can try it on the desktop.
- zita stuff - Fons Adriaensen's linux audio projects offer a lot of great tools for acoustic measurements, spatial audio etc - mostly as jack apps.
- tracktion engine - Source code for an entire DAW engine, using modern C++. An amazing resource for learning all sorts of things including how to structure and architect large audio projects. GPL/Commercial license.
- musicdsp.org - "A collection of algorithms, thoughts and snippets, gathered for the music dsp community". A long serving site that has recently been revamped. Beware: most of the code there was written a very long time ago, and optimization tricks etc, may not be relevant on modern machines. Also there are lots of code snippets programming languages other than C++ (delphi, java, C# etc). Could do with some curation.
Here are some quality open source instruments/effects plug-in projects.
- surge - Surge was an excellent product from a very talented developer and it's recently been open sourced and updated to work with modern versions of VSTGUI.
- helm - Helm is a comprehensive synth with a modern user interface written with JUCE, using OpenGL for visualisation widgets.
- obxd - OBxd is a great sounding oberheim emulation, written with JUCE. DiscoDSP have updated it, and it has also been ported to work on the web as a WebAudioModule
- dexed - Dexed is a JUCE frontend to Raph Levien's "Music Synthesier For Android", which is an excellent DX7 emulation. Also ported to work on the web as a WebAudioModule
- AudioKit SynthOne - SynthOne is a great open source project built using Audiokit, that will be very interesting to anyone looking to build an iOS synthesiser.
- AirWindows Plugins - A large collection of GUI-less plug-ins open source but supported via patreon see airwindows site
- Temper - A digital distiotion built using JUCE and FAUST
Most of the audio programming that I do has to do with plug-ins, but I found a couple of hardware platforms that I really like developing for (mainly because writing code for these devices is not so different to making a plug-in).
- the owl pedal/module - This is a programmable stomp box and eurorack module that I've been working with since the kick starter campaign to launch it. It's a really nice little unit, which you can program in C++, FAUST, Pd or with Max gen~. I find the limited interface with 4 controls makes me think quite carefully about what's important about my DSP algorithm. You can find some patches I made for it (using a mixture of c++ and FAUST) in the user library, and the original code here.
- bela - Bela is a wonderful little SoC + Audio Interface which is pretty revolutionary, allowing super low latency audio and sensor I/O all clocked together, in a tiny package. I wrote the FAUST support class for bela. You can also program it with C++ or libpd, and even supercollider.
-
TheAudioProgrammer - includes a lot of tutorials about JUCE with guest slots on things like web audio.
-
TheChernoProject - although this channel is focused on game development, the C++ series is excellent. Annoying hand gestures, but an amazing energy and passion for teaching. Highly recommended.
Here are a few links to the various corners of the internet and real-world where you might like to hang out if you like this kind of stuff...
- musicdsp mailing list - The music DSP mailing list is pretty quiet these days, but it still worth signing up, despite the web 0-1 front page. Every now and again a music DSP legend posts something interesting.
- KvR Audio DSP and Plug-in Development Forum - This is probably the most active forum for audio DSP that is not aligned with a particular plug-in framework. There are some very smart people, some mavericks and some plain weirdos who hang out here.
- JUCE Forums - This is a collection of forums centred around the variety of things that JUCE does. Since there is such a huge amount of people using JUCE to make audio software, there is a lot of good info here.
- Cockos Forums - Another collection of forums centred around Cockos' tools including one for WDL/iPlug and one for Reaper JS.
- The audio developer conference (ADC) - Whilst the other places mentioned here are all virtual, this is a real conference where you can go and meet real people face-to-face who do audio programming - highly recommended!
- TheAudioProgrammer Discord server - A popular community for discussing audio programming.
Oli Larkin 2018-2019
www.olilarkin.co.uk