r/AudioProgramming • u/CompetitiveSpare2729 • Oct 10 '25
Struggling to Begin Audio Programming - Looking for Guidance and Resources
Hey everyone, I have a degree in audio production and have always been fascinated by audio programming. I’m currently in my second year of a computer science degree, but I feel like my knowledge is still far from the level needed to dive into DSP, multithreading, and the more advanced concepts required to build audio tools in C++. I already know some C, but I’m struggling to connect the dots when it comes to programming audio. For my final project, I wanted to create a simple metering plugin, but I find it tough to even get started with things like JUCE or understanding DSP concepts deeply. I’d rather start from the basics and build a solid foundation before using frameworks. I really admire the work of AirWindows and his philosophy, but when I try to go through his code, I can't seem to make sense of it, even after two years of study. Anyone have advice on how to approach this, or can recommend any beginner-friendly resources to learn DSP, C++, or audio programming step-by-step? Thanks in advance!
5
u/vanritchen Oct 10 '25
Will Pirkle books are pretty good to start messing around
3
u/Wesleysaur Oct 10 '25
I'd learn the C++/system software and DSP concepts separately.
If you're able to take the required math classes as part of your degree as electives, I would try and sign up for as many as possible. I think the math is trickier to learn on your own. Julius Smith from Stanford has a great website for learning some of the concepts here: https://ccrma.stanford.edu/~jos/ The digital filter lessons are great but the structure of a real class where you're forced to slog through practice questions will really help solidify the concepts.
Independently, you can practice writing system software. You'll probably come across many of the concepts in computer science classes, and spending time writing C++ (or Rust, or C or Zig) will help. AirWindows Meter code is going to be hard to make heads or tails of if, for example, you've never seen something like a lock free queue.
2
u/kabocha_ Oct 11 '25 edited Oct 11 '25
Something you'll learn as you gain experience as a software engineer / programmer is to break your huge problem down into smaller problems -- although you do mention wanting to start from basics, so, good instinct!
Creating an entire DAW plugin is quite an undertaking:
Given all that, if you really want to make a DAW plugin, JUCE is probably going to be the path of least resistance.
However, if you aren't married to the plugin idea, here are some easier alternatives that are still pretty impressive:
Moderately difficult: "MiniMeters at home" :)
Easier: just play an audio file in your program rather than listening to your OS's audio output
.wavplayback library and feed it a pre-prepared.wavfile directly.As for learning DSP topics as a subject unto itself, I'd recommend considering playing around with
.wavfiles for a while, rather than trying to build entire interactive plugins:.wavfiles in C++ (there definitely is in Rust, anyway).Not super useful advice for your final project, but ¯_(ツ)_/¯.
As for what to learn and how, you can pretty much just choose whatever sub-topic interests you, go read a little about it, and then try to implement it. +1 for JOS, but his writings can also be pretty dense, so don't be afraid to just Google around too.
One way of approaching it is to try to implement all of the "basic" modules of a modular synthesizer in code (oscillators, amplifiers/mixers, filters, envelopes, LFOs, sequencers) -- you'll naturally learn about nuances as you dive into each topic (eg. band-limiting for oscillators, digitizing analog-modeled filters, etc.). Or, you could learn about effects (delay, reverb, chorus, ...). Or, you could learn about other synthesis techniques (FM, wavetable, ...). Or, you could continue learning about analysis stuff (metering, spectrum analyzers, spectrograms, ...).
You get the idea :) pick whatever interests you and dive in.
1
u/human-analog Oct 11 '25
I wrote a book called The Complete Beginner's Guide to Audio Plug-in Development that's aimed at people who have zero programming experience. It explains C++, how to use the development environment, how to write JUCE, how to create the UI, and how to do the actual audio programming part. The book is available from The Audio Programmer website and Amazon.