← Back to Portfolio Lazor →

๐Ÿ”ฅ DisWhoreTion

JUCE / C++ • Multiband Pedalboard Distortion (VST3/AU)

Quick Navigation

โœจ Feature Demonstrations

Multiband Pedalboard Signal Path

DisWhoreTion is a pedalboard inside a multiband splitter. The signal goes through a full-band Pre chain, is split into up to six user-created bands with four pedal slots each, is summed, then goes through a full-band Post chain. That is 32 pedal slots in all, every one with its own on/off, mix and level.
C++ Linkwitz-Riley Crossovers TPT Filters Latency Compensation

Signal Flow

  1. Input is upsampled by the chosen oversampling factor
  2. The Pre chain (4 slots) processes the full band
  3. A Linkwitz-Riley crossover (12, 24 or 48 dB/oct) splits the signal into up to six bands, each with its own 4-slot chain
  4. Bands are summed and run through the Post chain (4 slots)
  5. The result is mixed with a phase-matched dry signal and downsampled to the output
The crossover is built from TPT sections, so split frequencies can move while audio runs. Every band passes through the allpasses of the splits above it, so all bands share the same phase, and the same allpass is applied to the dry path to keep Mix and Delta phase-exact. Delay lines line up each band's dry signal and output around pedals that add latency.

46 Pedal Models in 15 Families

Each slot can hold any of 46 original pedal models: circuit-style overdrives, distortions, fuzzes and bass drives; tube, tape, transformer and preamp saturation; wavefolders; rectifiers, bitcrushers, decimators and ring modulators; pitch shifters and sub-octaves; spectral effects; drawable DIY shapers; chaos and glitch pedals; filters, combs and formants; feedback resonators; dynamics; and a dual-IR convolver.
Circuit Modeling STFT / Phase Vocoder Convolution Drawable Waveshapers

Highlights

  1. Spectral: six modes (Clip, Quantize, Scramble, Freeze, Shift, Robot) over a 75%-overlap STFT whose size scales with the sample rate
  2. Convolver: two impulse responses with a blend (cabinets, objects, spaces or your own files), with length, reverse, pre-delay and filters
  3. DIY: shapers whose curves are drawn, painted or loaded, with mirror and even/odd symmetry options
  4. Each pedal maps up to 10 generic slot controls to its own real units and names, such as "B3 S2 Drive"
  5. Switching a slot's pedal crossfades from the old pedal to the new one over 20 ms
The pedal type list is append-only, because sessions store a pedal's index, so presets made with version 1.0 keep loading as the library grows. New pedals are built on the message thread and handed to the audio thread through a one-item mailbox; pedals the audio thread is done with go back to the message thread to be deleted, so the audio thread never allocates or frees memory.

Anti-Aliasing & Bit-Exact Processing

Distortion creates harmonics that can fold back as aliasing. DisWhoreTion fights this two ways: oversampling up to 16x, and first-order antiderivative anti-aliasing (ADAA) on its waveshapers. It also processes audio in fixed 32-sample blocks, so the output is the same at any DAW buffer size.
16x Oversampling ADAA Fixed Control Blocks Double Precision

Engine Guarantees

  1. Reported latency is always that of the 16x oversampler, so changing the factor, or rendering at a different one, never shifts the audio
  2. Host audio is gathered into fixed 32-sample blocks, so any host block size from 1 to 4096 samples, even one that changes between calls, produces the same output bit for bit
  3. That holds for modulation, morphing, feedback and MIDI too; MIDI takes effect at the start of the block it falls in
  4. Adding or removing a pedal with latency fades the output out, realigns everything, then fades back in
ADAA follows Parker, Zavalishin & Le Bivic (2016): the output is the difference quotient of the shaper's antiderivative, computed in double precision, falling back to the midpoint when the step is tiny. When a curve changes, the old curve fades into the new one over a block, each with its own ADAA state, so edits and automation never step.

Modulation System

Almost anything can move. There are 8 macros, 4 drawable LFOs, 2 envelope followers, 2 sixteen-step sequencers and 2 random sources, with up to 64 routings into the plugin's roughly 600 automatable parameters. The plugin also reacts to MIDI, so it registers as a MIDI-controlled effect.
Mod Matrix Tempo Sync Step Sequencer MIDI Effect

Sources

  1. LFOs: drawn shapes in Free, One-shot or Retrigger mode, locked to the song position when synced and the transport is playing
  2. Envelope followers: follow the input, the sidechain or the output with a low cut, attack and release
  3. Sequencers: up to 16 steps with glide, free running or restarted by each MIDI note
  4. Random: Sample & Hold, Smooth or Drift, from a seed
  5. Sources can modulate other sources' settings; they see the previous block's values
Modulation runs on the audio thread once per 32-sample block. The routings that run there, the LFO tables and the sequencer steps are built on the message thread, so the audio thread only evaluates the destinations that are actually in use.

Snapshot Morphing & Randomizer

Whole sounds can be morphed. An A↔B knob blends two snapshots and an XY pad blends four corners. A randomizer can push a patch somewhere new, changing its character without touching its level or layout.
Parameter Interpolation Pedal Standby Pool Parameter Locks Undo / Redo

Morph & Mutate

  1. A snapshot holds every band and slot parameter
  2. Continuous values blend; discrete ones (pedal models, switches, which bands exist) come from the nearest snapshot
  3. A pedal's controls only blend between snapshots that have the same pedal in that slot
  4. The randomizer's Mutate amount sets how far values move toward random ones, and how likely discrete choices are to change
  5. Locked parameters, gains, mixes and band layout stay as they are
So morphing never builds a pedal on the audio thread, the message thread prepares the pedals each snapshot needs ahead of time ("standby"), and a slot crossfades to one whenever the morph asks for a different type.

Analysis Views, Licensing & Testing

Built-in analysis shows exactly what the pedals do. A harmonics meter compares harmonics 1 to 12 of the input and output, each against its own fundamental, with THD for both. A transfer view draws the selected pedal's input-versus-output curve, and a scope and analyzer complete the set.
YIN Pitch Detection Blackman-Harris DFT HMAC Serials CPU Benchmarks

Tools

  1. Harmonics are measured at the held MIDI note, or at the input's pitch found by YIN detection
  2. Curve pedals show their exact static curve, the part of it the input is using, and a dot at the latest sample
  3. Undo/redo covers knob drags, curve and routing edits, presets, randomize and snapshot switches; host automation creates no undo steps
  4. Offline HMAC serials unlock the plugin; until then audio passes through, with latency kept
  5. A benchmark category measures CPU use for every pedal family and the factory presets
Harmonic amplitudes use a 4-term Blackman-Harris window and a DFT at each harmonic's exact frequency, so a sine of amplitude A reads as A. The analysis runs on the UI thread and allocates nothing after construction.

๐Ÿ“‹ Professional Summary

Multiband Pedalboard Distortion โ€” JUCE 8 / C++ / VST3 / AU DisWhoreTion is LuvNote's multiband distortion plugin: a Pre chain, up to six crossover bands with four pedal slots each, and a Post chain, for 32 slots holding any of 46 original pedal models. It runs as VST3 on Windows and as VST3 and AU on macOS, and shares the licensing and release pipeline of SingleGrain and DyHamic.

The engine is built for sound quality and predictability: up to 16x oversampling with a fixed reported latency, antiderivative anti-aliasing computed in double precision, phase-matched Linkwitz-Riley crossovers that can move while audio runs, and fixed 32-sample control blocks, so the output is bit-identical at any host buffer size, with modulation, morphing and MIDI included.

On top of that are a full modulation system (macros, drawn LFOs, envelope followers, sequencers and random sources, with 64 routes), A/B and XY snapshot morphing, a randomizer with locks, harmonics and transfer analysis views, offline HMAC licensing, and benchmarks: factory presets use about 3 to 9% of one CPU core at 4x oversampling.

๐ŸŽฏ Most Marketable Skills

Nonlinear DSP

  • Antiderivative anti-aliasing (ADAA)
  • Oversampling up to 16x
  • Circuit-style distortion modeling
  • Drawable waveshapers with crossfaded curves
  • STFT spectral processing and convolution

Engine Architecture

  • Phase-matched Linkwitz-Riley crossovers
  • Latency compensation across 32 slots
  • Bit-exact fixed-block processing
  • Allocation-free audio thread (mailbox handoff)
  • Append-only pedal registry for session stability

Modulation & Sound Design

  • 64-route modulation matrix
  • Drawn LFOs, sequencers, random sources
  • Envelope followers with sidechain
  • A/B and XY snapshot morphing
  • Randomizer with Mutate and locks

Quality & Release

  • CPU benchmarks per pedal family
  • YIN pitch detection and THD metering
  • pluginval and auval in CI
  • Signed, notarized macOS installer
  • Offline HMAC serial licensing

๐Ÿ—๏ธ Architecture

Engine

  • Engine (oversampled path)
  • Crossover (LR2 / LR4 / LR8)
  • SlotHost (32 slots)
  • Latency delay lines
  • Fixed 32-sample blocks

Pedals

  • PedalRegistry (46 types)
  • Circuit, saturation, folder
  • Digital, pitch, chaos
  • Spectral and Convolver
  • DIY drawable shapers

Modulation & Morph

  • ModEngine (per block)
  • ModSources and ModMatrix
  • Morph (A/B + XY)
  • Randomizer with locks
  • Pedal standby pool

Interface

  • PlayPage and EditPage
  • ChainRow and PedalPicker
  • HarmonicsMeter and Scope
  • TransferView
  • IR and DIY curve editors

State & Release

  • ~600 frozen parameter IDs
  • StateTree (routes, curves, snapshots)
  • History (undo / redo)
  • HMAC licensing
  • CMake + Ninja + ThinLTO CI

๐Ÿ† Key Achievements

๐ŸŽ›๏ธ

46 Pedal Models

Designed a library of original pedals across 15 families, from circuit-style drives to spectral, chaos and convolution effects, behind one slot interface.

๐ŸŽฏ

Bit-Exact at Any Buffer Size

Fixed 32-sample control blocks make the output identical bit for bit at any host block size, with modulation, morphing, feedback and MIDI included.

๐Ÿ“‰

Clean Distortion

Up to 16x oversampling with a constant reported latency, plus double-precision ADAA on the shapers, keeps aliasing down without shifting the audio.

๐Ÿ”€

Phase-Exact Multiband

Moving Linkwitz-Riley crossovers with a matched dry-path allpass keep Mix and Delta phase-exact across up to six bands.

๐ŸŒ€

Morphing Snapshots

A/B and four-corner XY morphing across whole sounds, with pedals prepared ahead of time so the audio thread never builds one.

โš™๏ธ

Measured Performance

Benchmarked every pedal family; factory presets run at about 3 to 9% of one core at 4x oversampling on a Ryzen 5 3600X.

โš™๏ธ Full Tech Stack

C++ JUCE 8.0.12 VST3 Audio Units (AU) Multiband Distortion Oversampling ADAA Linkwitz-Riley Crossovers STFT / Phase Vocoder Convolution Modulation Matrix Snapshot Morphing YIN Pitch Detection JUCE APVTS HMAC-SHA256 Licensing CMake Ninja GitHub Actions Apple Notarization Inno Setup pluginval
← Back to Portfolio