Skip to content
scjurgenPublic

About

AbacDsp is a creative DSP library for audio plugins and standalone applications. Header-only, zero-dependency C++20 building blocks, with Lua scripting designed for LLM-assisted sound design.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

618 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AbacDsp

AbacDsp is a creative DSP library for audio plugins and standalone applications. Header-only, zero-dependency C++20 building blocks, with Lua scripting designed for LLM-assisted sound design.

Realistic simulation is not a goal here: not natural instruments or acoustic spaces (e.g. convolution IRs), and not emulating specific pedals, amps or cabs on the market. The point is to get creative and go beyond the physical limitations of an acoustic instrument, room or piece of gear, using what digital audio makes possible instead of imitating what it doesn't need to - with the help of LLMs (often just called "AI", a name this project doesn't love but has stopped fighting).

Specialized building blocks typical for music/audio engineering, balancing efficiency and originality: four-pole filters, diffusers, resonance modeling, delays, spectral processing, samplers and more. See docs/ARCHITECTURE.md for the full feature list and the class design rules behind them.

The examples under examples/ showcase the library end to end: JUCE-based plugins that combine its processing blocks, focus on accessibility (screen readers, parameter labeling, color contrast), and - where noted - stay open-ended through embedded Lua scripting (see LUA-MANUAL.md for the shared scripting API). Four are highlighted below; the full list with a one-paragraph description of each is in examples/README.md.

Examples

Performance: Tapelooper

Tapelooper performance view

A varispeed 3-track tape recorder (A, B, C) plus a parallel groove track, all riding one shared transport speed. Each track records and plays back independently, overdubbing onto whatever is already looping; the groove track plays a loaded MIDI groove (or a Lua-scripted click) through the same varispeed transport. Filter, reverb, wow/flutter, drive, chorus, echo, compression, ring mod and tremolo are all Lua-scriptable, keeping the on-screen UI to the transport and record/play basics - shaped instead through the built-in script editor:

Tapelooper script editor

See examples/tapelooper/README.md.

Effects: Spectraltap

Spectraltap performance view

A Lua-scripted multitap delay: up to 24 taps share one delay buffer, each independently timed, panned, and shaped by one of eight spectral voice types (bandpass, lowpass, highpass, notch, resonator, formant, comb resonator, or ring modulator). A patch's script owns tap topology; the engine owns Hz-to-coefficient mapping, smoothing and DSP safety.

Spectraltap script editor

See examples/spectraltap/README.md.

Synth: Pingsynth

Pingsynth settings and script editor

A Lua-scripted modal resonator synth: each voice is a bank of ringing bandpass resonators, excited by an impulse (plus an optional soft noise-burst tail) on every note-on. A patch's script computes an arbitrary list of partials (frequency, gain, decay, entry delay) per note, so odd/even/stretched/inharmonic timbres are all just different Lua loops, not different C++ code paths. See examples/pingsynth/README.md.

Education: Metronome

Metronome settings and spectrum iris

A JUCE standalone metronome with 26 rhythm presets (odd meters and swing included), a damped-sine click or real drum-kit voicings (808, Reggae, Pocket kits), and a drop-bars mute feature for timing training: lock to the click and use the waveform display to see how tightly you land on the beat, switch to a shuffle/swing preset to work on feel, or use drop-bar mode to test internal time. Its timing-analysis mode records a real playing session against the beat grid and reports the timing deviation per position (mean/std deviation, a histogram, a full-bar hit distribution) as a standalone HTML report; onsets more than 70 ms from any grid position are ignored as ghost notes and shown in gray. A Lua script can program the played pattern (several instruments per beat, each at its own dB level) and the positions the analysis measures against. A timing-analysis report:

Metronome timing-analysis report

See examples/metronome/README.md.

Block size

Processing is block based, and 16 samples is the standard block size. The JUCE example plugins run their DSP in fixed 16-sample blocks (NumSamplesPerBlock), block-based classes take their block size as a template parameter, and behaviour that depends on the block size is verified at 16. Large host blocks are not a design target.

Building and testing

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..                          # library + tests only
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_FULL_PROJECT=ON ..  # + JUCE example plugins
cmake --build .

See docs/BUILDING.md for the full set of CMake switches, test/coverage tooling, the Valgrind-vs-ASan note, and how to build the Doxygen API site. See docs/IDE_SETUP.md for clangd/compile_commands.json setup.

Background

This library grew out of 35+ years in the audio sector: optimising filters at Steinberg as a student, experimental music, language-training audio, the karaoke boom's exaggerated delay and reverb chains, consumer audio electronics at Lautsprecher Teufel, and most recently the ffosso product at Orchestral Tools. Most of the DSP here is shaped by live performance - what stays expressive and controllable on stage, not just what measures well offline.

This project also fully embraces LLM-driven development: it turns ideas into working, interesting products far faster than working alone.

License

AbacDsp's own code is MIT licensed (see LICENSE). That covers the header-only core library in src/includes/ outright. The example plugins under examples/ additionally link JUCE, which is AGPLv3-or-commercial; no commercial JUCE license is configured here, so a built example plugin is effectively AGPLv3, not MIT. See THIRD-PARTY-LICENSES.md for the full breakdown of every submodule's license and what that split means in practice.

About

AbacDsp is a creative DSP library for audio plugins and standalone applications. Header-only, zero-dependency C++20 building blocks, with Lua scripting designed for LLM-assisted sound design.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages