r/AudioProgramming • • Sep 29 '26

Curious about Rust for audio programming

11 Upvotes

Hey everyone! I’m a product designer and musician interested in building audio plugins and music tools, including their interfaces.

I’ve started learning C++, but I’m curious about Rust. Has anyone tried working and building audio plugins using Rust? Did not found any courses or tutorial with Rust and audio programming

(I am super new to programming with C++ and audio programming)


r/AudioProgramming • • 1d ago

I got the original TC Electronic Clarity M firmware running in QEMU on an Apple Silicon Mac

Post image
10 Upvotes

I've been working on a personal reverse-engineering project: getting the original firmware of the TC Electronic Clarity M running inside QEMU on my MacBook Pro M1 Pro.

Not a recreation of its interface, not a software clone. The actual embedded Linux system and the original "tcmeter" application running in an emulated hardware environment.

And after quite a bit of debugging, it's finally working!

The hardware and the challenge

The Clarity M is based on a Freescale i.MX35 SoC, with an ARM1136 CPU, Linux 2.6.31.12-rt21 and an IPUv1 graphics controller driving an 800×480 LCD.

QEMU already had an i.MX31-based KZM machine, which gave me a starting point. However, the i.MX35 is not simply an i.MX31 with a different name. Its memory map, peripherals, interrupts and clock configuration required substantial changes.

I started by extracting the firmware and examining the SD card, kernel, initramfs and application. Then came the first boot attempts.

Linux was running, the application was initializing, but the display was completely black.

Reconstructing the hardware

One of the biggest challenges was getting the original LCD working.

I initially tried reading a fixed framebuffer address, but that wasn't enough. I eventually had to understand how the IPUv1 actually works, decode its CPMEM configuration and reproduce its double-buffering behavior.

The first buffer I was displaying was actually empty. The firmware was drawing into the other one!

I also had to reconstruct significant parts of the i.MX35 hardware model, using the surviving QEMU binary, disassembly, memory maps and register behavior as references.

The work eventually extended beyond graphics: GPIO, the GPT timer, SDMA, ESAI and I2C-based AES receiver emulation all became part of the project.

Making the audio work

The next challenge was getting real audio into the original firmware.

The Clarity M uses an ESAI audio interface fed by SDMA. I implemented a functional DMA model and emulated the AES receiver status so the firmware could recognize a valid input signal.

On macOS, I'm using Loopback to route audio into QEMU.

The current setup captures audio at 44100/48 kHz and feeds it to the firmware. The original application then performs the actual measurements.

I tested it with a known signal: LUFS, true peak and RTA results were consistent with the expected values.

The unexpected part: time itself was broken

Getting the display and audio working wasn't the end of it.

The application would freeze after a while, sometimes after 30 seconds, sometimes after several minutes.

The problem turned out to involve several interacting issues: GPT timer frequency, missed compare interrupts, SDMA channel shutdown and kernel deadlocks.

I ended up inspecting the guest's RAM, reconstructing its kernel symbol table (kallsyms) and examining sleeping kernel stacks to understand what was blocked.

On the macOS side, I also had to deal with App Nap and thread scheduling to keep audio capture stable when the application was running in the background.

Where it stands now

The current version can:

  • Boot the original Clarity M firmware.

  • Display its native 800×480 interface. (add some changes for having a perfect circle for the radar (800X447)).

  • Navigate Radar, RTA and VSCOPE views.

  • Control SW1–SW6 using the Mac keyboard. (1 to 6)

  • Operate the rotary encoder using the arrow keys.

  • Receive and analyze real audio at 41000 and 48 kHz.

  • Run for 15 minutes under RTA load, with no freeze or AES lock loss during the test.

I've also packaged everything into a native macOS application: Clarity M.app.

This started with an SD card image, a Linux kernel and a black QEMU window. It turned into a much deeper dive into ARM emulation, SoC reconstruction, graphics, DMA, audio and real-time scheduling.

Still plenty to improve, but seeing the original Clarity M software running and measuring an actual audio signal on a Mac is incredibly satisfying.

I'd be happy to discuss the QEMU hardware emulation, IPUv1 implementation or the audio pipeline with anyone interested!


r/AudioProgramming • • Oct 08 '26

Audio Rate Modding a Morph Filter

10 Upvotes

r/AudioProgramming • • Jul 23 '26

Mixing live mic

Thumbnail
gallery
10 Upvotes

Hello guys!
I am very new in the mixing world. I bought a Yamaha MG10XU mixer and i connected my Sennheiser XS 1 mic (it is in the first chanel of the mixer)
Connected to my Lewitz PA210XA active soundbox but the microphone sounds veryvery harsh and ugly and distorted. I don’t know what is the problem. Is the cable from the mixer in the wrong input on the Lewitz? Help me please


r/AudioProgramming • • 28d ago

Headless CLAP/VST3/AUv2 loader, validator and measuring tool

9 Upvotes

I put together an open-source CLI tool for testing CLAP, VST3, and AUv2 plugins from the command line and in GitHub Actions CI without spinning up a DAW:

https://github.com/cyrillsemenov/headless-plugin-host

Usually, verifying a DSP change means relaunching a DAW and staring at a spectrum analyzer while playing back sinusoids or test tracks. `pluginval` and `clap-validator` are great for ABI compliance, but I wanted a single tool that handles all formats and runs automated acoustic measurements.

What it currently does:

  • sweeps plugins to measure Bode magnitude/phase response, THD+N, SMPTE/CCIF IMD, Schroeder RT60 decay, fractional sub-sample group delay, BS.1770-4 LUFS dynamics, and Mid/Side stereo correlation

  • intercepts heap allocations on the audio thread across a 9-check validation suite and a seeded fuzzer (22.05–192 kHz sample rates, 1-sample odd buffers, parameter modulation storms, and corrupted state blobs)

  • captures plugin UIs offscreen

  • generates a self-contained HTML spec sheet with SVG plots, multi-bus/sidechain routing checks, and multi-velocity synth note sweeps (still a work in progress)

Feel free to ask any questions/love/hate it.


r/AudioProgramming • • Jun 18 '26

The Oscillator That Remembers

9 Upvotes

Most oscillators are static. They generate a waveform and let the interesting part happen later.

I've been exploring a different idea inspired by CDP's wavset distortion.

Instead of treating a waveform as a continuous stream, the oscillator listens for zero crossings and breaks itself into wavsets: tiny fragments of sound between those crossings. Each wavset becomes a decision point.

LOOP & REPEAT 
Cycle repeating
REVERSAL
Phase inversion
SKIP / DECIMATE 
Zero-amplitude gate
MEM_REPLACE
Recall centroid

The pitch continues forward, but the timbre continuously rewrites itself from the inside.

The result isn't quite wavetable synthesis, granular synthesis, or distortion. It feels like an oscillator with a memory of its own—one that remembers what it used to be and lets its past leak into its future.

I'm not sure if this is a terrible idea or an unexplored branch of synthesis.
// That's what this experiment is for.


r/AudioProgramming • • Nov 12 '25

MayaFlux- A new creative coding multimedia frameworks.

9 Upvotes

Hi everyone,

I just made a research + production project public after presenting it at the Audio Developers Conference as a virtual poster yesterday and today. I’d love to share it here and get early reactions from the creative-coding community.

Here is a short intro about it:

MayaFlux is a research and production infrastructure for multimedia DSP 
that challenges a fundamental assumption: that audio, video, and control 
data should be architecturally separate.

Instead, we treat all signals as numerical transformations in a unified 
node graph. This enables things impossible in traditional tools:

• Direct audio-to-shader data flow without translation layers
• Sub-buffer latency live coding (modify algorithms while audio plays)
• Recursive coroutine-based composition (time as creative material)
• Sample-accurate cross-modal synchronization
• Grammar-driven adaptive pipelines

Built on C++20 coroutines, LLVM21 JIT, Vulkan compute, and 700+ tests. 
100,000+ lines of core infrastructure. Not a plugin framework—it's the layer beneath where plugins live.

Here is a link to the ADC Poster
And a link to the repo.

I’m interested in:

  • feedback on the concept and API ergonomics,

  • early testers for macOS/Linux builds, and

  • collaborators for build ops (CI, packaging) or example projects (visuals ↔ sound demos).

Happy to answer any technical questions, or any queries here or on github discussions.

— Ranjith Hegde(author/maintainer)


r/AudioProgramming • • Oct 10 '25

Struggling to Begin Audio Programming - Looking for Guidance and Resources

9 Upvotes

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!


r/AudioProgramming • • 2d ago

Paper piano

8 Upvotes

r/AudioProgramming • • Sep 27 '26

Community Guidelines & Updated Rules

8 Upvotes

Hey everyone,

Here on r/AudioProgramming , we're introducing a few updates to maintain usefulness, good discussion and high quality posts.

Starting this week, there's some new rules:

  • No AI Projects or Music posts. This has always been a rule but will be enforced going forward.

  • No Self Promo. This sub isn't a place to share your paid product, marketing page or intake funnel.

We're sure these new rules will evolve over time, but any clear projects that promote a download, e-mail signup or even marketing site will be removed along with AI project posts.

New: Enumerated Subreddit Rules

These weren't defined before but these should provide a good starting location for a basis for keeping posts high quality and targeted on this sub.

  1. No AI Project Posts: We love seeing what people build, but projects that are largely AI-generated with little personal understanding or effort behind them aren't a great fit here.

  2. No AI Music Generation: AI music is objectively terrible and the promotion of any software that aids in its creation is not allowed in this sub.

  3. Stay on topic: Posts should relate to audio programming: real-time audio, plugin development (VST/AU/etc.), audio ML, synthesis, audio APIs, game audio programming, and related engineering topics.

  4. Be respectful: No harassment, personal attacks, or gatekeeping.

  5. No low-effort posts or self-promotion: If you're sharing a paid product, service, or course, disclose your affiliation. Excessive or repeated self-promo may be removed. In addition, ensure your post is well worded, thought out and formatted.

  6. No piracy or cracked software: Don't request or share pirated DAWs, plugins, or SDKs.

Questions or Suggestions?

If you have ideas for the sub like a recurring "Ask Anything" thread, resource megathreads, etc. please shoot a modmail.

Thanks for being part of the community.


r/AudioProgramming • • Sep 08 '26

Too many lines

8 Upvotes

r/AudioProgramming • • Aug 23 '26

Can anyone help me design a year long roadmap to get hang of developing an audio plugin. I'm a total beginner in the field of programming and I really want to start designing audio from the perspective of a programmer

8 Upvotes

I have a decent understanding of signal flow and have been using VCV Rack for a while to design patches. I really enjoy building synths/effects this way, and now I want to understand how to actually develop those kinds of modules programmatically.

I'm currently doing mostly UI/UX design, and by June 2027 I'll also be starting a sound design course. My longer-term goal is to be able to build my own audio instruments/effects rather than only design their interfaces or patches.

Is it realistic for someone starting now to develop enough programming/DSP knowledge to build their own audio modules/plugins by Christmas 2027?

I'm particularly interested in things like oscillators, filters, VCAs, envelopes, modulation, signal routing, etc.

Also, I'm confused about the programming path

Do I need to learn C++ from scratch before getting into Cmaj, or can I start learning Cmaj directly and learn C++ later? From what I've read, Cmaj is specifically designed for audio/DSP and is intended to be easier to get into than C++.

I'd really appreciate advice from people who have gone through this path. What would you learn first, what would you avoid, and what would a realistic roadmap from August 2026 to December 2027 look like?

I'm not trying to become a professional software engineer in 18 months, I just want to know whether becoming capable of building my own audio modules/plugins is a realistic goal and what the actual path looks like.


r/AudioProgramming • • Jul 24 '26

AuraEngine: Open-source Rust audio upsampler with Hybrid-Phase transient engine (1M–30M tap FIR, Vulkan GPU compute)

8 Upvotes

GitHub: https://github.com/ToxaDev/aura-engine

Hi, I built AuraEngine — an open-source offline audio upsampler (up to 768kHz) written in Rust + Tauri.

Check out the clip above to see how it works!

Key Highlights:

  • Hybrid-Phase Engine: Solves the pre-ringing trade-off. Renders twice (Linear + Minimum Phase) and dynamically switches to Minimum Phase at zero-crossings during transient attacks.

  • Massive FIR Filters: 1M to 30M taps (Kaiser $\beta=14$), designed in 128-bit precision with >220 dB stopband attenuation.

  • Vulkan GPU Compute: Uses Double-Single (DS) arithmetic (~48-bit mantissa) for ultra-precise GPU convolution.

  • Extras: Adaptive apodizing filter v3, True-Peak safety, and bit-perfect verification.

I'd love to hear your thoughts on the hybrid-phase algorithm and the Rust/Vulkan setup!


r/AudioProgramming • • Jan 26 '26

GitHub - NielsPT/NtPlugin: A framework for fast and easy audio plugin prototyping.

8 Upvotes

Hi there

I made a framework for fast and easy plugin prototyping/development. The main features are:

  • Write audio plugins in plain C++ without the need for knowledge of the JUCE framework.

  • Automatic layout of UI including metering and UI scaling. Just list your parametes, and the framework takes care of the rest.

  • Oversampling available by default.

  • Possibility for wrapping plugins for other targets.

I'm hoping you guys will find this useful and that you want to participate in added more effects and more target platforms as time goes on.

Check it out.


r/AudioProgramming • • Jan 07 '25

How to launch my career as a freelance audio developer after completing C++, DSP and JUCE

8 Upvotes

Namashkar! I am a junior audio programmer with a strong general programming background and a very good knowledge of DSP and audio algorithms of effects and sound synthesis techniques. I just completed C++ and JUCE with a focus on audio programming and plug-in development. My aim is to become a freelance audio developer and develop plugins for the audio marketplace and sell them online.

At this stage, what are the next general steps I should take to launch my career successfully? Do guide me a bit on the signing of agreements with Steinberg for VST3 and AAX for Avid (I have reviewed and understood the plans on JUCE), as well as getting myself listed as a developer on online plugin portals like SweetWater or Plugin Boutique, etc. And any other necessary tips for me to follow at this beginner's phase.


r/AudioProgramming • • Oct 28 '26

New to PCM/float arrays and audio programming, creating new surreal sounds from existing sounds

7 Upvotes

Hello

I just discovered I can use my Java program (processing 3) to extract raw PCM from short wav samples and convert it back into audio. This is really cool because I guess I suddenly now have godlike control over raw audio data and don't need to rely on commercial plug-ins.

One thing ive been trying to do is create new and weird samples using existing ones. I'm working on a surreal video game and I'd like to have near infinite variety when it comes to sound and music, and I figured a cool way to do that is to have a bunch of samples (like 100 short instrument samples) and then mix them on the fly into new sounds/instruments.

My main method is iterating through the list of floats and performing simple operations using 2 different samples. I've been trying a couple different techniques. The first one is simply adding:

Mix = sample1[i] + sample2[i]

While it technically mixes them into one sound, you can still distinctly hear both samples played on top of each other instead of hearing a 'new' sound.

A better option ive tried is multiplication:

Mix = sample1[i] * sample2[i]

For me this is much better and is closer to what I want because the mixed sound is different than the two original samples. The main issue is that this method sounds rather robotic and noisy, and the new samples lose a lot of the "nuance" of the original samples (I don't really know a better term for it). After listening to dozens of generations, most outputs seem to suffer the same loss of quality.

Main question: im wondering if anyone else has experimented with a similar issue and got better results, or knows a better mathematical approach for this

I've also heard of using Fast Fourier Transformation for a much cleaner synthesis, so if manipulating a PCM array is not that great of a method then I'll try FFT or something else


r/AudioProgramming • • Oct 18 '26

My webcam turned out to be the best MIDI controller I own

7 Upvotes

About 7 months ago I saw those videos where people wave their hands at a camera and the music reacts, almost all of them built in TouchDesigner. Then I opened TouchDesigner, stared at the node graph for a while, and closed it.

So, being a C++ dev, I did the obviously more reasonable thing and spent months writing a plugin that does it inside Live instead. It tracks your hand through the laptop webcam, and you can use it in two ways: play MIDI notes or map it to any effect parameter in any DAW.

Honestly, I started making this plugin for myself, but then decided I could publish it on itch.io. as Hand Link.


r/AudioProgramming • • May 13 '26

Audio DSP and CLAP Plugin Development Workshop

Post image
7 Upvotes

r/AudioProgramming • • Mar 05 '26

Ambitious self-starter?

7 Upvotes

With all the layoffs happening everywhere and many people struggling to find new jobs, there must be some driven people out there who would like to build a scalable software product.

Right now I have the time, interest, and energy to collaborate with a like-minded person in my spare time. I have some ideas, and you probably do too. Maybe you’re passionate about programming, audio, machine learning, and signal processing. Or perhaps you’re strong in business, marketing, or sales and are familiar with a real-world problem that could potentially be solved with software. Or maybe you’re passionate about finance and trading.

I personally have 20+ years of experience in software development, project management, and running a company in the United States.

I’m looking for a reliable, hardworking, and ambitious collaborator to build a successful business with.

Send me a DM if you’re interested.


r/AudioProgramming • • Dec 10 '25

I built a VST/CLAP plugin that uses the Model Context Protocol (MCP) to drive Bitwig.

Thumbnail youtube.com
7 Upvotes

Hey everyone,

I’m an ex-Google engineer getting back into music production. I wanted a way to integrate LLM context directly into my DAW workflow without constantly tabbing out to a browser.

So I built a prototype called "Simply Droplets." It’s a VST3/CLAP plugin that acts as an MCP server. It allows an AI model to stream MIDI notes and CC data directly onto the track.

I just did a raw 20-minute stream testing the first prototype: https://www.youtube.com/live/7OcVnimZ-V8

The Stack:

  • Protocol: Model Context Protocol (MCP)

  • Format: CLAP / VST3

  • Host: Bitwig Studio

It’s still very early days (and a bit chaotic), but I’m curious if anyone else is experimenting with MCP for real-time audio control?


r/AudioProgramming • • Aug 24 '25

Searching friends

7 Upvotes

Hi, I’m a 3rd year Music Technology student and I’m interested in audio programming with Python, Max/MSP, and JUCE. I’m looking for people to connect with so we can learn together and create projects. Anyone interested? https://github.com/emirayr1


r/AudioProgramming • • Jul 07 '25

Exploring sound synthesis from scratch

7 Upvotes

Hi guys!

I recently released the first version of a side project I've been working on: MidiPlayer, a tool for designing instruments and exploring sound synthesis.

The core idea is to build sounds from basic components like oscillators, ADSR envelopes, filters, etc. It can be controlled using any MIDI device. Support for SoundFont files is also included, allowing for more complex and realistic instruments without building everything from scratch.

I know it's not the most original idea out there, but it started when I had to reinstall my PC and didn’t feel like reinstalling Ableton.

I got hit with the famous "I can just build it myself" and ended up spending way more time than I expected.

It’s obviously nowhere near as full-featured as Ableton, but I’ve learned a ton about audio synthesis along the way, and now I can (finally) play piano again using something I built myself.

I’d love to hear your feedback, feature ideas, bug reports, or anything else.

Github repo : https://github.com/B-Bischoff/MidiPlayer


r/AudioProgramming • • Sep 22 '24

Audio Programmer for Embedded C/C++ Cofounder in Berlin

7 Upvotes

Hello! We are a small team consisting of an electronic engineer and an industrial designer, looking for a passionate audio programmer with strong knowledge in C/C++ to join us as a cofounder in building a new company focused on analog and digital effect pedals and Eurorack modules.

You’ll need to have a solid background in:

  • Embedded C/C++ development

  • Audio DSP implementation

  • Experience with real-time audio processing and low-latency systems

  • Knowledge of Git and CMake

  • Hardware-software integration for audio devices (Familiarity with STM32 microcontrollers is preferable)

  • Familiarity with current trends in audio and music

Our team has extensive experience working with industry-leading companies in music & audio technology across Europe. We are seeking someone who shares our passion for music and audio, ideally based in Berlin.

If that sounds interesting to you, please send your CV and portfolio of projects (if available) to: [email protected]. We’d love to hear from you!


r/AudioProgramming • • Aug 30 '23

Job opportunities in Music Information Retrieval

7 Upvotes

I'm curious about the current job opportunities in music information retrieval. I'm in university right now and am taking a few classes in this area. I'm genuinely passionate about diving deeper into it. However, most of the opportunities I've come across seem research-oriented rather than traditional software development. While academia doesn't really appeal to me, I'm wondering if anyone here works in the software development side of this field? Could you kindly share your insights working in this kind of job?