This plan covers version 1 as scoped in Requirements.md: local NAM blocks, local IR blocks, a delay block, a reverb block and a compressor block, plus everything around them (chain, split/merge, tuner, metronome, presets, settings). Later features (IR loader, other effect categories) are not built in v1, but the design leaves room for them.
| Area | Choice | License |
|---|---|---|
| Plugin framework | DPF — VST3 and LV2 | ISC |
| NAM | NeuralAmpModelerCore (brings Eigen and nlohmann/json) | MIT / MPL2 / MIT |
| UI | DPF's DGL with NanoVG | ISC / zlib |
| Zip reading | miniz 3.1.0 | MIT |
| Content hash | xxHash 0.8.3 (XXH3-128) | BSD-2 |
| Tests | doctest | MIT |
| Font | Jost Light and Regular (embedded; resources/fonts, tools/embed_font.py) |
OFL |
| Build | CMake (DPF's dpf_add_plugin), dependencies as git submodules under deps/ |
— |
Targets: Linux and Windows, x86-64 with AVX2/FMA required (-mavx2 -mfma / /arch:AVX2), and macOS 11+ as a universal binary (arm64, and x86_64 with AVX2/FMA through -Xarch_x86_64). VST3 and LV2, plus AU on macOS; no standalone app for now. Compilers: GCC/Clang on Linux, MSVC on Windows, Apple Clang on macOS. The few CPU-specific bits (flushing denormals, the spin-wait hint) are in src/engine/CpuHints.hpp.
CMakeLists.txt
deps/ DPF, NeuralAmpModelerCore, miniz, xxHash, libwebp, doctest (submodules)
src/
plugin/ DPF Plugin subclass: parameters, state, run()
engine/ Real-time audio engine (no allocation, no locks)
Engine Owns the active ChainGraph; global input/output stages
ChainGraph Immutable processing graph built from a ChainState
Block Base class for every block
BlockRegistry Table of available block types (the "modular effects" hook)
blocks/ NamBlock, IrBlock, DelayBlock, DoppelgangerBlock, ReverbBlock, CompressorBlock
global/ InputStage, ToneStack (Bass/Mid/Treble), Limiter, Meters
tuner/ PitchDetector, Tuner (done, M8)
metronome/ Metronome (done, M9; its sounds are generated in code)
ParallelWorker Second-core thread for split branch B (done, M6)
state/ Plain data, shared by DSP and UI
ChainState Blocks, slots, split/merge, per-block settings (JSON)
Preset Load/save, embedding, missing-file handling
Settings Global per-user config, favorites
Library NAM/IR scanner, zip support, hashing
UserImages the user's amp, cab and pedal image libraries
UndoStack
ui/ DPF UI subclass and NanoVG widgets
widgets/ Knob, Toggle, Button, Meter, BlockTile, ChainView, Dialog, ...
theme/ Colours, sizes, fonts
resources/ Fonts, generic block images, knob images
tests/
docs/
in ─► Input level ─┬─► Chain (up to 32 blocks, optional split A/B → merge) ─► Bass/Mid/Treble ─► Output level ─► (+ metronome) ─► Limiter ─► meters ─► out
│
└─► boost ─► Tuner analysis (dry input)
- Global bypass passes the input straight to the output (meters keep running).
- Tuner mute silences the guitar path only; the metronome stays audible.
- Metronome is mixed in before the limiter, so clicks cannot clip the output.
- Mono mode takes the first input and processes one channel, output to both sides. It turns stereo where a mono sound needs to spread (owner, 2026-10-29: a mono guitar with two amps panned apart): after a split's merge, and at a block whose descriptor has
stereoset (the Delay, for its Stereo and Ping-Pong modes); from there on blocks run on two channels. This is decided by the chain's layout alone (a bypassed stereo block still counts), so blocks never switch channel counts while playing. Stereo mode runs every block on two channels; a NAM block then holds two model instances (double CPU, as agreed).
Every effect is a subclass of Block:
struct BlockDescriptor {
const char* typeId; // "nam", "delay", "reverb" — stored in presets
const char* displayName;
Category category; // NAM, IR, Delay, Reverb, ... (Add Block dialog)
ParamSpec params[kParamsPerSlot];
Block* (*create)();
};
class Block {
public:
virtual void prepare(double sampleRate, uint32_t maxFrames, int channels) = 0;
virtual void process(float** io, uint32_t frames) = 0; // real-time safe
virtual void setParam(int index, float value) = 0;
virtual uint32_t latency() const { return 0; }
virtual void reset() = 0;
virtual void setTempo(double bpm) {} // host tempo, before every process()
virtual float meter() const { return 0; } // a level the UI shows, e.g. gain reduction
};A block's meter() reaches the UI through one output parameter per slot (kParamSlotMeterBase + slot).
New effects are added by writing one class and one registry line. Removing an effect is deleting both. The Add Block dialog, parameter names and preset loader all read from the registry.
The audio thread never allocates, locks, or touches files.
- Edits (add/move/remove block, change model, split/merge) update the
ChainStatein the UI, which sends it to the DSP as thechainplugin state. - The DSP's
setState()(always called off the audio thread) builds a new graph. NAM files are loaded and warmed up there, and blocks that didn't change are reused, so their state (delay tails, reverb tails) carries over. - The finished graph is handed to the audio thread through a lock-free single-slot exchange. The audio thread picks it up at the start of a buffer, fades the chain output out over 5 ms, swaps, and fades back in over 5 ms. (A fade out/in rather than a crossfade, because reused blocks can't run in two graphs at once.)
- The old graph goes back through a lock-free queue and is deleted off the audio thread.
Host activation. DPF counts the plugin as active before activate() returns, and its VST3 process() activates the plugin itself, so a host can run audio while activate() re-prepares the engine (hosts call it from different threads; Reaper when an FX is switched off and on). The plugin keeps them apart with two flags (sequentially consistent): activate() waits for a run() in progress, and run() outputs silence while activate() prepares. Activation prepares and resets every block, so a block must play on after prepare() + reset() just as a fresh one does (tests/BlockSanityTests.cpp checks every block type). The IR block didn't: FFTConvolver's reset() unloads the IR, which silenced any chain with a cab after Reaper switched the FX off and on (2026-10-29); the block's reset() now leaves its convolvers alone.
NaN recovery. A NaN or infinity stays in every recursive filter for good, which would leave the plugin silent until it's removed. The engine replaces non-finite input samples with silence, silences a non-finite chain output before the tone stack and limiter (resetting those if they ever see one), and reports it (takeChainFault()); the plugin's exchange thread then rebuilds the chain with fresh blocks (forgetBlocks(), at most once a second).
Parameter changes (knobs, automation, MIDI) don't rebuild anything. They go straight to the block through its slot, with per-parameter smoothing.
Parameter values live in the host. ChainState also stores each block's normalized values and bypass, but only for presets and undo: when one is loaded, the UI pushes those values to the host. The DSP always reads the host's values.
The host sees a fixed parameter list:
- Global: input mode, input, bass, middle, treble, output, global bypass, limiter on/off, tuner on/off, tuner mute, metronome on/off, metronome volume, and a few more.
- 32 slots × 17 parameters: slot bypass plus 16 block parameters (8 until the Doppelganger Delay needed more; changed before release, so no saved automation was affected). That's ~550 slot parameters, which hosts handle fine.
Each block is assigned a free slot when it is created and keeps it for its whole life, so dragging a block to a new position doesn't break automation. Host-facing names are generic ("Slot 05 · P2"). The UI shows real names, and the slot number in the block panel ("Distortion · Slot 05") so users can find it in their DAW; the tile shows the block's category (it showed "S05" until 2026-10-25, owner's request).
MIDI learn: right-click any control (or a block tile, for its bypass) → "MIDI Learn", then move a controller. The mapping (CC + channel → host parameter) is stored in the chain state, so it is saved with the project, in presets and in undo, and reaches the DSP by the same routes as the chain. Incoming CCs are applied at the start of each buffer in run(). The DSP reports each CC through hidden output parameters: the UI learns from them, and writes mapped values to the host, since LV2 hosts mostly can't take parameter changes from the DSP (in VST3 the DSP also reports them itself). Right-click → "Clear MIDI" removes a mapping; removing a block removes its mappings.
Program Change (owner, 2026-11-02; footswitches like the M-Vave Chocolate send only these out of the box): MIDI learn takes one too (a MidiMapping with program, "pc": true in JSON). It can't set a value, so what it does depends on the control (ChainState::programAction(), globalProgramAction()): a block's bypass, a block's Toggle controls and the global switches flip on each press (flippedValue()); Momentary controls and the looper's Rec/Dub, Play/Stop, Clear and Tap are pressed: 1 for one process() call, then 0 again (Engine::midiProgram()); knobs and choices take none, and learning one onto them says so. The DSP reports Program Changes in hidden outputs (MIDI Last Program, MIDI Program Value, MIDI Program Count, the count last since hosts tend to report changes in index order) for learning and for the UI to pass flips on to the host, as with CCs.
A Program Change no mapping takes may load a preset: Settings::programPresets (program -> preset path; any channel), set in Manage Presets (a Program button per preset: click, press the footswitch; a second click removes it). The plugin's exchange thread loads the preset itself (loadProgramPreset() in the plugin: loadPresetFile() with the library indexes' last scans for missing files by hash, retireLoopers()/migrateBlocks() from src/state/ChainMigration.* as the UI does, the globals and block values into the engine, then the chain), so it works with the window closed. run() tells the host the new values (requestParameterValueChange(), at most 64 a buffer). The DSP then bumps Preset Program (count * 128 + program); an open UI takes the chain from the exchange file as one undo step and sets the host's values too. Limit: LV2 hosts without the port change request extension (Reaper) don't learn the values while the window is closed, so a project saved then keeps the chain with the old values; VST3 has no such limit.
- The chain has at most one split.
ChainStatekeeps the blocks in one list, left to right, plussplit = {begin, end}: blocks[begin, end)run in the two branches, and each of them has abranchtag (A or B). Blocks beforebeginrun before the split, blocks fromendon after the merge. A branch may be empty; it then carries the signal unchanged (a parallel dry path).ChainStatehas helpers (sectionIndices,insert,remove,move,addSplit,removeSplit) that keep the range and tags consistent. Removing the split keeps every block: the branches become serial, A then B. The chain JSON went to version 2 for this; version 1 still loads. - The merge has A/B balance, and a level, pan and phase invert per branch. These are host parameters (
kParamMergeBalance…kParamMergeInvertB), so they can be automated; one set is enough, as there's only one split. Presets save them. Balance keeps both branches at full level in the middle and turns the other one down towards either end. Pan works like a balance control, in Mono mode too (the chain is stereo after the merge; a branch still mono plays on both sides). Align (kParamMergeAlign, ±5 ms; owner, 2026-10-29: two similar amps summed sounded bad, likely a few samples apart) delays branch B (right) or A (left) by a fractional, smoothed amount (Hermite reads), to line up two amp captures; it adds no reported latency. At 0 it passes the branches through exactly. All merge gains are smoothed, so phase invert fades through zero instead of clicking. Invert A and B are off by default (owner, 2026-10-29: Invert A was on for a while, but out-of-phase captures aren't common); a new split resets the merge controls to their defaults. - If the two branches have different latencies, the shorter branch is delayed to match (
DelayLine), and the host is told the longer one. - Parallel processing (on by default; Settings > Parallel processing. The DSP reads the setting when it builds a chain, and the UI resends the chain when it changes): a
ParallelWorkerthread is woken each buffer to run branch B while the audio thread runs branch A, and the audio thread then waits for it. Waking is lock-free (an atomic counter withwait/notify_one), and the audio thread spins briefly, then yields, until the worker is done. The worker copies the audio thread's scheduling policy and priority on its first job (Linux), or usesTHREAD_PRIORITY_TIME_CRITICAL(Windows), and flushes denormals like a host audio thread. If the worker is late, the audio thread keeps waiting (no extra latency, but a risk of a dropout on an overloaded machine). With the toggle off, or with an empty branch B, both branches run in sequence on the audio thread. The worker thread is only started once a chain needs it. - UI: with a split, the chain view has two rows of slightly smaller tiles: branch A and everything outside the split on the top row, branch B below, and a tall merge tile where they join (click it for the merge controls, × to remove the split). Each branch and the part after the merge has its own "+". While there's no split, hovering the gap before a block (or before the "+") shows a small split icon on the signal line; clicking it adds an empty split there (both branches start empty). Blocks are dragged between rows and sections freely; a line in the highlight colour shows where a block will land.
- All v1 blocks are zero latency by default. The engine adds up block latencies along the path, aligns branches, and reports the total to the host (DPF
setLatency). The pitch-following blocks can add latency with their Lookahead (4.11, "Note tracking"), and the pitch blocks with their HQ mode (4.11, "HQ pitch shifting"; about 150 ms, off by default). A bypassed block with latency still delays its signal (Node::bypassDelay), so bypassing it doesn't change the timing or the reported latency. - Sample rate: NAM models record the rate they were trained at, usually 48 kHz. If the host runs at that rate, there's no resampling. Otherwise the NAM block resamples with a low-latency resampler (a few samples), reports that latency, and shows a small warning badge on the block.
- Loads A1 and A2 files through NeuralAmpModelerCore (pinned to v0.6.0, which includes the A2 fast path). Full/Lite is selected with
nam::SlimmableModel::SetSlimmableSize(1.0 = Full, 0.0 = Lite); it isn't real-time safe, so it's applied off the audio thread. - A2 size: global default from Settings, with a per-block override.
- Normalization (per-block toggle): uses the loudness value stored in the
.nammetadata to bring models to a common level. Models with no loudness value are left as they are, with a badge saying so. - Block parameters: input gain, output gain, normalization on/off, A2 size (Full/Lite).
Parameters: time (ms, or a note value when synced), tempo sync on/off, feedback, mix, tone (low-pass in the feedback path), mode (mono / stereo / ping-pong), stereo spread, modulation depth. In stereo mode, left and right have separate lines, offset by the spread setting.
- Time changes glide (a smoothed, fractionally read delay time), like a tape or analog delay, instead of clicking.
- Synced, the Time knob picks from 14 note values (1/1 down to 1/32, with dotted and triplet values); the host tempo comes from DPF's
TimePosition, 120 BPM when the host doesn't report one. Max delay is 4 s. - The feedback path has a fixed 40 Hz high-pass, the Tone low-pass and a soft limit above half scale, so 100% feedback stays bounded.
- Ping-pong: the input (summed to mono) enters on the left, repeats alternate left and right.
- Mix: the dry signal stays at full level up to 50%, and the wet signal reaches full level at 50% (also used by the reverb).
The owner's idea: a delay whose echoes alternate between two effects. With the default order, echoes 1, 3, 5… are flanged and echoes 2, 4, 6… are chorused, and each echo has only its own effect (they don't stack).
- An ordinary feedback delay keeps every echo in one loop, so effects in the loop would pile up. Instead, one clean line repeats at 2T with feedback g²:
s(t) = x(t) + g² F² s(t−2T). Reading it at T gives the odd echoes,g F s(t−T); the loop's own feedback term gives the even ones. These are exactly the echoes of a delay with time T and feedback g, split by parity, so each stream goes through its own effect outside the loop. F is the Tone low-pass (and a 40 Hz high-pass), once per repeat, so repeats darken like the Delay block's. - Flanger: a 0.25–5.25 ms swept delay with regeneration (−95…95%), level-compensated. Chorus: 1–3 voices around 10 ms, spread evenly around the LFO cycle. Each has rate, depth and mix (0% = clean echoes).
- Order swaps which effect gets the odd echoes. Width offsets the right channel's LFOs (up to 180° for the flanger, 90° for the chorus). Bounce leans flanged echoes left and chorused echoes right (stereo mode).
- Time, Sync, Feedback and Mix work as in the Delay block (same note values; synced up to 4 s, so the line holds 8 s).
- 16 parameters: time, sync, feedback, mix, tone, order, width, bounce, then flange rate/depth/regen/mix and chorus rate/depth/voices/mix.
An algorithmic reverb written in-house (Dattorro-style plate/hall network). Parameters: type (room / hall / plate), decay, pre-delay, damping, low cut, high cut, width, mix. Mono input gives a stereo-wide tail when the plugin is in stereo mode.
- One figure-eight tank (Dattorro 1997) voiced three ways: Plate is the original sizes; Hall scales the tank by 1.45 with deeper, slower modulation; Room scales it to 0.42 with less diffusion and adds early reflections tapped from the pre-delay line.
- Decay is the RT60 in seconds; the tank's decay gain is computed from it and the tank's loop time, so the set time holds for every type and sample rate (tested).
- Buffers are sized for the largest voicing in
prepare(), so changing type on the audio thread only changes read positions.
Added to v1 at the owner's request. Studio style, feed-forward: stereo-linked peak detector, soft-knee gain computer, attack/release smoothing of the gain in dB, then makeup gain and a dry/wet mix for parallel compression. Parameters: threshold, ratio, attack, release, knee, makeup, mix. Its gain reduction is shown in the block panel through the block meter.
- The input (after the Input level, before the chain) is copied into a lock-free ring buffer, and the analysis runs on a DSP-side thread every 20 ms while the tuner is on, never on the audio thread (
engine/tuner/Tuner). Stereo input is analysed as the sum of both channels. - The detector doesn't depend on the level, so quiet inputs work as well as loud ones (this is what the "boost" in the signal flow stands for): only a gate at -74 dBFS RMS decides whether there's anything to analyse.
- Pitch detection (
engine/tuner/PitchDetector): McLeod Pitch Method (as in Fretbored) on an ~85 ms window (4096 samples at 48 kHz, enough for 31 Hz), FFT autocorrelation and parabolic peak interpolation, which on its own is good to about ±0.4 cent. It is then refined: a Hann-weighted normalized cross-correlation over a whole number of periods, low-passed above the 6th harmonic, measured at the largest multiple of the period that fits and divided back. The refinement uses up to four windows of audio (~340 ms) when the note has been steady that long, which makes it far less sensitive to noise. - Only audio at a steady level is analysed: levels are compared in chunks of whole periods, and a window that isn't steady (a note starting, stopping or changing) gives no reading at all, rather than a wrong one. The UI keeps showing the last note for a second.
- The detected frequency and clarity are output parameters, so this works when an LV2 host runs the UI in a separate process. The UI takes the median of the last five readings (starting over when the note clearly changes) and works out the note and cents from the reference pitch. Arc (the needle, the default; owner, 2026-11-02, needle concept 4 of a third round of mockups, turned to point up: a plain needle from a pivot at the bottom to a ±50 cent scale arc, green in tune;
drawArc(); until 2026-11-14 it was a bolt of lightning that writhed and forked further off, which the owner dropped for a normal needle), Runes (the default from 2026-10-31 to 2026-11-01, the owner's pick from ten mockups: 21 crystal glyphs of 5 cents each over ±50, lit from the centre out to the pitch, only the centre one, green, in tune;drawRunes()) and Aurora (the strobe; owner, 2026-11-02, strobe concept 6 of the third round: three curtains of light over a horizon, the fundamental and two octaves, drifting right when sharp and left when flat, still and green in tune; rays in the highlight's colour where they stand, rendered on the CPU every frame into an image at the screen's resolution (float, then dithered to 8 bits) and added over the background;drawAurora(). They were NanoVG gradient strokes a few pixels apart until 2026-11-14: faint and dark, the gradients banded and neighbouring strokes left stripes) views (Arc and Aurora replaced the Vernier, two rings of ±50 and ±10 cents, and Chevrons, rows of chevrons marching the way to tune, the owner's picks of 2026-10-31 from a second round of mockups; before those, a knob-style arc and three rows of bands; Hive, strobe 6, a honeycomb with bands of light sweeping across it, was removed on 2026-11-01: it looked incredible but was too strange to use) are drawn in the UI; the view is hidden parameters, so it's saved with the project: Tuner Runes (kParamTunerRunes, added after the slots' latches, so the old indices stay; default off since 2026-11-01) over Tuner Strobe (Arc or Aurora). Tuner Chevrons (kParamTunerChevrons, after Tuner Runes) picked Chevrons over Hive and is unused now (host parameters are never removed). Picking a view sets the other parameter to match. - While the tuner is on, the guitar is muted by default (Tuner Mute; also in global bypass); the metronome stays audible.
- Reference pitch A4 is adjustable from 415 to 466 Hz.
- Accuracy target: ±0.1 cent from 31 Hz up to the 24th fret of the high E string (~1319 Hz), checked by tests at 44.1, 48 and 96 kHz on every half semitone, with pure tones, harmonic-rich tones and noisy tones with a weak fundamental (worst case about 0.01 cent), and through the start and end of notes (a gated tone; a plucked-string-like note whose harmonics decay at different rates). No recorded signals yet: the tests are synthetic.
- Runs in the DSP (
engine/metronome/Metronome), scheduled to the exact sample: each beat's time is kept as a fractional sample position and rounded, so the tempo never drifts, whatever the buffer size. Clicks are mixed in after the Output level and before the limiter, so they can't clip the output; the tuner's mute doesn't silence them. Global bypass does (it's a true bypass). - Free mode (default): its own tempo, starting on beat 1 when switched on. Switching off lets the click that's sounding play out (cutting it would pop).
- DAW sync (switch): follows the host's tempo, time signature and transport position (DPF
TimePosition): clicks fall where the host's beat position crosses a beat or subdivision, only while the transport plays. Each click has an ID (beat × 16 + subdivision), so a click on a buffer boundary is never played twice or missed, and a jump (loop, locate) starts over at the new position. The tempo trainer doesn't apply in sync mode (the host sets the tempo); the gap trainer does, on the host's bars. - Features match Fretbored: 20–300 BPM (slider, ±1/±5, keyboard), tap tempo, 1–16 beats over 2/4/8/16 with beat grouping (cycled through every split into 2s and 3s; the default follows Fretbored, e.g. 7/8 = 2+2+3), per-beat accents (accent/normal/soft/mute, set by the grouping and by clicking a beat), the eleven subdivisions, Classic/Digital/Beep sounds with separate volume for subdivisions, step and gradual tempo trainer (also slowing down), gap trainer, and a visual pulse (the pendulum sweep was removed at the owner's request, 2026-10-23: at host redraw rates it looked choppy). Fretbored's "visual sync" offset (for Bluetooth speakers) isn't needed in a plugin.
- Every setting is a host parameter (tempo, volume, on/off and sync are automatable; the rest are hidden), so it works the same in every host — including Reaper's LV2, which doesn't deliver UI state messages — and is saved with the project. The accents are 16 parameters; the grouping is a bit mask of the beats that start a group, kept only for the UI. The DSP reports the beat being heard, a beat counter (the UI pulses when it changes), the bar, the tempo being played and the gap trainer's mute as output parameters.
- Panel: the top bar's Metronome button switches it on and off (and flashes on every beat); ▾ next to it opens the panel, which covers the chain while it's open. Shortcuts while the panel is open (so only while the plugin window has the keyboard focus): Space start/stop, ↑/↓ tempo (Shift: 5 BPM), T tap.
- Sounds: all generated in code at the host rate, no samples (owner's decision, 2026-10-23, so every sound is our own). Classic recreates Fretbored's click, which turned out to be a formula: fitting the owner's two WAVs gave exactly e^(-t/50 ms) (0.5 sin wt + 0.15 sin 2wt + 0.05 sin 3wt), 50 ms long, at 1500 Hz (accent) and 1000 Hz (beat and subdivisions), with zero residual; with the same 0.5 ms / 6 ms edge fades the generated clicks matched the old samples to -56 dB (16-bit rounding). The owner then raised it two semitones (2026-10-26): 1683.6 and 1122.5 Hz. Digital (a short band-limited square wave) and Beep were already generated in code.
Added before v1 at the owner's request (Requirements, "Pedals"): every pedal is a block like the others, written from scratch, with several varieties as a Type choice where that makes sense. All are zero latency and real-time safe (buffers sized in prepare()), and each has at most 16 controls (most use 8 or fewer).
| Category | Blocks (types) |
|---|---|
| DI | Studio DI, Valve DI, Opto DI, Hi-Fi Preamp, Tube Preamp, British Preamp, Driver DI, Dual Drive, Modern Drive, Crossover Drive (bass DI boxes and preamps) |
| Distortion | Boost (Clean, Treble, Mid), Overdrive (Screamer, Blues, Transparent), Distortion (RAT, DS-1, Metal), Fuzz (Face, Muff, Octave), Gated Fuzz, Envelope Drive, Bitcrusher, Jawari |
| Dynamics | Compressor, Diode Bridge, Console Comp, Opto Leveler, Opto Stomp, FET Limiter, Squash Comp (compressor pedals), Noise Gate (Gate, Expander; key from the block or the rig input), Hum Eliminator (a single coil's mains hum learnt and subtracted), Volume (Audio, Linear taper), Auto Swell, Kill Switch |
| EQ | Graphic EQ (7 bands, GE-7 centres), Parametric EQ, Acoustic Sim |
| Modulation | Chorus (Classic, Dimension, Tri, Vibrato), Flanger, Phaser (4/6/8/12 stage, Vibe), Barber Pole, Modulation Sweeper, Tremolo (Sine, Triangle, Square, Opto, Harmonic, Pan), Rotary, Doubler, Ring Mod, Warble, Slicer, Swarm, Chaos Mod |
| Reverb | Reverb (Room, Hall, Plate), Spring Reverb, Shimmer, Freeze, Bloom Reverb, Gated Reverb, Sympathetic Strings |
| Delay | Delay, Tape Echo (seven head combinations), Ducking Delay, Reverse Delay, Pitch Delay, Beat Repeat, Grain Cloud, Tape Stop, Bouncing Ball, Pattern Delay, Looper |
| Pitch | Octave (analog style), Poly Octave, Pitch Shifter, Whammy, Harmonizer, Strum Machine, Hard Tune, Detune, Capo, Sustainer |
| Synth | Arpeggiator, Organ, Synth, Super Saw, FM Synth, Fold Synth, Acid Synth, String Machine, Chip Synth, Theremin, Sync Lead, Phase Distortion, Wavetable, Sub Bass, Laser, Drone Keeper, Harmonic Painter, Trumpet, Violin, Piano, Drum Trigger, Fart |
| Filter | Filter (LFO or random-step sweep), Robot Filter (sample and hold: random, 8-step loop or envelope) |
| Wah | Wah (expression), Auto Wah (Wah, LP, BP, HP voicings), Talk Box (formant vowels: pedal, envelope or LFO) |
The DI category (2026-10-24, the owner: bass DI boxes; asked whether they are easier than guitar amps: yes, a few stages each, so they're built, not captured; blocks/DiBlocks.*, tests in tests/DiTests.cpp). A shared base (DiBase): every knob smoothed in its own units and the filters (and gains) redesigned every 32 samples while one glides, two 4x oversamplers and a 10 Hz DC blocker per channel. The tube stage is x / sqrt(1 + x^2) with different headroom on each half (1 and 0.6) around a 0.15 bias, so it has even harmonics and no output for no input. A bass speaker voicing (45 Hz high-pass, +3 dB at 110 Hz, -4 dB at 450 Hz, two low-passes at 4.5 and 5.5 kHz) and an optical compressor cell (peak detector, 6 dB soft knee, a release that is 65% an 80 ms part and 35% a 1.5 s part) are shared. Studio DI: a passive transformer DI: the lows under 150 Hz (12 dB/oct split) go through a slightly asymmetric curve driven up to 30x by Iron, and replace the clean lows in proportion (a core saturates on the lows first); Low Cut (Off, 30, 60, 100 Hz), Air (shelf at 9 kHz), a 21 kHz top. Valve DI: the tube at unity for small signals, driven up to 24 dB by Warmth (then scaled back), and six voicings (Flat, Deep, Bright, Mid, Scoop, Vintage: shelves, a mid peak and, for Vintage, a 4.5 kHz top). Opto DI: the optical cell at 3:1 with the threshold from -6 to -46 dBFS (Peak Reduction), make-up Gain, parallel Mix, Bright (+4 dB shelf at 6 kHz), then the tube stage at unity; the meter shows the reduction. Hi-Fi Preamp: the cell at 4:1 (Comp: threshold -6 to -40 dBFS, a little automatic make-up, off at 0), the tube driven up to 18 dB and scaled back, Bass (60 Hz shelf), Mid at Mid Freq (180-1000 Hz), Treble (4 kHz shelf). Tube Preamp: a classic all-tube bass preamp: up to 30 dB into the tube (a quarter of it in dB shows as level), the tone stack (Bass 60 Hz shelf, Mid at 220/450/800/1600/3000 Hz, Treble 4 kHz shelf), Ultra Lo (+2 dB at 40 Hz, -10 dB at 500 Hz), Ultra Hi (+9 dB shelf at 8 kHz), then a soft second stage and a 14 kHz top. British Preamp: up to 24 dB into a medium curve (scaled back to about 7 dB louder at full gain), Pre Shape (-10 dB at 400 Hz, +3 dB at 60 Hz, +4 dB at 4 kHz), a five-band graphic (63, 200, 600, 1600, 5000 Hz, Q 1.1), a 12 kHz top. Driver DI: a tube-amp emulating DI: a 40 Hz high-pass and a +4 dB push at 700 Hz into a medium curve then the tube (6-42 dB of drive), the speaker voicing and Presence (2.5 kHz shelf) on the driven side, blended with the clean bass (Blend), Bass (80 Hz) and Treble (5 kHz) after the blend. Dual Drive: a clean channel and a distorted one (100 Hz high-pass, 12-48 dB into the hard curve, a 5 kHz top; Color: -8 dB at 500 Hz, +4 dB shelves at 100 Hz and 3 kHz), each with its level, then Bass, Mid (600 Hz) and Treble on the mix. Modern Drive: 70 Hz high-pass, Grunt (150 Hz shelf, -6 to +12 dB) and Attack (2.5 kHz shelf, -6 to +12 dB) into 12-54 dB of the hard curve, a 6.5 kHz top, blended with the clean bass, then Bass (80 Hz), Lo Mid (500 Hz), Hi Mid (1.5 kHz) and Treble (5 kHz). Crossover Drive: a Linkwitz-Riley crossover (80-500 Hz): the lows clean at their level, the highs into 20-50 dB of the medium curve (at the lowest drive about linear, so the bands sum flat), a Tone low-pass (1.5-12 kHz) and a high-pass at 0.7x the crossover, at their level. At the defaults, for a -20 dBFS bass, every box is within about 6 dB of bypass (XYTHOS_DI_LEVELS=1 ./build/xythos-tests -tc="DI levels*"). The UI draws them as pedals in a cyan-blue, each with its own symbol; the category's symbol is a DI box.
The compressor pedals (2026-10-29, the owner: "half a dozen compressor pedals", Neve-based circuits and optical compressors among them; blocks/CompBlocks.*, tests in tests/CompPedalTests.cpp). Each is its circuit's way of compressing and the colour of its stages, not a capture. A shared base (CompBase) like the DI boxes' (knobs smoothed in their own units, redesigns every 32 samples while one glides, two 4x oversamplers and a 10 Hz DC blocker per channel), but it runs a frame at a time so the detection is stereo-linked; meter() is the reduction. Diode Bridge (a Neve 33609): a feedback compressor (the detector, 0.3 ms attack and 30 ms release, listens to the bridge's output, so a slope s is a ratio of 1 + s), 4 ms attack, a 6 dB knee, Ratio 1.5/2/3/4/6:1, Recovery 100/400/800/1500 ms or Auto 1 (60% a part releasing in 100 ms, 40% one charging in 300 ms and releasing in 1.5 s) and Auto 2 (50/50, 200 ms and 5 s); input transformer iron (the lows under 150 Hz through the asymmetric curve, 2x, half of it), the bridge's even distortion (u^2 / (1 + u^2) of the signal over the threshold's level, 0.17% of the threshold level per dB of reduction, about 0.5% at 10 dB), a 22 kHz output transformer, Gain, then a feed-forward limiter (1 ms attack, 100 ms release, 20:1, 2 dB knee; Limit is its threshold); the meter adds both. Console Comp (a Neve channel: a 1073-style preamp into a 2254-style compressor): the class-A stage (the asymmetric curve, headroom 1.2 and 0.8 around a 0.1 bias) driven from -12 to +24 dB and scaled back so a quarter of the rise shows as level, input transformer iron under 120 Hz (2-8x, 30-100% with Drive), then the feedback diode bridge as above with Attack 2/8/25 ms and Release 50-3000 ms, a 20 kHz top, Level. Opto Leveler (an LA-2A): feedback, the side chain through Emphasis (a 2 kHz shelf, 0 to +12 dB), a 0.5/25 ms detector; Peak Reduction sets the threshold from -6 to -46 dBFS; Compress is a slope of 2 with a 10 dB knee (about 3:1), Limit 9 with 4 dB (about 10:1). The cell: both halves attack in 10 ms; one releases in 60 ms, the other in 0.5 to 5 s, slower as its history (the reduction averaged over 3 s, full at 12 dB) grows; Gain into the tube stage. Opto Stomp (an LED and photoresistor stompbox): feed-forward; the LED follows the input (1 ms attack, 15 ms release) times Sustain (0-40 dB); the cell's conductance goes to the light^0.7 (so the ratio rises gently, about 3:1 when working hard), attacking in 6 ms (the pick gets through) and recovering with a time constant of 60 ms + 600 ms / (1 + conductance) (fast while bright, slower as it darkens); the gain is 1 / (1 + conductance) (a divider), with 30% of Sustain's dB as automatic make-up; Tone (2.5 kHz shelf, ±6 dB), Blend, Level after the blend. FET Limiter (an 1176): feed-forward peak detection after Input (0-48 dB) against a fixed -10 dBFS threshold; Ratio 4/8/12/20:1 (knees 4/3/2/1 dB) or All (all buttons in: a slope of 1.1, so loud notes come out quieter, no knee, 70% of the release, more FET distortion); Attack 0.02-0.8 ms, Release 50-1100 ms; the FET's 2nd harmonic grows with the reduction and the class-A output stage (asymmetric, headroom 2 and 1.6) grits when pushed; the output is compensated by -Input, so Output is the make-up. Squash Comp (an OTA stompbox): the OTA's gain is Sustain's maximum (0-36 dB) over 1 + that x the envelope / 0.1 (a 1 or 12 ms attack, 250 ms release), so quiet notes come up by up to Sustain and loud ones level off near -20 dBFS; the OTA's soft curve at 4x, a 6.5 kHz top, Blend, Level after the blend; its meter (range 36 dB) is the squeeze. At the defaults every pedal is within about 5 dB of bypass at -20 dBFS (XYTHOS_COMP_LEVELS=1 ./build/xythos-tests -tc="compressor pedal levels*"). They have their own symbols but no photos yet: they're drawn with the placeholder art until the owner sends their renders (prompts in docs/PedalImagePrompts.md).
The Hum Eliminator (2026-11-14, the owner: "a pedal which filters out that single coil hum, and leaves the original guitar tone completely unaltered"; a Strandberg Boden 7 with Fishman Fluence Abasi pickups in their single-coil voicing; blocks/HumEliminatorBlock.*, the DSP in dsp/HumCanceller.hpp, tests in tests/HumEliminatorTests.cpp). The owner's four DI recordings (96 kHz, bridge and neck, humbucker and single coil; kept in tests/recordings/hum/) showed what the hum is: the single coil's floor is about -72 dBFS against the humbuckers' -84 to -97, and over 80% of it is harmonics of the mains, 60.00 Hz give or take 0.03, odd ones stronger, reaching past 10 kHz with most of the energy between 2 and 10 kHz (which is why gain makes it so loud; it's a buzz more than a hum). Each harmonic is coherent over seconds (0.95-0.99 over 1.6 s), the waveform's shape and level hold still, but its timing drifts: the grid's frequency moved by 0.007 Hz across a 4 s phrase, which at the 83rd harmonic is more than a whole cycle. The rest (the remaining 20%) is broadband hiss and interference, also some 20 dB above the humbuckers', which nothing without a second pickup as a reference can take away. So the block subtracts, never filters: the guitar goes through untouched and only an estimate of the hum is taken away (Amount scales it). Its parts:
- The period: an LMS fit of the lag at which the input repeats (the input against itself one period ago, through a Catmull-Rom fractional delay, on a 400 Hz-7 kHz band so hiss and a dying note's low end count less), independent of the template, so it finds the frequency from anywhere within about 0.1 Hz of 50/60 (the loop's linear range at the band's top; the clamp is ±1 Hz). The per-sample estimate is clamped only at ±50 samples: the buzz is spiky, and most of what it says comes in its peaks.
- The template: one period of the hum, a table of one point per sample (sample rate / mains), read and learnt through Catmull-Rom weights at the current phase (each sample nudges the four points it was read from by the error), with Adapt as its time constant (default 0.5 s), five times faster while it holds little of the floor (starting up, or the hum grew). Two points per sample was tried first: at a sample rate that's an exact multiple of the mains, every other point was never visited and the slope (below) was garbage.
- The phase: advanced by the period and pulled by the template (10 Hz): the error times the template's slope says how far ahead or behind it is. A slow integrator (2 Hz, at most ±0.05 Hz, paused for 0.2 s after a relock) learns what frequency the period fit leaves, since it lags a mains on the move, so a note's hold starts on frequency.
- When it learns: only while the input is within 3-9 dB of its floor, so notes never get into the template. The input's level is its mean square over exactly one period (a steady hum reads without ripple, and a note is forgotten one period after it stops; a 20 ms smoother took 190 ms to fall 40 dB, so short gaps never counted as quiet). The floor is a minimum follower: falls at once, rises 1 dB/s, 8 dB/s until the template holds a quarter of it (from silence, or when the hum grows). A pick's first millisecond (0.5 ms power over 20 dB above the floor) stops learning and the phase at once, before the period's level has risen: it used to knock the frequency off by 0.01 Hz. The phase also follows the template under a dying note, while the template explains a good part of what's left.
- After a long note the phase may have drifted by many cycles of the high harmonics, beyond what the loop can tell apart: after 0.25 s without following, once a full period has been quiet,
relock()finds the phase by correlating the template with the last period of input (within ±0.12 period, every other point then around the best; about 260k multiply-adds at 96 kHz, once per note) before it learns again. From 0.4 to 1.2 s into a note the subtraction fades out, so a template out of step doesn't add hum under a long note or its tail (where the grid drifts fast, the high harmonics are out of step within half a second); it's back at once after the relock. In quiet, if taking the template away leaves more than came in for a whole period (after the block was bypassed a while, say), it relocks too (at most once a second). And it never takes away more than about the input's own level (a template that learnt something else, a note at the very start, is held to it while it unlearns it, five times faster). - Results: on the owner's single-coil recordings the harmonics drop 12-18 dB in the gaps once learnt (under a second), and through a simulated high-gain amp the buzz drops 13-15 dB, leaving the single coil's broadband hiss (and, on the bridge, tones 120 Hz apart that aren't locked to the mains, likely a switching power supply or dimmer nearby) as most of what's left. On a benchmark of the humbucker recordings with the bridge single coil's hum added (drifting ±0.012 Hz): 20-25 dB in long quiet stretches, 7-20 dB in short gaps between notes, -7 to -16 dB within half a second of a long note ending, no more than the hum itself under notes, the same at 44.1, 48 and 96 kHz. About 0.6% of a core at 96 kHz.
- Tried and dropped: a second-order loop (phase and frequency from the template alone) ran away or locked onto the wrong frequency, since the template can absorb a phase drift itself (hence the separate period fit); a low band (under 600 Hz) for a coarse phase, mostly the guitar's own low end and rumble on real recordings, which made it worse (hence the relock); a least-squares scale for the subtraction (noisy, no better than the fade); the phase loop's integrator without the pause after a relock (it jumped 0.004 Hz the wrong way while the loop settled); and raising the floor when the input repeats every period (to start faster): some notes nearly do (B2 is 2.06 times 60 Hz), and the template learnt the guitar, 35 dB of it.
The third set (2026-10-23, the owner's pick of all of Claude's suggestions, plus the owner's own Fart, Trumpet, Violin and Piano; ResonatorBlocks, CloudBlocks, TimeFxBlocks, TextureBlocks, PlayedBlocks, InstrumentBlocks; tests in tests/ThirdSetTests.cpp):
- Sympathetic Strings: 12 comb resonators (a delay of one period less the loop filter's delay, a one-pole damping low-pass in the loop, feedback for the Decay's T60 at the string's note) tuned from Key and a Tuning table (doubled strings detuned 1-2.5 cents); the high-passed input feeds each at (1 - feedback) x Excite, so only matching notes build up. Alternate strings pan left and right; a tanh keeps the sum bounded; the dry signal is untouched.
- Jawari: a one-sided fold at 4x (the drives' oversampler) at a bridge set from the envelope: contact = 1 - Buzz (0.45 + 0.5 Bloom x faded), where faded compares the envelope with the note's slowly released peak; the buzz (folded minus dry, louder with Bloom as the note fades) is added through a Color band-pass.
- Grain Cloud: a 2.5 s buffer per channel, up to 32 Hann grains spawned at Density (jittered by half an interval), each Size long, starting Delay + Spray x random back (far enough that a faster read can't catch the write head), at its Pitch ratio, backwards with Reverse's probability, panned by Width; scaled by 1/sqrt(overlap). Feedback writes a tanh of the cloud back; Freeze stops writing (the grains' positions then don't advance with the write head).
- Swarm: up to 16 Hermite-read taps of one short delay line, each with a RandomLfo drift (depth from Drift: a swing of A samples at f Hz bends about 2 pi f A / fs), a 25-110 Hz flutter in level (Buzz), panned by Width, through a one-pole Tone.
- Tape Stop: reads a 5 s buffer at a speed that falls as (1 - u)^(1 + 2 Curve) over Stop Time (silent below 4%); on release it jumps back by Start Time x (1 - mean rising speed), so it reaches the live signal exactly at full speed, then crossfades to it over 5 ms. Momentary Stop with Latch, like the Kill Switch.
- Bouncing Ball: up to 24 taps on an 8 s line; gap k is Time x ratio^k (ratio 0.93 - 0.45 Gravity; Rise reverses the gaps and the levels), each Bounce^k louder, through its own one-pole darkening with k, alternating sides by Spread. Delays glide to new settings.
- Pattern Delay: eight taps at k x Time (glided), levels as set; Feedback feeds the eighth step back; with Pitch the even taps (and with Up + Down the odd ones) go through one of two buses, each a pitch voice per channel on its own 40 ms line.
- Chaos Mod: two Lorenz systems (sigma 10, beta 8/3, rho 25-45 from Chaos), Euler-stepped every 16 samples at Speed x 16 / fs; x moves an SVF low-pass +-3 octaves around Cutoff, y the volume, z a 4 ms +- 3 ms delay (vibrato), each smoothed over 5 ms; the right channel blends towards the second attractor (started 0.001 apart) by Width.
- Acoustic Sim: nine biquads per channel: the pickup's undoing (a -4 dB mid hump at 500 Hz, -5 dB at its resonance, 2.5 kHz humbucker / 4 kHz single coil, an 8 dB shelf above), four body peaks per body (air, top, the boxy dip, presence) scaled by Resonance, a 6 kHz string shelf (+Top) and a 150 Hz shelf (Bass); -3 dB x Resonance makeup; Width adds three short reflections (1.3-4.7 ms) to one side and takes them from the other.
- Strum Machine and Hard Tune use
TrackedInput(Track, Lookahead). Strum: up to four pitch voices on one line per channel; on each pick (the NoteTracker's onset) the voices open one Strum gap apart in pitch order (Down: low to high after the played note; Up: high first; Alternate), 3 ms attack, 80 ms release when the note ends. Diatonic chords use the Harmonizer'sharmonySemitoneswith scale steps 2, 4, 7 and 9. Hard Tune: one pitch voice per channel, shifting by (nearest scale note - played pitch) x Amount, smoothed over Speed (0: at once) and back to unity over 50 ms after a note; the window is pitch-synchronous. - Drum Trigger: the OnsetDetector (threshold from Sensitivity), then 6 ms of listening: energy over 2 kHz against under 300 Hz picks the drum in Auto (kick under Split, hi-hat over Split + 0.3, else snare); kick: a sine from 150 to 48 Hz (30 ms sweep) with a 2 ms click; snare: 185 and 330 Hz tones and band-passed noise; hi-hat: high-passed noise; levels from the hit's peak by Dynamics.
- The instruments derive from
blocks/TrackedSynth.hpp(the synths' shared base, moved to a header for them). Fart (a sampler since 2026-11-10, the owner's recordings; was synthesized: a PolyBLEP pulse through bends, jitter, flutter, sputter and noise, 13 kinds): 25 public-domain fart recordings inresources/farts/(16-bit mono 48 kHz WAVs, 2.7 MB), made bytools/prepare_fart_samples.pyfrom the owner's MP3s (two files of many farts cut apart by level, each from where it starts; every one trimmed, mixed to mono, peak-normalized; a near copy left out) and embedded at build time (cmake/EmbedFartSamples.cmake,builtinFartSample(); the engine reads the PCM in place,pcmFromWav(), no decoding or allocation). Each sample's pitch was measured (YIN's level-weighted median period; a strongest spectral peak for the eight with a period in under a fifth of their frames) and its loudness (90th percentile of 50 ms RMS) gives it a gain;kFartSampleslists them lowest to highest, which is the Type control's order after Random. A pick plays one at the note: read at target / pitch times its own speed (cubic Hermite; 1/8 to 4 times), so pitch and length change together as on a sampler. Random picks among the samples within 6 semitones of the note (the nearest three if fewer; never the last one), so a low note gets a rumble and a high one a squeak; Pitch Natural plays them as recorded (Random then picks from all). Length cuts each one at that share of its length with a 30 ms fade, Tone is a low-pass from 50% down (to 250 Hz) or a high-pass up (to 800 Hz), Hold Held fades them out over 60 ms when the note ends. Three at once; a fourth fades out the oldest in 5 ms. In Poly every voice is a FartBlock of its own (Voiced<>, seeded differently). Overlap and Duration (owner, 2026-11-10: "things can become too cluttered when there are like 10 farts playing"; added after Track, so the slots keep their order, and their first choices, the defaults, are what saved slots of 0 read): Overlap Single fades out whatever plays (10 ms) when a fart starts; in Poly the base'ssingleSound()lets only the lowest of the notes starting together start, none within 80 ms of the last start (a strum gives one fart), andstopSounds()the other voices. Duration Fixed keeps every fart its recorded length at any pitch: the play position moves at the sample's own speed while two grains half a grain apart read at the note's (each centred on the position, sin² windows summing to 1; a grain reading outside the sample doesn't count, so an upward shift's start isn't quieter), a grain being the whole number of the note's periods nearest 35 ms. The second grain is at its middle at the start, so the attack is whole. Natural pitch plays the sample straight either way. The controls were reordered then (Wetness gone; Pitch and Hold added before Pick Filter and Track), before any release. Trumpet: a saw through an SVF low-pass whose cutoff rises with the level (hz x (1.5 + 18 Bright x amp^1.5)), a tanh with Growl on attacks, a scoop from Scoop cents below over 45 ms, a vibrato from 250 ms, two bell formants (1.3 and 2.9 kHz) and the mute's filters. Violin: one or three (Ensemble: -7, 0, +8 cents, own vibrato rates, panned) saws with a vibrato fading in from 200 ms, high-passed noise for the bow, four body peaks (violin's 280, 460, 700, 2600 Hz, scaled 0.78 for viola and 0.45 for cello) and a low-pass. Piano: eight voices of 12 partials x 2 strings (rotating-phasor oscillators), stretched by B = 0.0004, a hammer tilt and notch (1/8 of the string), each partial's decay shorter for higher partials and higher notes; a new note on each pick or new pitch; letting go damps (80 ms) unless Sustain; a 12 ms thump. Velocity is the input's level over a note's first 12-15 ms. - CPU (one core, stereo, 48 kHz, denormals flushed as hosts do;
XYTHOS_CPU=1): all 0.02-1.1%.
The second set (Requirements, "Pedals") reuses the DSP above wherever it can:
- Envelope Drive and Gated Fuzz are drives on the shared oversampled base. Envelope Drive moves its gain with the playing level and makes up the level from the envelope (level / clip(level x gain)), so the dynamics stay and only the dirt changes. Gated Fuzz feeds its clipped output back through a band-pass (Stab sets the loop gain, which oscillates below about 70%, and the squeal's pitch); the loop only lives while the input envelope is above -80 dB, so it dies away when you stop.
- Reverse Delay is a pitch voice at -1x: each tap sweeps backwards through a Time-long slice, Hann-faded, the two taps half a sweep apart (no extra latency; the slice starts at the newest sample). Pitch Delay puts a pitch voice (plain 40 ms window) inside the feedback loop, so each pass is shifted again. Beat Repeat keeps a history of the last 2 s; on Repeat it plays the last Slice of it (the history stops while repeating, so the slice stays intact), with per-repeat edge fades, gate, decay and a speed change (Pitch, capped at +-36 semitones).
- Bloom Reverb and Gated Reverb use the FDN tank. Bloom ducks the tank's feed on each new pick (
dsp/OnsetDetector.hpp: a fast envelope jumping to twice a slow one) and swells it back over Bloom; Gated keys a hold-and-release gate on the wet signal from the input. - Slicer and Kill Switch are gain envelopes: the slicer's step position follows the song while the transport plays (step 1 on the bar); the kill switch's Kill and Stutter are momentary parameters (with Latch, a press toggles). Its Rate Mod (owner's request, 2026-10-23) changes the stutter's speed from a count of Time cycles since the press (or since the song start, synced): Steps plays Step Len cycles at each of Speeds speeds, each twice the last (Direction: faster, slower, or back and forth), so the cycles line up at every step and synced steps land on the beat; Sweep glides the speed exponentially over the same span (back and forth: a triangle) by integrating the stutter's phase.
- Barber Pole: three phasers sweeping 60 Hz to 3.8 kHz (six octaves), a third of a cycle apart, each weighted by sin^2 of its phase (the weights sum to 1.5), so each fades in at the bottom and out at the top. Warble: a delay modulated by a sine/random blend (wow) and a 9 Hz flutter, with a low-pass and soft saturation.
- Detune, Capo, Arpeggiator, Organ and Sustainer are pitch blocks on the shared pitch-synchronous base. The arpeggiator steps a smoothed shift through the chord's notes (count from the song when synced) with a gate envelope; the organ adds sub, octave, twelfth and two-octave voices to the fundamental and re-swells on each pick; the sustainer is an automatic gain (up to +36 dB) that holds the level the note was picked at, then crossfades into a shifted harmonic over Bloom.
- The synths (
blocks/SynthBlocks.*) share a base with the Synth block's recipe: the YIN tracker with glide and an octave, an amplitude that follows the guitar's envelope (with Attack and Release), and the pick detector; band-limited saws and pulses come fromdsp/Oscillator.hpp(PolyBLEP). Super Saw: seven saws detuned by up to Detune (uneven spread), panned by their detune, through an SVF low-pass. FM Synth: a sine modulator (ratio choice, self-feedback) on a sine carrier, its index falling from Index to Sustain over Decay after each pick, capped so the sidebands stay under 0.4 fs. Fold Synth: a sine folded by sin(pi/2 (g x + offset)) at 4x (the drives' oversampler), g up to 10 with the playing, then a low-pass gate whose single control sets both gain and cutoff (Follow: the amplitude; Pluck: a decaying ping on each pick). Acid Synth: a saw or square, tanh-driven, through two SVF low-passes (24 dB, resonance on the second) with a decaying envelope on each pick, louder picks accenting it, and a tanh on the output. String Machine: saws at 0.5x, 1x and 2x through a three-tap ensemble (delays around 4 ms swept by 0.63 Hz and 5.7 Hz sines, taps a third of a cycle apart, the right channel a sixth further). Chip Synth: notes snapped to semitones with Quantize (off by default since 2026-10-23, owner's request), PolyBLEP pulses (12.5/25/50%) or a 16-step triangle, a retriggered arpeggio, a vibrato fading in from 150 ms, and Crush quantizing the volume to 16 steps and the samples to fewer bits. Pick Filter (every mono synth, the Synth block included; owner's request after the Poly Chip's, 2026-10-23): a new note sounds only once its pitch has held for that long (the NoteTracker), and a pick's onset waits with it, so plucked envelopes start with the note. Bends and vibrato within a sounding note pass at once. 0-60 ms, default 0. It came after the first release, so it's each synth's second-last parameter; Track is the last (below). - The fourth set of synths (
blocks/MoreSynthBlocks.*, owner 2026-11-08; mono, onTrackedSynthlike the others, Pick Filter and Track last). Theremin: a sine with a long default glide (120 ms) and a 400 ms release, so it swoops between notes rather than starting each afresh; Vibrato (up to 50 cents) at Rate, Wobble (smoothed random drift: up to 15 cents at 0.7 Hz, 25% of the level at 1.3 Hz), Timbre (a lopsided tanh blended in: odd and even harmonics; DC blocked). Sync Lead: a saw reset by each cycle of the note, its pitch Sync (1-8) times the note, swept up to three octaves by each pick (Env, falling over Decay); both its own wrap and the sync reset are band-limited by a two-sample polyBLEP applied one sample late (the output is one sample behind; the step's height is whatever the saw had reached), so a hard-synced high note stays clean; Sub adds a PolyBLEP square an octave down; an SVF low-pass (Tone). Phase Distortion: CZ-style cosines with a bent phase: Saw (knee at 0.5 - 0.49 d), Square (each half races through its half-cycle in 1 - 0.98 d), Pulse (the cycle squeezed into 1 - 0.95 d), Reso Saw and Reso Tri (a cosine 1 + 15 d times the note, restarting each cycle under a falling ramp or a triangle; capped at 0.4 fs); the knees never get steeper than a few samples, so high notes don't alias. d = Amount + Env x a pick envelope that falls to Sustain over Decay; Detune runs a second line that many cents up on the right (35% of each in the other side). Wavetable: four tables of eight waves (Vocal: U-O-A-E-I formants on a 130 Hz voice with a 1/h^0.7 roll-off; Metal: hash-chosen uneven harmonics; PWM: a pulse from 50% to 5%; Digital: every n-th harmonic, n = 1..8), each wave stored at nine band limits (1, 2, 4 ... 256 harmonics, 2049 samples) built once on first use (a static bank, 2.4 MB, shared by every instance; built from a sine table with whole-sample phases, about 20 ms) and read at the copy whose harmonics fit under 0.45 fs, frames crossfaded. Position + Env x the playing level + an LFO, smoothed over 8 ms. Sub Bass: sine, triangle, PolyBLEP square or saw (an octave down by default) plus a sine an octave below, scaled by Growl into a four-stage ladder (tanh at each stage's input and state, the fourth fed back with k up to 3.6, the input lifted by 1 + 0.3 k for the bass the feedback takes, cutoff capped at 0.2 fs), opened by the playing level (Env). Laser: the pitch dives exponentially (in semitones, time constant Speed/3) from Dive semitones above the note; Repeat refires it while the note rings; a mono echo line (up to 1 s, feedback up to 85% through a tanh) read at Time on the left and 0.75 Time on the right. Drone Keeper:TrackedSynth::setAddsToDry(): the guitar always passes and Level is the drone's. Each sample of a sounding note adds its level to its pitch class; the twelve weights fade with Memory (every 64 samples); every 100 msdroneRoot()scores each class as itself + 0.6 x its fifth + 0.25 x its thirds, and a new root must score 1.25x the current one. A change fades the drone out over 0.3 s, moves it and fades back in over 1.5 s (at once while silent). Voices: three saws on the root (-7, 0, +6 cents), two on the fifth, two an octave up, a sine on the root, panned apart, through an SVF low-pass whose cutoff drifts with Motion (a 0.05 Hz sine and a 0.13 Hz random) at C in octave 1, 2 or 3 (Register). It rises over 1.5 s while you play and falls over Fade, or stays with Hold. Harmonic Painter: 32 table sines (4096-point, interpolated) at n x sqrt(1 + 0.002 Stretch n^2) the note, with amplitude n^(Tilt/6.02), the even (or odd) ones above the fundamental scaled by 1 -/+ Odd/Even, normalized to an even RMS; each drifts by Shimmer (a random LFO per harmonic near Rate); odd ones pan left and even right by Spread; harmonics near 0.45 fs fade out. Tests:tests/MoreSynthTests.cpp. - Poly tracking on every pitch-following pedal (owner, 2026-11-10: "remove the Poly Chip pedal completely... for every single pedal that utilizes the mono note tracking feature, we can have the option to choose between mono and poly modes, and mono is always the default").
BlockDescriptor::polymakes the panel show a Tracking button (Mono, Poly) that toggles the block config"poly"(polyFromConfig(); absent is Mono), like Quality's"hq": a config, not a host parameter, because adding a slot control to 24 released blocks would need a migration each and a Choice can never change.TrackedInput(blocks/TrackedInput.hpp) runs aPolyNoteFinderinstead of theNoteTrackerin Poly (allocated inconfigure()only then; six voices, the finder's default Focus, the block's Pick Filter or else 15 ms), delays the block's audio by its whole-hop lookahead, and returns a Note standing for the chord: the lowest sounding note's pitch, on while any note sounds, an onset when any starts, the block's own input's level;frame()has every note, andpolyGain()scales the rig's levels to the block's input. So the Octave (the detector's low-pass over the chord's lowest note), Harmonizer (intervals from the lowest note) and Strum Machine (the shape on the lowest note, strummed when any note starts) need nothing more; Hard Tune shifts the whole chord by its notes' level-weighted average distance from the scale (chordError()). The synths and instruments (everyTrackedSynth, and the Synth, now one too) give each note a voice: up to six instances of the same synth (Voiced<T>makes them inconfigure()and passes everysetParam()on; the first voice is the block itself), each rendered from its own Note (its band's measured pitch through the synth'stargetHz(), glide, octave; its level x 1.5 as the envelope), Attack, Release and Mix the block's; a new note a semitone or two from one that just ended carries on that voice, gliding (bends and slides); the sum is x 0.85, so a single note in Poly is about as loud as in Mono and a triad about 1.5 times. MIDI Out keeps its own Mode (Mono, Poly), a host parameter since 2026-10-24, and has no Tracking button. Old Poly Chip blocks become Chip Synths in Poly (retirePolyChips()instate/ChainMigration.*: Wave, Quantize, Crush, Octave, Mix, Pick Filter and Track keep their normalized values, the Arp is off, Vibrato 0; Voices, Focus, Release and their MIDI mappings go), in the UI (the host gets the new values, with a toast), in the DSP'sapplyChain()(setLoadedValue(), so a project opened with the window closed plays the Chip Synth) and before a preset is validated. Tests:SynthTests.cpp(the Poly Chip's tests, now on the Chip Synth in Poly; every note of a chord on five synths),BlockSanityTests.cpp(every poly block in Poly),TrackingTests.cpp(lookahead in Poly),ChainStateTests.cpp(the migration). - Poly Chip (removed on 2026-11-10, above;
blocks/PolyChipBlock.*until then): the polyphonic chip synth. (Its notes come from the PolyNoteFinder rewritten on 2026-11-09, "Tracking rework" below; what follows is the filter bank it had until then. The voices are unchanged: one per semitone, A0..E6 now.) It does not track a pitch; it splits the input into one band per semitone, B0..E6 (66 bands, each two SVF band-passes in series at Q 8, widening to Q 5 over the octave below C3 so the low strings ring up faster, and on to Q 3.5 at B0; a note a semitone away is about 5 dB down at Q 8). The bands went down from C2 to B0 at the owner's request (2026-10-29: a 7-string's drop A and a 5-string bass); the bass bands under C2 can't tell a semitone apart alone, so a note there also needs its 2nd harmonic's band to hold a peak and its fundamental within 9 dB of its loudest harmonic (else a palm-muted power chord's thump plays its octave below), its 9th to 12th harmonics are explained as well, and just after a pick a new note waits while a bass band an octave, a twelfth or two octaves below still rings up (a bass's harmonics ring up in their bands first). A band's level is the magnitude of its last stage's band-pass and low-pass outputs, which are equal and a quarter cycle apart at the band's note, so it doesn't ripple. Every ~0.7 ms: local peaks over -54 dBFS and within 18 dB of the loudest band are candidate notes; Focus drops a peak when a peak 12, 19, 24, 28, 31, 34 or 36 semitones below (its note's 2nd-8th harmonics) is louder than 1/8 (0%) to 8x (100%) of it (default 70%: 2.3x; a guitar's 2nd harmonic is often twice its note); the loudest Voices (1-6) remain, playing notes counted 3 dB louder so voices don't flicker. Pick Filter (owner's request: the pick attack squeaked): a new note sounds only once it has been found for that long (default 15 ms) without falling below 60% of its peak meanwhile (the ring of the pick in the faster, higher bands dies away; a real note doesn't). On plucked-string test signals (Karplus-Strong, pick-shaped start, pickup tilt, 2 ms click) 0 ms gave 19-34 stray notes in the first 100 ms per string, 15 ms none; notes then start 26-53 ms after the pick (low E slowest). Each sounding band plays a PolyBLEP pulse or the 16-step triangle, its amplitude following the band level (1 ms attack, Release). Quantize on: at its exact semitone; off (owner's request; the default since 2026-10-23): at the band's measured pitch, from the turn rate of its quarter-cycle pair (atan2 of successive pairs, smoothed over 10 ms, kept within a semitone of the band). A note starting next to (within 2 semitones of) a fading voice takes over that voice's phase, level and pitch, so bends and slides move one voice from band to band. Arp Up/Down plays the sounding notes one at a time in pitch order, switching in 1 ms, and restarts when the chord stops. Crush as in the Chip Synth. About 2% of a core (3% with Quantize off). Quantize, Pick Filter and Track came after the first release, so they're the last three parameters. With Lookahead, each hop's analysis is kept as a frame and the voices (and the dry signal) play the frame that many whole hops behind; a new note is written back over its pick-filter wait and its band's ring-up (1.5 Q / (pi f)), so it starts on time. A note's takeover of a fading neighbour happens when the voices reach it. Trade-off: a played octave or twelfth above another note can be taken for its harmonic (lower Focus). - MIDI Out (2026-10-24, the owner: drive other plugins that need MIDI;
blocks/MidiOutBlock.*): Mono sends a note on at each NoteTracker note's start (a pick, or a jump of 0.6 semitone or more without one: a hammer-on), at a velocity from the note's pick level (NoteTracker::Note::velocity: the input's peak from the pick until the note was found; -36 dB to full maps to 13-127, blended with 100 by Dynamics), a note off at its end, and pitch bend relative to the note (Bend: the synth's range; sent when it moves 16 of 16384, at most every 32 samples; the bend goes before the note on so the note starts at its pitch). Poly sends each PolyNoteFinder band's note on at its frame's start (or re-pick), off when it stops, without bend; its Pick Filter is at least 15 ms. Channel, Octave and Transpose change what is sent; changing them (or Mode or Bend) ends the notes sounding first. Audio passes the guitar through or mutes it. Lookahead as in the synths: the Poly finder's whole-hop delay is lined up with the block's latency by shifting its notes. The engine's MIDI path: blocks get aMidiOutput(engine/MidiOutput.hpp, a fixed 512-message buffer; branch B has its own) before each process(), timed from each node's base time: the chunk's start in samples since prepare(), plus the latency of the blocks after the node (Node::midiDelay: the rest of its section, then its branch's alignment and the post section), so the notes line up with the audio. After each chunk the messages go into a 2048-message queue in time order; the plugin drains what falls in its buffer and writes it with DPF'swriteMidiEvent()(DISTRHO_PLUGIN_WANT_MIDI_OUTPUT; the LV2 event output port already existed for the UI state, so the port layout is unchanged). A per-slot record of sounding notes lets the engine end a block's notes (and reset the bend) when it's bypassed, removed or rebuilt, and after prepare(), so nothing hangs in the synth. - Tracking rework on the 7-string and bass recordings (2026-11-09; the owner: improve the tracking, rewrite the poly from scratch if needed, "it works very poorly", and bass is to be supported). The owner recorded the 14 files of
docs/RecordingList.mdand 12 more: a 7-string in drop A and a 5-string bass, every fret of every string, notes left to ring out, fast picking, legato, chords, arpeggios, riffs (26 clips, 22 minutes, lossless). They are intests/recordingswith note lists made by an offline analysis (tools/annotate: long non-causal windows, checked against what each clip is meant to hold; chord clips from hand-written specs;tests/recordings/README.md), andtests/RealTracking.hppscores both trackers on all 34 clips. The numbers below are over all of them, with the same scoring before and after.- What the old trackers did there. Single notes: 25 of 770 never found, a quarter of the notes' time missing (160 of 629 s), 72 s of stray notes. A sustained low string read an octave up within seconds, wobbling by half a semitone (YIN's fixed threshold took the half period once the fundamental was weak); a bass note under 60 Hz was refused as "strings ringing together" as soon as its fundamental fell 9 dB under its harmonics; drop A's 27.5 Hz was under the range; a tremolo's notes ended at every pick; a muted bass note played a run of rising semitones. Chords: 401 s of stray notes in 842 s of note time, 328 s of it the harmonics of single notes (the semitone bands could not tell a string's 2nd, 3rd and 4th harmonics from notes), and 76 s of note time missing in every octave.
- PitchTracker (
dsp/PitchTracker.hpp): 25 Hz to 1500 Hz. The period is the shortest lag whose dip is within 0.06 of the deepest (or under 0.09) and which repeats at twice its lag; while the last pitch still has its dip a shorter lag must be as deep as the deepest to take over (until a new pick:forget()); a dip with a clearly deeper one at twice or three times its lag is a blend of a decayed note's harmonics, and the deeper one is the period. Measured on the recordings: a single note's fundamental is never more than 23 dB under its loudest harmonic over two periods (the 7-string's low A and the bass's low B included), while the common period of notes ringing together has nothing there (55 dB under or less). So a period with its fundamental 30 dB under is notes ringing together, and the pitch is the lowest of them (16 harmonics looked at: a triad on the high strings is the 10th, 12th and 15th); one that has had its fundamental for 40 ms stays that note while its period holds. - NoteTracker: a note picked again within two semitones and 250 ms is being repeated, and plays on through its next picks (each a fresh
onset); the level follower falls to the highest peak since, not to nothing (a bass's open A, peaks 36 ms apart, read as a mute); a level 9 dB under 64 ms before ends a note that is 80 ms old (a finger stopping a string, its pitch rising meanwhile) and the tail starts no other; a note an octave or more below the playing one, without a pick, only while the level holds. - Single notes after: 2 of 770 never found, 28 s missing (4.4%), 29 s of strays, the median delay the same 17 ms (guitar 16, bass 25). What's left: chords (a mono tracker plays the lowest note of one, or for palm-muted power chords the octave below it, when the mute's thump is their fundamental: 13 s), fast picking on the bass (the string starts over a semitone sharp at each pick: 4 s), a ringing arpeggio (the lowest ringing note, not the newest).
- PolyNoteFinder, rewritten (
dsp/PolyNoteFinder.hpp, whose comment has the method): three spectra of a 12 kHz copy every 5.3 ms (171, 85 and 43 ms windows, for under 150 Hz, under 1 kHz and above), their peaks gone through from the lowest up; a peak is a note when enough of it is left unexplained by the notes below, each of which explains its harmonics up to what it has been seen to have there. The NoteTracker runs alongside: one note alone is its note at once, nothing else starts while it plays clearly, and all that's at its harmonics is learnt as its own. A new chord note needs a pick, four steady hops, two harmonics of its own, and must not sit on a harmonic of a peak that isn't a playing note yet. An octave picked together with its note is one note unless the 2nd harmonic is 1.9 times the 1st and 3rd (1 single note in 100 on the recordings, most octave shapes). - Chords after: 84 s of strays (was 401 s), 125 s of note time missing (was 193 s), 26 s missing in every octave (was 76 s), median delay 26 ms (was 39 ms); 55 of 908 notes never found (was 37: a strummed chord's octave and fifth doublings are now often one note with the string below). With hiss and hum at -66 dB: 92 s of strays, 157 s missing (the filter bank: 365 s and 199 s). About 1.6% of a core at 48 kHz, its NoteTracker included (the filter bank: 1.8%).
- What it does worse, or not at all. On the first eight clips alone (chords, their doublings listed as played), which the filter bank was tuned on, the filter bank did better: 4 notes never found against 23, 16 s missing against 30 s, 7 s of strays against 19 s (half of the 19 s the octave below palm-muted power chords, from the NoteTracker). On the synthetic guitar (
tests/PolyTrackingTests.cpp) likewise: 45 missed (36), 13.9 s of extra notes (6.4 s). Palm-muted chords chugged fast are mostly not found (each is gone before a chord's notes are let in, 40 ms after the pick). A strummed chord's notes come 50 to 150 ms after the strum, the low ones last. The riffs' note lists come from the single-note analysis and don't know which notes ring on under the next ones, so some of their "strays" are notes that are there. - Tried and dropped: an asymmetric window; a 280 Hz split between the long and the middle spectrum (chords 40 ms later); a spectral test that a single note is alone (it failed on pick noise and cost the single-note clips 45 s of strays); following a harmonic's level down at once (strings ringing together beat, and the next swell became a note); letting a note that played a moment ago restart without the wait (chugs: 7 s more strays for 1 s less missing); in the PitchTracker, the loudest of the notes ringing together instead of the lowest (the synthetic arpeggio's misses 9 to 4, but 12 s more missing and 12 s more strays on the recordings).
- The Poly Chip is back in Add Block and MIDI Out has its Poly mode again (the deactivation of 2026-11-08 undone: the
kPolyEnabledflag and the UI's filters are gone), for the owner to test.
- Notes ringing together in the mono tracker (2026-11-10; the owner: mono tracking "seems slightly worse", a Beverly Hills Cop (Axel F) theme in F# minor "missing notes when the pitch jumps much higher",
tests/recordings/gtr-custom-axel-f-theme). The open D3 string rang along about 10 dB under the picked C#4 and D4, and the C#4 was left ringing 8 dB under the F#4 picked after it. The period each pair shares, an octave or two below, is the deepest dip, so the PitchTracker played C#3 for the C#4 (taking over 16 ms after the pick), D3 for the D4 (once the open string had rung up) and F#2 or C#4 for the F#4 (the common period, or its lowest strong note). Spectra alone can't settle it: a legato C4 on the same guitar (gtr-legato, 14.3 s) has its odd harmonics 15 to 30 dB under its evens, just like D3 at -10 dB under a D4, so a rule that took a period's even harmonics for the octave above (tried: the note whose harmonics hold 80 to 95% of the energy) moved real notes up an octave (harmonic strays 1.1 s -> 4.1 s at 85%). What was kept, inlowestNoteThere(): (1) a note found for 3 estimates (12 ms) since the last pick (fHeldRun, cleared byforget()) stays that note when the period becomes 2 to 4 times its own, while it's still within 12 dB of the period's loudest harmonic; only in periods over 60 Hz, because the first few ms of a low string read an octave up and were held (gtr-fast's A1 played A2: +556 ms missing without the limit). (2) Of a period's notes (harmonics within 12 dB of the loudest, when the period's own fundamental isn't there), the lowest whose harmonics hold at least 40% of the loudest note's energy (4 dB), not simply the lowest: a power chord's root and fifth are close, a note picked over one left ringing isn't. Tried and dropped: counting a period's own fundamental only within 26 dB of its loudest harmonic (was 30): better on the recordings (missing 25.9 s), but the plucked-string test's 110 Hz has its fundamental 29 dB under and then read A2. On all 35 clips, mono: missing 28.3 s -> 26.3 s, stray 30.1 s -> 27.3 s (lookahead 15 ms: 24.6 -> 22.6 s, 32.7 -> 30.0 s); the Axel F clip 668 -> 78 ms missing, 700 -> 91 ms of strays; the open D chord's strays 894 -> 34 ms, the power chords' 892 -> 288 ms and their missing time 1.4 -> 0.8 s. No clip lost more than 9 ms (gtr-custom-tetris-themeandgtr-frets-bridge, strays). The poly finder, which follows the mono tracker: never found 55 -> 54, missing 125.1 -> 124.1 s, stray 85.4 -> 86.1 s (the Axel F clip, where the D3 really rings, is a third of it). The synthetic benchmark is unchanged.gtr-custom-e-minor-pentatonic-noodlinghad two labels wrong, found by this: 15.54 s is a D5 (B4-D5-B4 on the high E; no D4 in the spectrum), 18.9 s a slide D5-C#5-C5 (the old tracker played G3-F#3-F3 there); fixed in its.ov. - More accuracy on the recordings (2026-11-12; the owner: the synths' mono and poly tracking "of the highest quality", the maximum accuracy on the recordings). Measured with a parallel copy of the benchmark (the same
RealTracking.hppscoring) and, for the octave below chords, a probe oflowestNoteThere()'s harmonic levels labelled from the note lists. On all 35 clips: mono missing 26.3 -> 24.0 s, strays 27.3 -> 25.5 s (lookahead 15 ms: 22.6 -> 20.5 s, 30.0 -> 28.1 s); poly strays 86.1 -> 58.9 s, missing 124.1 -> 123.4 s, never found 54 (unchanged); with hiss and hum strays 93.9 -> 62.4 s, missing 156.3 -> 153.4 s. The synthetic benchmarks' bounds all hold. What changed:- NoteTracker, a low note picked fast (bass-fast, under 120 Hz): each pick of an E1 read F#1 or G1 for 40-80 ms, which ended the repeated note; the E1 then came back without a pick, so it no longer counted as repeated and its next pick cut it. For 80 ms after a repeated low note's pick, a candidate up to 2 semitones sharp of it doesn't take over, and a low note back at the repeated pitch without a pick after another pitch took over is still repeated. bass-fast 5.4 -> 4.6 s of errors.
- NoteTracker, a long note's harmonics (
overtone()): seven seconds into a sustained low B the tracker wobbled between A#1 and C2 every 12 ms (YIN's half period, once the fundamental has died away), each a new note. A note held 500 ms and 6 dB under its peak now plays on through estimates within 1.5 semitones of its octave or two octaves, with no pick and the level not rising. bass-sustain 3.0 s missing and 3.0 s of strays -> 16 ms and none. (Without the 6 dB, the synthetic bass line's B1 picked over a repeated B0 through a high-gain amp, where no pick is heard, was taken for B0's octave.)clear()is true meanwhile, so the poly finder keeps the note (it lost 12 s on bass-sustain without that). - PolyNoteFinder, a tremolo is one note: the 7-string's A1 picked fast grew chords out of its harmonics (C3, E3, D#4...), because the mono note is never clear between picks.
NoteTracker::repeating()(a repeated note under 200 Hz, its own period, aperiodicity under 0.12) now counts as one note alone. gtr-fast 9.6 -> 3.0 s of errors (missing and strays) in the end. - PolyNoteFinder, a single note's neighbours: a bass picked hard reads a semitone sharp in the short windows while the long one still has its pitch, and both played (B0 with C1). Once the mono note has played alone 32 ms, tracks within 2 semitones of it, not 1.5 times louder, end. Strays -17.8 s (from before all of these, strays: bass-custom-fast-picked 4.3 -> 1.3 s, the noodling 5.5 -> 3.6 s, bass-legato 1.3 -> 0.4 s), missing +1.3 s (most in the Metallica clip, whose list doesn't know which notes ring on).
- Tried and dropped: a 3-semitone repeat width (0.1 s better on the recordings, 5 more wrong notes on the synthetic guitar); the repeat kept through a pickless return at any pitch (3 more wrong notes on the synthetic guitar: under 120 Hz only); the overtone rule gated by 500 ms since any click instead of the decay (through the amp no click is heard); the tremolo rule without the 200 Hz and 0.12 limits (a triad strummed over and over on the high strings reads as its top note repeated: 9 s missing); the neighbour rule from the mono note's first hop (the Em chord's B2 lost for 2 s while the mono tracker read C3 for 24 ms) or for every level; a looser octave test in chords (kOctave 1.6, kEvenOdd 1.5: 2.6 s less missing, mostly a strummed chord's octave doublings, but 0.8 s more strays, harmonics of single notes on gtr-legato). Not fixed, because no spectral test tells them apart on the recordings: the octave below palm-muted power chords chugged (chugging-riff, 9.5 s of the mono's errors: their harmonic levels over two periods match a 7-string's palm-muted A1 in gtr-fast) and the F barre chord's F1 (its notes are harmonics 2-6 and 8 of F1, which has a real fundamental at -15 dB, where single notes have theirs down to -26 dB).
- Improvements only (2026-11-17; the owner: keep improving the mono, poly and bass tracking on the recordings, and "if a fix improves note tracking in one case, but significantly screws it up in another, let's not use it"). Measured per clip with a parallel copy of the benchmark, five runs (mono, mono with 15 ms lookahead, poly, poly with 20 ms lookahead, poly with hiss and hum); a change was kept only if no clip lost 30 ms of missing time and strays together in the four clean runs. On all 35 clips: mono missing 24.0 -> 21.6 s, strays 25.5 -> 22.5 s, never found 2 -> 1 (lookahead 15 ms: 20.5 -> 18.8 s, 28.1 -> 25.2 s); poly strays 58.9 -> 48.8 s, missing 123.4 -> 121.1 s, never found 54 (lookahead 20 ms: 64.5 -> 53.9 s, 120.0 -> 117.9 s; with hiss and hum 62.4 -> 51.8 s, 153.4 -> 150.8 s). The bass: mono 6.0 -> 4.7 s missing, 9.2 -> 6.9 s of strays; poly 17.7 -> 12.8 s of strays. The synthetic benchmarks' bounds hold (mono: one 7 ms phantom more in the fast run, a muted repeated note ending a period later; poly: unchanged within 10 ms). What changed:
- NoteTracker, the pitch reported (
fSteadyHz): a playing note followed every estimate within 0.6 semitone of the last, however unclear, so it drifted: at each pluck of a bass's E1 picked fast the estimates read up to a semitone flat for 20 to 50 ms (the two periods they span straddle the pluck), and a string being stopped slid one or two semitones as it died. The note is still followed that way (fHz,trackedHz()), but the pitch reported is the last clear estimate's: aperiodicity under 0.02, or within 1.5 times the note's clearest lately (which creeps up 3% an estimate, so a note that stays less clear is followed again within a few hundred ms). A new note's first 60 ms count all but the doubtful estimates (a string picked hard starts sharp and settles; without that the poly finder, which takes this pitch, lost a note on the noodling clip). The reported pitch holds back for 0 to 5% of the estimates on sustained notes, legato and bends (52 ms at the longest on string-bends), half of them on the fast-picked clips. Mono -1.4 s missing, -2.5 s of strays (bass-fast -0.5 s of each, bass-custom-fast-picked -0.4 s of each, bass-frets' strays 0.5 -> 0.2 s). - NoteTracker, a click in a repeated low note: whether a click is a pick or a mute was judged by the 3 ms average level 12 ms later, which ripples with a low note's own wave (an A1's period is 18 ms), so about every other pick of the 7-string's tremolo read as a mute and cut the note for 30 to 40 ms. For a repeated note the verdict now waits a period of the note more (45 ms at most), and past the first 12 ms the level must hold against half the note's peak level too, not only the click's own (through an amp, hum's ripple alone passed for the note ringing on: a 256 ms phantom on the synthetic guitar). gtr-fast 1.8 -> 1.0 s missing. A muted repeated note ends up to a period later (the chugging riff's octave-below notes, wrong before and after, last 30 to 50 ms longer in all; 0.4 s with hiss and hum).
- NoteTracker, a new note without a pick: its level had to be half the last 32 ms' highest; a string being stopped falls just slower than that, and each step of its sliding pitch started a note. It is now judged against the last 60 ms, except for the note that plays or just ended coming back within a semitone, within 150 ms of a pick (the Axel F theme's F#4 found after a wrong first note), or a very clear pitch (aperiodicity under 0.05: a pull-off's level halves at once and stays; the noodling clip's E5-D5). Mono -0.5 s of strays, most on the bass's fret clips.
- PolyNoteFinder, side lobes: a Hann window's side lobes are peaks too (-31 dB two and a half bins from a sine, -42 dB at three and a half), and a track 40 dB under the loudest peak is kept, so a note that had stopped was found again in the next note's side lobes for hundreds of ms. A peak no higher than twice the side lobe of a bin within ten bins is leakage (
kLobeMargin). -0.7 s of strays. At 3 times, octave-shapes gained 0.36 s of strays; 2.5 was as clean as 2. - PolyNoteFinder, what's left of the note before: once the single-note tracker's note has been clear three hops in a row (its period, aperiodicity under 0.08), within its first 210 ms, any other track as loud as 0.15 of the input's level ends, unless it's within 3.5 semitones of the note or of one of its harmonics, or an octave or two under it below 70 Hz (a low string's first periods read an octave up). A note really sounding that loud would blur the period; what the 85 and 171 ms windows still hold of a stopped note doesn't. -9 s of strays (the Metallica clip 8.3 -> 5.9 s, the tetris theme 1.8 -> 1.0 s, the noodling 3.6 -> 2.7 s). Test:
PolyTrackingTests.cpp, a melody on one string (the note before lingers 89 ms at worst, was 141). - Tried and dropped: that rule from the first clear hop (a chord reads clear for single estimates: gtr-chords +3.3 s missing, the high-string chords +1.8 s); without the 210 ms limit (the synthetic strummed chords lost real notes 600 ms after the strum, their root reading as one clear note: dropouts 1.3 -> 1.8 s; and slow-riff's B2 under an E2); only for tracks whose level is falling 10 to 30% in four hops (half the gain); at any level or from 0.04 of the input (gtr-low-chords +0.8 s missing), and from 0.35 (2.2 s more strays); subharmonics exempt at any pitch (octave-shapes +0.24 s missing); the poly finder taking the tracker's raw pitch instead of the reported one (1 s less of the gain); the 60 ms level rule for every pick-less note (gtr-fast +0.1 s missing, the Axel F theme +36 ms); the reported pitch's threshold at 0.03, 0.05 and 0.08 (each a little worse than 0.02); the longer wait for a click in any playing note, repeated or not (the same on the recordings, but the phantom through the amp).
- Looked at and left: a strummed chord's octave and fifth doublings (86 s of the poly's 121 s missing: every one of gtr-chords' 15 never-found notes is the octave or twelfth of a lower string), the octave below palm-muted power chords, pick scrapes before a note (a 5 to 35 ms high note at a tenth of the note's level, 2.7 s in mono; since handled, "Pick scrapes" below), and a slow strum's later picks each restarting the 40 ms wait for chord notes.
- NoteTracker, the pitch reported (
- Pick scrapes (2026-11-17; the owner: "pick scrapes/noises that play before a note coming through as blips or chirps", and only changes with no negative consequences elsewhere). Measured as before (five runs per clip on the recordings, a change kept only if no clip lost 30 ms in the clean runs), and on the synthetic guitar, every table. What a scrape is, on the recordings: the pick touches the string before it plucks it, the string rings for 10 to 70 ms (often in two short pieces) at a clear pitch, often a harmonic or octaves up, at a tenth of the note's level, and the NoteTracker played it as a note before the real one (gtr-frets-bridge had 43 such blips, 590 ms of strays). Of the notes the mono tracker started out of silence, six in seven of those under 0.15 of the notes before were scrapes (the real ones among them were mostly quiet first estimates of notes found again moments later). What changed, in
NoteTracker:- A faint picked note waits: the tracker keeps the picked notes' level when found (
fLoud; each new note counts half, so one bright note doesn't make the rest faint). A note with a pick, found while none plays and not the last note coming back (within a semitone, 150 ms), under 15% of it (kFaint) must hold its pitch 40 ms (kFaintHoldMs) before it sounds: the scrape is gone by then, and the real pick's note, far louder, isn't faint. - A jump in the level is a pick: the click detectors rest 60 ms after a click, so the real pick soon after a scrape's click went unheard and the scrape's note played on through it. The level doubling within two estimates while a note plays (
kSurge) is now a pick. The poly finder turns this off for its own tracker (setSurgePicks(false)): it lets chord notes in the moment the single note ends, and gtr-frets-bridge gained 43 ms of strays there. - On all 35 clips: mono strays 22.5 -> 21.0 s, missing 21.6 -> 21.6 s, wrong notes under 80 ms 590 -> 514 (lookahead 15 ms: strays 25.2 -> 23.5 s, missing 18.8 -> 18.7 s); poly strays 48.8 -> 47.3 s, missing 121.1 -> 121.1 s (lookahead 20 ms: 53.9 -> 52.3 s; with hiss and hum 51.8 -> 51.4 s, missing 150.8 -> 150.8 s). Guitar mono strays 9.4 -> 8.5 s, bass 7.0 -> 6.5 s. gtr-frets-bridge 590 -> 257 ms of strays (43 -> 20 blips), gtr-custom-high-frets 378 -> 89 ms (21 -> 5), bass-legato 317 -> 152 ms (18 -> 4). No clip lost more than 8 ms (power-chords' missing time) in the clean runs; with hiss and hum string-bends 22 ms. The synthetic guitar only gained: the bass scenes' phantoms 125 -> 92 ms, palm mutes through the amp 7 -> 0 ms of wrong notes. Test:
TrackingTests.cpp, a scrape at 8% of an A2's level before it's picked again. - Tried and dropped: a threshold of 0.2 against the loudest recent note, with or without a pick (mono strays 20.4 s, but on the synthetic guitar with a 15 ms Pick Filter palm-muted chugs at 13-19% of a bright chug's level lost 4 notes, and a decayed note found again after a wrong pitch, with no pick, dropped out 180 ms); the same at 0.12 (less gain); holds of 16 and 24 ms (scrapes got through: bass-legato +62 ms of strays) and of 50 and 70 ms (no better than 40); the rule only after 150 ms of silence (half the gain: melodies have scrapes between notes too); exempting the last note's exact pitch at any time (no help on the synthetic guitar, four clips worse); a jump of 2.5, 3 or 4 times for a pick (less gain; bass-fast with lookahead +10 ms at 2.5 and 3).
- Looked at and left: scrapes over a note still ringing (the tracker sees the scrape as a pitch change of the playing note) and the semitone glitches as a melody note decays into the next pick (gtr-custom-tetris-theme: C5 reads C#5 for 30 ms just before the A4's pick).
- A faint picked note waits: the tracker keeps the picked notes' level when found (
- Poly note finding (2026-10-24, the owner: apply the tracking improvements across the board; the filter bank described in this and the next two notes was replaced on 2026-11-09, above): the Poly Chip's note finding is now
dsp/PolyNoteFinder.hpp, shared with the MIDI Out's Poly mode. Added, like the NoteTracker's: the input's own level (a peak follower holding 1/60 s, then falling over 4 ms) and its noise floor; a band more than 1.5x louder than the input is only ringing on in its filters (after a mute), so its note ends at once; notes stand 12 dB over the followed floor; after a pick (OnsetDetector on the level or on the 2 kHz high-passed click; a strum's picks a few ms apart count as one), a playing note that falls under 0.7 of its level within 40 ms was muted for the new one; a playing note keeps its 1.4x head start in the local-peak test too, so a chord's third no longer flickers in and out (it lost the peak to a neighbour every ~25 ms and waited out the Pick Filter again); a pick followed by a 1.6x jump in a playing note's band within 15 ms is the note picked again (a Frame start without a gap, for MIDI); with lookahead a note is written back to its pick (a note with no recent pick only over its wait). Tried and dropped: a 40 ms hold over gaps (it held notes that had ended: extra-note time 3.6 to 6.8 s) and a prominence margin for new notes (palm mutes all missed). The benchmark (tests/PolyTrackingTests.cpp: strummed open chords, power chords, single notes, a ringing arpeggio, palm mutes, a fast run; 169 notes): extra-note stretches 151 to 143 (3.6 to 2.7 s), dropouts 2.2 to 1.3 s, missed 45 (mostly octave doublings dropped as harmonics, by design: Focus); with 20 ms lookahead extra time 9.9 to 4.9 s, 22 missed, single notes starting 6 ms after the pick. - Poly note finding on real playing (2026-10-24, the owner's DI recordings: "the poly needs a lot of work"): eight clips (open G and D chords, power chords open and palm-muted, octave shapes, a ringing E major arpeggio at the 12th fret, a slow riff, a palm-muted chugging riff, two bends) are in
tests/recordings(MP3, the owner's;tools/decode_recordings.shdecodes them with ffmpeg) with hand-made note lists (<clip>.notes: played notes, notes that may sound, one-of groups for bends, don't-care stretches; the boundaries checked against the filter bank's own band levels).tests/RealTrackingTests.cppscores the poly finder and the mono NoteTracker on them: missed notes, delay, missing note time (and missing in every octave), stray notes, split into a semitone or two off, harmonics, below a note and other. What they showed: the DI is quiet (peaks -24 dBFS, low-string bands at -50 dBFS, under the old -54 dB absolute floor) and the low strings' fundamentals are weak (G2 12 dB under G3 in the open G), so the finder missed the bass notes and played their harmonics, and a chord's beating made notes drop out and wait out the Pick Filter again. The finder now measures bands up to C8 and finds notes by their harmonics, one at a time (Klapuri's iterative estimation and cancellation, his harmonic weights): the best-scoring candidate, or one an octave, a twelfth or two octaves below scoring 30% of it (whose fundamental band is a peak of its own), is a note; it takes out its fundamental and odd harmonics, its even ones up to Focus x 0.535 times the mean of their odd neighbours (half that where a note is already playing, so a picked octave stays), and their leakage into the neighbouring bands (from the bank's response a semitone off). A candidate needs its band a local peak (the lowest band clearly over the one above: palm-mute thumps), over a -74 dBFS floor and 12 dB over the followed noise floor, not 26 dB under its loudest harmonic, a 3rd or 5th harmonic (or a strong fundamental) against its 2nd (else it is below a played note, or a muted strum's thump), and its first three partials within 9 dB of the loudest band; playing notes count 2x (was 1.4x). The note's level is its loudest of the first three partials. On the recordings (78 notes): missed 7 to 5, missing note time 30.1 to 19.5 s (in every octave 7.3 to 5.8 s), stray notes 255 to 187 (9.7 to 6.1 s); most of what's left: octave doublings (open G's G4, the arpeggio's octaves), the 16th-note chugging riff (too fast for semitone bands at A2: 2.8 s of strays), and string noise after the bends. On the synthetic benchmark: missed 45 to 36, dropouts 1.3 to 0.2 s, extra time 2.7 to 4.0 s (its strings have strong fundamentals). About 1.8% of a core (was 1.6%). Tried and dropped: bridging gaps of 15-60 ms in a playing note (extra time grew more than missing time shrank), a louder threshold for notes starting with no pick near (real picks are often missed in chords: missed notes 5 to 9), and a Focus of 70% at its old strength (most octaves lost). - Poly notes cut short (2026-10-25, the owner: the Poly Chip ends notes very early, "as if it requires more signal than I can provide"): two causes. Notes had to stand 12 dB over the input's noise floor, followed from its broadband peak level, so a live input's hiss and hum (spread over every band, or at a few) raised the gate for every band: with hiss and hum at -66 dB added to the recordings, 25.6 s of note time went missing (8 notes missed), notes ending while still 20-30 dB over the noise in their own band. Each band now follows a noise floor of its own (falling to the band's level over 300 ms, rising 20 dB/s while nothing sounds, 3 dB/s under other notes, 1 dB/s under its own), learnt in the first 250 ms after a reset while the input stays under -46 dBFS (a hum present from the start would otherwise become a note before its floor rose; no notes are found meanwhile); notes stand 12 dB over their band's floor and over half the input's. And a held note flickered: a harmonic of another note outscored it for a hop or two, it stopped, and waited out the Pick Filter again (the open G's B2 was found about half the hops). A playing note not found now keeps sounding for up to 40 ms, unless its level falls under 0.7 of where it was lost (a mute), it rings on alone (stale), a pick comes, a neighbour is louder or a note starts within two semitones (a bend, a slide, the next note), or the voices are full. (Bridging gaps without those conditions was tried on 2026-10-24 and dropped: it held notes that had ended.) On the recordings: missing note time 19.5 to 15.6 s (in no octave 5.8 to 4.8 s), missed 5 to 4, strays 187 to 186 (6.1 to 7.4 s, mostly notes ending up to 40 ms late, which the Poly Chip's release covers anyway); with the hiss and hum 25.6 to 15.4 s missing, missed 8 to 4. On the synthetic benchmark extra time 4.0 to 6.4 s, the same misses and dropouts. Tried: a lower level bar (the first partials within 9 dB of the loudest band) for playing notes (little gain once the flicker was fixed).
- Mono tracking on real playing (2026-10-24, same recordings): the NoteTracker played chords an octave below their root (B1 under a B5, D2 under the open D, C2 under the C5): a power chord's root and fifth (and a major chord's third) repeat together every two root periods, which YIN finds, with nothing at that frequency. The PitchTracker now checks pitches under 200 Hz: over the last two periods (Hann window, so the harmonics fall on whole bins), when the 2nd and 3rd harmonics are within 14 dB of each other and the 1st is 26 dB under them, the pitch is the root, an octave up. On the recordings: stray notes 146 to 128 (15.6 to 6.7 s; an octave or a fifth below a note 13.0 to 4.1 s), missing time 19.8 to 13.5 s; the synthetic benchmark unchanged. 20 dB did a little better on the recordings but moved a synthetic pluck with a weak fundamental (PedalTests) up an octave. What's left is mostly chords, which a mono tracker can't follow (an E5's common period is below the guitar), and the 16th-note chugging riff.
- Note tracking (2026-10-23, owner's report: notes played that weren't, notes missed): the mono synths, Harmonizer and Octave follow notes with
dsp/NoteTracker.hpp(4.11 DSP notes) throughblocks/TrackedInput.hpp, which adds Track (Block In / Rig In: the rig's input is the clean guitar, much easier to follow after an amp or drive; the Poly Chip has it too) as each block's last parameter, and the Lookahead block config ("lookahead", ms, 0 by default; the panel's Lookahead button opens a menu of Off, 5, 10, 15, 20, 30). With lookahead the block delays its own audio to match and reports the latency; the owner keeps it off by default until trying it. The benchmark (tests/TrackingTests.cpp,XYTHOS_TRACKING_BENCH=1 ./build/xythos-tests -tc="tracking benchmark") plays a synthetic guitar (tests/GuitarSignals.hpp: six Karplus-Strong strings with a pick shape, mutes, palm mutes, hammer-ons, bends, strings left ringing, hum and hiss; optionally through a high-gain amp) and scores missed notes, note delay, wrong-pitch and phantom stretches (audible, 3 ms or longer) and dropouts. Over 121 notes: the old tracking (PitchTracker + Pick Filter off) had 165 wrong-pitch stretches (3.0 s) and 56 phantom ones (6.7 s: every muted note rang on about 115 ms); the NoteTracker has about 40 wrong (0.8 s, most of them in an arpeggio left ringing, which no mono tracker can follow) and 5 phantom (0.04 s), median delay 12 ms (old: 8 ms), and with 15 ms lookahead a median delay of 2 ms. After an amp, Rig In scores as well as the clean guitar. Second round (2026-10-24, owner's recordings: chirps at the picks, notes chopped up): on real playing the chirps were the tracker locking onto a harmonic or a subharmonic for a few ms while the pick (or a finger) stops the string, with the level falling fast. Now a doubtful new pitch (aperiodicity over 0.1 without a pick, within 0.4 semitones of 2, 3 or 4 times or a 2nd, 3rd or 4th of the note before, or over an octave from it) needs three estimates in a row instead of two; a new pitch without a pick needs the level at least half the last 32 ms' peak; and other pitches end the playing note only once a new one is confirmed (or after four estimates). Benchmark: 25 wrong (was 40), dropouts 0.41 s (was 0.70), 4 missed (was 3: a note in the ringing arpeggio), delays about the same. Rig In is the default Track; the block's own input (delayed with the lookahead) sets the note's level and scales its velocity (LevelFollowerinTrackedInput.hpp; the Poly Chip scales its voices the same way), so the sound follows the signal path. - Robot Filter: an SVF whose cutoff jumps to a new held value on each clock tick (random, a fixed 8-step random loop, or the input level), with a glide on the octave position. Talk Box: three SVF band-passes on the first three formants, interpolated (on a log scale) along a vowel path.
Modulation Sweeper (the owner's idea, 2026-10-23): two or three of chorus, flanger, phaser and vibrato, picked by the user (Effect 3 can be None), that the block moves between. Each Sweep Rate step it moves on to the next effect in the pattern (Back & Forth: 1 2 3 2 1..., Cycle: 1 2 3 1...); Glide is the share of each step spent crossfading (raised-cosine, gains adding to 1 because the effects all carry the dry signal; never shorter than 15 ms, so 0% doesn't click). Sync makes each step a note value, counted from the song's start, so moves land on the beat. All four effects run all the time (a two-voice chorus and the vibrato share one input delay line; the flanger has its own feedback line; a 6-stage phaser), so a crossfade never starts from a cold line, and each effect's weight is smoothed (10 ms) so changing the effects or pattern doesn't click. Depth, Mix, Feedback and Width are shared; each effect has its own rate. 15 controls.
Shared DSP (src/engine/dsp/):
- Oversampler: the drives clip at 4x through polyphase IIR half-band filters (HIIR-style allpass pairs designed in code): flat to 0.49 fs, aliases more than 70 dB down, no added latency (IIR group delay only). Clipping curves are in
Waveshapers.hpp(x / (1 + |x|^n)^(1/n), square roots only). - Svf: TPT state variable filter, stable when the cutoff moves every sample (wahs, auto wah, filter, synth).
OnePoleandEnvelopeFollowerlive with it. - Lfo (phase accumulator, any phase offset for stereo) and RandomLfo (smoothed random, for drift).
TempoSync.hppmaps a synced knob to a note value: a time knob has the longest note at the top (1/1 down to 1/32); a rate knob has its own list from 4 bars and 2 bars down to 1/32, the fastest at the top. The descriptor'ssyncParam/syncedParam/syncedIsRatetell the UI. - PitchShifter: delay-line voices, two Hann-crossfaded taps whose delays move at (1 - ratio) samples per sample and jump by the window at the end of a sweep. Polyphonic, no reported latency; the shifted sound trails by about half the window (the Window control). The splices are made phase-coherent: a PeriodFinder (autocorrelation on a 12 kHz copy, every 8 ms, lags 7-60 ms, parabolic peak) finds the signal's repetition period, which for chords is their approximate common period (two root periods for a power chord, four for a major triad); the tracked note is the fallback. The window becomes a whole, even number of that period, each tap takes the new window when it jumps, and each jump is steered (a few percent of the window per jump, so it never clicks) to land exactly half a window from the other tap. Shifted notes and chords then keep 95-100% of their energy at the shifted partials (tested; it was 0-20% with a plain window, which is the warble cheap pitch shifters have). Costs about 2-3% of a core per pitch block in stereo. Used by Pitch Shifter, Whammy, Poly Octave, Harmonizer and Shimmer (Shimmer keeps a plain window: its reverb tail has no period).
- HQ pitch shifting (owner, 2026-11-07: an optional high-quality mode): Pitch Shifter, Whammy, Poly Octave, Harmonizer, Detune, Capo, Shimmer and Pitch Delay have a Quality button (
BlockDescriptor::hq, block config"hq", Standard by default;hqFromConfig()). HQ shifts withdsp/SpectralShifter.hpp, a wrapper around Signalsmith Stretch (MIT; STFT phase vocoder with peak-locked phases), vendored indeps/signalsmith-stretchwith our pitch-accuracy fixes (its README: peak frequencies from the phase advance, phase advance interpolated before de-rotating, the bin's own temporal prediction in the vertical step; upstream a shifted steady tone was up to 13 cents off a fifth or octave up and 44 cents an octave down, now 0.3 and 5) and Signalsmith Linear (submodule) for its FFTs. Block 120 ms, interval 30 ms, split computation (the work spread evenly over each interval): latency about 150 ms (input 60 ms + output 90 ms), about 1% of a core per voice and channel. 80 ms (100 ms latency) was tried: an open E chord an octave down kept only 76% of its energy at the shifted partials (120 ms: all of it; the delay-line shifter: 90%), and 40-60 ms smeared the low strings. On single notes HQ is much cleaner than the delay-line shifter at any setting (no splice warble); two octaves down neither is good. In the PitchBase blocks each voice is a shifter, the dry signal goes through a matching delay, and the block reports the latency; blocks process in 32-sample chunks (beginChunk(),dryIn(),voice()), a voice's ratio taking effect from the next chunk, and voices whose level is at zero are skipped (reset when turned up). The Window and the period finder aren't used. The Harmonizer's tracked shifts are delayed by the shifter's input latency (in whole chunks) so a new harmony starts with the note it belongs to; its latency is the lookahead's plus HQ's. Shimmer and Pitch Delay report no latency: Shimmer shifts the tail chunk by chunk inside its feedback loop (the shifter's delay only delays the regeneration), and Pitch Delay reads each repeat that much earlier from its delay line so echoes land on time (repeats shorter than the latency play at the latency). The Organ and Arpeggiator have no HQ mode (their swell and steps follow the input as it arrives). Tests:tests/HqPitchTests.cpp. - PitchTracker (reworked on 2026-11-09: 25 Hz up, no fixed threshold, the common-period test; "Tracking rework" above): YIN (cumulative-mean normalized difference, absolute threshold) on a copy decimated to 12 kHz, every 4 ms, 28-1500 Hz (60 Hz until 2026-10-29, which missed a 7-string's drop A; now down to a 5-string bass's low B, 31 Hz, at the owner's request), then refined at the full rate around the estimate. The difference at each lag is over a window of one lag (at least 2 ms; it was a fixed 17 ms), so an estimate needs about two periods of the note, and it is divided by the two windows' energy, so a fast swell or decay (a pick attack, a palm mute) doesn't read as unclear. On plucked strings (Karplus-Strong, whose fundamental is often weaker than its harmonics) it holds the note to 0.1 cent (tested). It replaced a zero-crossing tracker that locked onto harmonics of low plucked notes. A pitch under 60 Hz needs its fundamental within 9 dB of its 2nd to 4th harmonics: strings left ringing together repeat at their notes' lowest common period, often down there, with nothing at it. The difference function runs over a copy of the newest samples with running sums of squares (cheaper than before at twice the range: about 1% of a core for the NoteTracker). In the NoteTracker, a new note at the mains' 50 or 60 Hz (within 0.2 semitones) needs a pick, so hum after an amp doesn't start notes in the silence. Used through the NoteTracker by the synths, the Harmonizer and the Octave, and directly, as a fallback to the PeriodFinder, by the pitch-synchronous windows.
- NoteTracker (2026-10-23; the owner found the synths, pitch pedals and octaver playing notes not played and missing notes; repeated notes and mutes added on 2026-11-09, "Tracking rework" above): turns the PitchTracker's estimates into notes. Its own level follower holds for a period and then falls fast (the tracker's released over 80 ms, so notes ran on past every mute); the gate opens 12 dB over a followed noise floor (rising only between notes) and closes 50 dB under the note's peak; a level 20 dB under a 20 ms follower is a mute, and the muted tail can't start a note again. A note starts when two estimates in a row agree, with an aperiodicity under 0.3; once it plays, estimates within 0.6 semitone follow it however unclear (bends, vibrato, the decay). Two clear estimates of another pitch end it (a new note without a detected pick); 35 ms without a clear pitch ends it too. A pick (OnsetDetector on the level, or on the level high-passed at 2 kHz, where the pick's click stands out while an old note rings) ends the note before it; it may start a new note only once confirmed by the average level (3 ms) rising 1.25x or holding over 0.3 of its level for 12 ms: a mute clicks too (a finger landing, or the synthetic string's step), and then the level falls, so the click counts as a mute and the tail can't start a note (the average, because the peak follower holds a click's spike). With it the benchmark's phantom notes went from 5 to 0. The Pick Filter: a new note must also hold that long. Lookahead: the output runs that far behind the input, and a new note is written back to its pick (or to 8 ms before its first estimate), so notes start on time at the pitch found after the pick.
- Fdn: 8-line Householder feedback delay network with input diffusers, per-line damping and RT60 gains, two modulated lines; it can freeze (lossless loop, input shut). Used by Shimmer, Freeze, Bloom Reverb and Gated Reverb.
- OnsetDetector: a new pick attack (a fast envelope jumping to twice a slower one, over -50 dB, at most every 60 ms). Used by the Organ, the Sustainer, Bloom Reverb and the NoteTracker.
Notes:
-
Levels: default settings stay within a few dB of bypass (drives a few dB louder, like a pedal set at unity-plus).
-
Beat-locked LFOs: while the host's transport plays, the engine passes each block the song position (quarter notes, at the start of each chunk) through
Block::setSongPosition(). Synced tremolo, flanger, phaser and filter lock their LFO phase to it (cycles counted from the song's start; the tremolo's loudest point lands on the beat), only correcting when off by more than 0.1% of a cycle. Stopped, they run free at the synced rate. -
Noise gate key:
Block::setRigInput()gives every block the chain input (after the input level). With Key = Rig In, a gate after an amp opens and closes on the clean guitar. -
Momentary parameters (
ParamScale::Momentary, the looper's Rec/Dub, Play/Stop, Clear): 1 while held; blocks act on the 0 → 1 edge, so a MIDI footswitch's press/release maps directly. The UI holds a quick click for 80 ms so the press can't fall inside one audio buffer with its release. With a Latch control (Kill Switch, Beat Repeat, Tape Stop) a press toggles a latched state inside the block. No host parameter holds it, so it's saved separately: blocks report it (Block::latched(), bit i = parameter i), the engine publishes it per slot as a hidden output (slotLatchParam()), and the chain JSON carries it as each block'slatched, filled in from the live state when the UI saves a preset (or sends the chain) and when the DSP'sgetState()saves the project. New blocks start with the chain'slatched; blocks the engine keeps take it only from a preset being loaded (restoreLatches, never saved), so an ordinary resend can't undo a press. A block keeps restored bits until its Latch goes from on to off, since the host may restore Latch after the chain. The looper's state (the loop itself) isn't saved. -
Looper, global (owner, 2026-11-01): the looper left the chain. Its DSP is
Looper(src/engine/looper/Looper.hpp, header-only, extracted unchanged from the block); the engine owns one, run after the output level and before the metronome and limiter (Engine::processLooper()), so it records what's heard, plays on whatever the chain becomes (presets change the chain, not it), and its count-in clicks join the metronome's. A loop makes the output stereo, so a stereo loop stays stereo under a mono chain. Its 16 controls are host parameters after the tuner's (kParamLooperBase,looperParam(), LooperParam order, real values; the footswitches and the sound automatable, the set-up hidden; all MIDI-mappable, so footswitches can map to them), applied when they change (Tap sets the BPM inside it, which the host's unchanged value mustn't undo). Re-preparing at the same rate keeps the loop. Outputs:kParamLooperState(LooperReport::encodeState(): state, the pass being recorded, lanes, generation), position, the count-in click, the length, and 8 waveform cells. The waveform: the looper keeps each pass's peaks in 128 columns over the loop (8 lanes, a byte each, the square root of the peak; pass 1 the first recording, each overdub cycle round the loop the next, measured on the input before the loop joins it). Free mode's first recording has no known length, so its peaks go into 256 entries that merge in pairs when full and are spread over the columns when the loop closes. The UI may be another process, so the cells travel as output parameters, each one exact integer in a float (generation, lane, column, peak;encodeLooperCell()): the first is the cell written last (the live picture), the other 7 go round every cell in use, moving on every 40 ms (slower than UIs read outputs), so a UI that opens later, or missed some, has the whole picture within a few seconds. Clear starts a new generation, and the UI drops cells of other generations. The UI keeps its copy (looperOutput()) and draws the page (drawLooper()). Chains with the old block:retireLoopers()takes Looper blocks out, moving MIDI mappings to the global controls; from a project (host state or the exchange file) the first one's settings go to the global looper and the chain is sent without it; from a preset or undo it's just dropped. The block type stays registered, and hidden from Add Block, so a chain with one still builds if no UI opens. Memory (owner, 2026-11-01: an instance that never uses the looper reserves nothing, and the looper is ephemeral): the 23 MB loop buffer is allocated only once the looper is wanted in this run: the UI pulses the hidden Looper Wake parameter (1 for 250 ms) when the page opens, or a footswitch control is pressed (MIDI); the audio thread latches that (fLooperWanted), and the plugin's exchange thread allocates (Engine::serviceLooper(), every 30 ms) and hands the buffers over through an atomic flag (Looper::attach()). Until then the looper passes audio through, and a Rec/Dub press waits for the memory. Since the pulse is over long before a save, projects hold 0 and reopen without the memory. The old block still allocates its own, as it did. Saving the loop (owner, 2026-11-01: WAV and FLAC; MP3 and Opus were left out, since they'd need encoder libraries and LAME's LGPL doesn't suit an MIT plugin): the page's Save WAV… and Save FLAC… buttons (while the loop plays or is stopped, when the audio thread doesn't write it) pick a file with the system dialog, then bump the hidden Looper Export counter; the plugin's exchange thread writes the loop as a 32-bit float WAV to the cache dir (looperExportFile(),Engine::looperWav(), which reads the buffers the audio thread only reads in those states) and answers in the hidden output Looper Exported (counter * 2 + 1 if written); the UI reads that file, deletes it, and writes the chosen format (src/state/AudioFile.*): a 24-bit PCM WAV, or a 24-bit FLAC from our own encoder (fixed predictors of order 0-4, partitioned Rice coding, the best of the four stereo modes per 4096-sample block, MD5 unset; decodes bit-exactly in ffmpeg,tests/AudioFileTests.cpp; about 9% larger than ffmpeg's LPC encoder on a guitar recording). The file route works where the UI is another process and its state messages don't reach the DSP (Reaper's LV2). Passes, each in its own lane (owner, 2026-11-01: any pass can be deleted): the loop's memory isLooperMemory(inLooper.hpp), up to 8 lanes of two channels. The audio thread takes a lane for each pass with a lock-free state per lane (none, ready (zeroed), used, given back, busy:take(),give()) and plays the lanes summed; an overdub scales every lane at the write position by Feedback and adds the input to its own pass's lane, so the sum is exactly the old single buffer. A first recording may take a given-back lane unzeroed (it writes every sample it plays); overdub passes need a zeroed one. The exchange thread'sEngine::serviceLooper()callsLooperMemory::service(): it zeroes lanes given back and keeps one ready lane long enough for the next pass (the looper'ssetWant(): a minute with no loop, the loop's length with one, nothing while a free recording's length is unknown), allocating only when none fits. So the memory is 23 MB for the first recording plus the loop's length per pass after it, up to 8 lanes (8 x 23 MB at worst for a minute-long loop). With no lane to be had, a pass joins the last one (as passes beyond 8 always did). The old block services its memory only inprepare(), so its overdubs all go into one lane, as before. Deleting a pass (Looper::deletePass(); not the one being recorded; the only one left clears the loop) gives its lane back, moves the later lanes up and starts a new waveform generation; the UI moves its own copy up at once and keeps it when that generation arrives. Export (looperWav()) sums the lanes in use (LooperMemory::mixdown()). The page sends deletes and the start marker through hidden counter parameters, Looper Delete (counter * 8 + lane) and Looper Start (counter * 1001 + where in 0..1000), which the engine acts on only when they change, not as a project restores them. Count-in to an overdub (Count In mode, Rec/Dub with a loop playing or stopped;LooperState::DubCountIn): the clicks follow the loop's beat (the count-in's for a Count In loop, else the loop split into the whole number of beats at BPM nearest its length) and Beats; playing, the pass starts at the loop's start, the first time that leaves room for Count-In clicks (they wait until then); stopped, the loop waits in silence through the count-in and starts with the pass from the start marker. The pass's writes begin a round trip (Latency) later, so the first lands at the loop's start; it records Loops passes with the click, then plays on. A press during it calls it off, Play/Stop stops. Half Speed's beat is in samples heard. Start marker (Looper::setStart()): Play, and an overdub from Stopped in Free mode, start there; while the loop plays (not while it overdubs or counts in) it jumps there at once (owner, 2026-11-03), crossfading over 256 samples from where it was (fJumpFrom,fJumpLeft); Clear resets it. -
Looper (the block, retired 2026-11-01; all of this is the global looper's behaviour too): a fixed buffer of 60 s at 48 kHz per channel (23 MB), allocated in
prepare(). Its status (state, length, position) is encoded in the block meter (LooperStatus) and drawn in the panel (MeterStyle::Looper). The loop survives chain edits (the engine reuses the block) but not a sample-rate change. Count In mode (owner, 2026-10-30; the default): the first Rec/Dub starts a sample-counted timeline with the settings of that moment: Count-In clicks (LooperState::CountIn), then a recording of exactly Measures x Beats beats at BPM (at most the buffer), which closes the loop by itself, then Loops - 1 overdub passes; clicks sound on every beat (round(k * beat length)) until the last pass ends, the first beat of each bar accented (bars start where the recording does), with the metronome's Classic sound (classicMetronomeClick()). They're added after the loop has taken its input, so they're never recorded. A press during the count-in cancels it; one during the timed recording or passes acts as in Free mode and ends the clicks. The meter shows the click being counted in, and the recording's progress (the panel shows the bar). The seven controls came after the looper's first seven; blocks saved before them lack the"countIn"config key, so the DSP keeps them in Free mode and the UI sets the new controls to their defaults and adds the key (migrateBlocks(),kMigrations, as for the NAM tone controls). Since 2026-10-31 the clicks go to the engine's click bus (Block::setClickOutput(): one buffer per thread, like the MIDI outputs, added to the output with the metronome after the output level), so the blocks after the looper don't touch them; Click goes to 200% (its range changed before any release that had it); and Tap (a momentary control after Click; its unused value 0 is its default, so it needs no migration) sets BPM from the taps' average (TapTempo,src/engine/TapTempo.hpp, which the metronome's tap button uses too). The UI times the same presses (watchLooperTap(), also for MIDI-mapped ones) and sets the BPM control to match, so the knob shows the tempo. Latency (owner, 2026-10-31: loops didn't come round at the right moment; the last free slot, 0-200 ms, default 10, config key"latency"with its ownkMigrationsentry, so a type can now have several): monitoring through a DAW, what's played reaches the plugin a round trip (output + input latency) after the sound it answers, and no plugin API reports that figure. Count In mode records from the downbeat's click plus the round trip, for exactly the loop's length, so buffer index k is grid position k. The loop comes round on the grid's next downbeat, playing from index 0, while the bar's last round trip (still arriving) is written into the loop's end (fTailPos, then the seam's crossfade), which plays only on the next time round (owner, 2026-10-31: it used to close a round trip after the downbeat and play on from that far in, which cut the first repeat's downbeat attack: a pause before the riff came back). A Latency above the real round trip clips the downbeat's attack; one below it plays the loop that much late, so too low is the safer error. The overdub passes end that much later, the clicks still on the grid (fClickEnd). Overdubs in both modes are written a round trip behind the playback position (times the playback step: Half Speed, Reverse), where what the player heard sits. Free mode's recording is left as it was (its start and end are presses, whose own delay is unknown). The seam (both modes): the loop's last 256 samples crossfade into the 256 samples before its first one (a ring of the latest input,fRecent, copied when a recording starts), instead of both ends fading to zero, so a downbeat at the start keeps its attack. -
Spring reverb: two springs, each a loop of 60 stretched first-order allpasses (the dispersion that makes the chirp), the transit delay and damping; after Välimäki, Parker and Abel (2010), simplified.
-
Tests:
tests/BlockSanityTests.cppruns every registered block at default, extreme and random settings, at 44.1/48/96 kHz, mono and stereo (finite, bounded, no allocation, silent for silence), and for ten seconds at its maximum to check that no feedback loop grows once the input stops.tests/PedalTests.cppandtests/DriveTests.cppcheck each pedal's behaviour (gains, notches, rates, intervals, aliasing, looper actions). -
Voicing is by measurement, not by ear; the owner tunes the sound.
-
Add Block's live preview (owner, 2026-10-31): picking a block in Add Block or Replace Block (a click, or the arrow keys: Up/Down through the rows, Left/Right too in the block types' two-column grid) puts it in the chain at once, so it can be heard; each new pick takes the previous one out. The first pick snapshots the chain (
fPreviewBase, and where the block goes); each pick restores the snapshot (values back in the host too, since a replaced block's slot may be reused) and adds the block without an undo step. OK (Add/Replace), Enter or a double-click keeps it as one undo step from the snapshot; Cancel, Esc, × or a click outside restores the snapshot. Picks are identified across frames by file path or typeId (pickKey()), since the rows are rebuilt as they're drawn. -
Phase check (owner, 2026-10-31):
compareBranchPolarity()(src/engine/PhaseCheck.*) builds private copies of each split branch's NAM and IR blocks (others are left out: they rarely flip polarity, and time-varying ones would blur it), runs 0.5 s of quiet band-limited noise (80 Hz to 5 kHz, about -30 dBFS, so amp models stay near-linear) through each branch at 48 kHz, low-passes both at ~400 Hz (the out-of-phase sum is heard as lost low end, and up there two cabs' timing differences would flip the sign), and takes the correlation with the largest magnitude within ±0.5 ms of Align's delay: ≥ 0.5 same, ≤ -0.5 opposite, else unknown (no warning). The UI runs it on its own thread (PhaseWorker, joined on close, cancellable) 600 ms after the inputs last changed (phaseKey(): those blocks' configs, values and bypass, and Align), so a knob drag starts one check at its end; a check costs a few tens of ms (two NAM model loads included). The Invert switches are applied to the result in the UI, so flipping one needs no new check.
- Plugin state (saved by the DAW with the project): a JSON string through DPF's state API, holding the chain, slots, split, block settings, MIDI mappings and metronome settings. File references store the path and the content hash.
- Preset files (
.xythos): a zip containingpreset.json(the chain, its MIDI map and the global sound controls) and, when exported with "embed files" on (default on), the NAM files and IRs it uses, underfiles/<content hash>/, and the user's images its blocks use, underimages/<amps|cabs|pedals>/<id>(added to the user's libraries when it's opened: an identical image is reused, a name taken by other content gets a number and the blocks follow). Save and Save As keep presets in the preset folder (presets/in the config dir, with subfolders), without files, through an in-app dialog; Export writes an embedded copy anywhere through the system dialog; Open File… opens one from anywhere. Manage Presets… loads saved presets, marks one as the default, which new plugin instances load, and deletes them (Delete asks "Delete?" and deletes on a second click; only preset files inside the preset folder,deletePreset()). Rename (owner, 2026-11-08) edits the row's name in place (kFieldPresetRename; Enter or a click elsewhere commits, Esc cancels) andrenamePreset()renames the file in its own folder, refusing a bad name or one already taken (a change of case only is allowed); the default, the preset's Program Change, the recent list and the open chain's preset path follow the new path. The top menu has New, Save, Save As, Manage Presets…, Open File…, Export…, the embed option, and every saved preset laid out as the preset folder is: top-level presets first, then each folder as an indented heading with its presets and subfolders under it (the open preset in the highlight colour, the default marked). It scrolls when it's taller than the window. The preset name shows in the top bar, with a dot when the chain has changed since it was saved or opened. - Missing files: on load, each block's file is looked for at its original path, then as an embedded copy (extracted to the cache), then in the library by content hash. If none is found, the block is created grayed out (passes audio through) with "Locate…", and "Use … from the library" when a library file with the same hash appears later.
- Settings and favorites: one JSON file per user —
~/.config/xythos/settings.jsonon Linux,%APPDATA%\Xythos\settings.jsonon Windows. It's written atomically, and every open instance reloads it when it changes (the UI checks its modification time once a second; a change re-reads the file before saving, so instances don't overwrite each other's changes). Fields: NAM folder, IR folder, default A2 size, normalization default for new blocks, multi-core splits, the theme (theme, a name inink::themes(); Iris to start; the earlier accent and highlight keys are ignored), favorites. AblockArtkey from older versions is ignored. Also the update check on/off and the dismissed release (checkUpdates,dismissedUpdate). - Update check (
src/state/UpdateCheck.*): while it's on (Settings, default on), the UI checks a few seconds after opening, at most once a day for all instances together (update-check.jsonin the cache dir: when the last check started and the latest version found; claimed before fetching, so instances opening together don't all check, and a failed check also waits a day).UpdateCheckerfetches GitHub'sreleases/latest(drafts and pre-releases excluded; tags likev1.2.0) on its own thread throughHttpGet(src/ui/HttpGet.*: WinHTTP on Windows; thecurlcommand on macOS and Linux, so the plugin links no TLS library, HTTPS only), cancelled and joined when the UI closes. A newer version than this build (XYTHOS_VERSION, the CMake project version, whichgetVersion()also reports) shows as a notice after Redo in the top bar; clicking opens the releases page (a fixed URL, never one from the response), × stores the version as dismissed. Nothing is downloaded or installed. - Favorites are stored by content hash (XXH3-128 of the file bytes).
- Undo/redo: a stack of
ChainStatesnapshots (small, so snapshots are cheap), up to 200 steps. One knob gesture is one step. It covers blocks, block values, bypass, the MIDI map and preset loads, not the global knobs. Undo/Redo buttons in the top bar; Ctrl+Z, Ctrl+Shift+Z and Ctrl+Y while the window has focus.
- Scans the NAM directory and the IR directory on a background thread (
LibraryScanner), including inside.zipfiles. Files inside zips are addressed asarchive.zip!/folder/model.nam. When a block uses one, the file is extracted to the cache directory (cache/extracted/) off the audio thread and loaded from there. - An index cache per kind (path, size, modification time, hash, metadata) keeps rescans fast. Only new or changed files are read and hashed. A rescan runs when the UI opens, when a folder changes, and from the Rescan button.
- NAM metadata (gear make/model) is shown under each model in the list, with its gear type and architecture (
describeNamFile(),namGear()insrc/state/Library.*). Gear types are NAM's trainer's (amp, pedal, pedal_amp, amp_cab, amp_pedal_cab, preamp, studio) and TONE3000's (amp, amp-cab, pedal, outboard, cab, space, experimental; older full-rig, ir), shown as Amp + Cab, Amp Head, Cabinet, Pedal, Outboard, Spaces, Experimental (studio counts as Outboard, preamp and pedal_amp as Amp Head). Architecture: SlimmableContainer, or a WaveNet with one slimmable or per-layer-kernel layer array, is A2; a two-array WaveNet is A1, named by its channels (16/8 Standard, 12/6 Lite, 8/4 Feather, 4/2 Nano); others by their architecture name (LSTM, ConvNet). The index cache stores both (index version 2; older indexes are rescanned). The tile and panel show them too, read from the library, or from the file for one outside it, and warn (amber, with a sign) when an Amp + Cab model has an active cab (IR block or a Cabinet model) after it on any path, or an Amp Head model lacks one on some path (a split's branches are separate paths). - User images (owner, 2026-10-29; replaced sidecar images,
My Amp.pngnext toMy Amp.nam): the user's own images live in three libraries in the config dir,images/amps/(NAM blocks),images/cabs/(IR blocks) andimages/pedals/(every other block) (src/state/UserImages.*). One chooser (owner, 2026-10-31): for IR blocks and NAM pedals and amps, Image…, right-clicking the panel's image or Image… in the tile menu opens the photo dialog (drawCabDialog()) with a "Your images" section first (the library's images, Delete on hover, and an Add Image… tile), then the built-in photos; picking a built-in one also clears the block's user image, as does Reset to Default. Other blocks keep the Images dialog (stock image + library). Left-clicking the panel's image does nothing now; opened from Add Block (right-click a file) the dialog has no user section, since user images belong to a block. A block that uses one stores its file name there as its id (BlockState::image,"image"in the chain JSON, outsideconfigso the DSP never rebuilds a block for it; undoable like any chain edit). The block panel's Image… button opens the Images dialog: the stock image and the library's images as tiles; a click picks one, Add Image… copies a file in through the file browser (PNG, JPEG or WebP, checked by its first bytes; an image with the same content is reused, a taken name gets " 2"), Delete asks "Delete?" and deletes on a second click. They're shown on the tile and in the block panel as they are, with no face knobs, LED or footswitch. A deleted image's blocks keep the id and show their stock look (so a preset saved with it still loads). Otherwise the block type's built-in image (resources/blocks/<typeId>.webp, cropped from the owner's photo bytools/prepare_block_image.py; tiles and lists useresources/blocks/thumbs/<typeId>.webp. These are the only copy in git:cmake/EmbedBlockImages.cmaketurns them intoBlockImages.cppin the build directory. They were about 30 KB each (640 px, q88); since 2026-10-28 they're WebPs (decoded with libwebp insrc/ui/WebpImage.*, as DPF's stb_image reads only PNG and JPEG) 1280 px high at q96, about 115 KB each (11 MB for all, thumbnails included), and still stay inside the plugin: a file next to it would be one more thing to lose when copying a plugin, and embedded data costs no RAM until it's read (the loader maps it lazily). The UI decodes a full image when it's first drawn and frees the least recently drawn beyond four; thumbnails stay loaded), otherwise the placeholder art (drawBlockArt(): the Neon style, black enclosures outlined in glowing lines of the category colour; each pedal has its own symbol on its face, drawn from its name and purpose:src/ui/BlockGlyphs.*, plain polylines and dots in the pedal's 124x200 frame, sotests/BlockGlyphTests.cppcan check that every pedal has one and no two are the same; a type without one falls back to its category's symbol). NAM and IR blocks get a look per file from its path (src/ui/FileLooks.*: FNV-1a + splitmix64 over the path string, fixed so it's the same in every build; empty for the generic look in Add Block; cabs stay 2x2), checked bytests/FileLookTests.cpp; changing the mapping changes how everyone's files look, so don't without reason. Cab images (owner, 2026-10-29): IR blocks show a built-in speaker cabinet photo instead (resources/cabs/<size>-<n>.webpandthumbs/, bytools/prepare_cab_images.py; embedded asCabImages.cppby the same CMake script with-DKIND=Cab;builtinCabImage(),builtinCabThumb(),builtinCabIds(); the UI caches them with the block images undercab:<id>).defaultCabImage()(FileLooks) picks one from the IR's content hash with the same dice, among the size its file name gives if it gives one of the six; the user's pick (the Cab Image dialog: right-click an IR in Add Block, the panel's cab image, or the tile menu) is stored inSettings::cabImages, content hash -> id, so it follows the file into every chain and preset and syncs to every instance like the other settings. Closing the dialog opened from Add Block goes back to Add Block. A user image (BlockState::image) still wins. Generic pedal images (owner, 2026-10-30): 49 Krea-2 renders of made-up pedals inresources/pedals/pedal-<n>.webp(1280 px high, their own aspect;thumbs/384 px; bytools/prepare_pedal_images.py, embedded asPedalImages.cppwith-DKIND=Pedal, cached underpedal:<id>). NAM blocks whose file's gear type is Pedal show one:defaultPedalImage()picks it from the content hash (ids in their numbers' order, so new images must be added as new numbers), the user's pick (the same dialog as the cabs, titled Pedal Image, all in one grid) is inSettings::pedalImages. A block type without its own photo (a new pedal awaiting the owner's render) shows the onedefaultPedalImage()picks from its typeId, instead of the placeholder art. Amp head images (owner, 2026-10-31): 78 Krea-2 renders of made-up heads inresources/amps/amp-<n>.webp(1280 px wide, q94;thumbs/384 px; about 15 MB in all; bytools/prepare_amp_images.py, embedded asAmpImages.cppwith-DKIND=Amp, cached underamp:<id>). NAM blocks with a file whose gear type is an amp (Amp Head, Amp + Cab, Outboard, or none given;isAmpGear()) show one:defaultAmpImage()reads a style from the file's name (ampStyleInName(): sound words first, like clean, jazz, crunch, lead, djent, then amp names, like Twin, AC30, JCM, 5150, then a gain number), keeps the heads whose style tags (kAmpImageStylesin FileLooks.cpp, set by eye from each photo, the strangest looking tagged extreme) include it, and picks one by the content hash with the same dice; the user's pick isSettings::ampImages, in the same dialog titled Amp Image (PhotoKind::Amp). Each head's face (ampHeadFaces(), PedalFaces.cpp) was placed from measurements of its blank panel, jack and power switch: five knobs for Input, Bass, Middle, Treble and Output, centred on the panel with their gaps 65% of what spreading them over it would give (owner: closer together), the LED a little left of the switch, the switch toggling bypass; heads with coloured glowing art get rim knobs and an LED of that colour, the others black knobs and a red lamp. Half stacks (owner, 2026-11-01): 34 Krea-2 renders of a head on its cab in the same folder,resources/amps/stack-<n>.webp(portrait, 1280 px high;thumbs/384 px high;tools/prepare_amp_images.py --stacks), so they share the amp heads' embedding, cache key, picker andSettings::ampImages. NAM amps of an amp with its cab (gear type Amp + Cab;showsHalfStack()in the UI) show one instead of a head. Since 2026-11-03 (owner: A1 files often don't say) a file whose metadata says "amp" or nothing goes by its path (rigInName(),namGear(gearType, path)insrc/state/Library.*): the file name first, then its folders from the closest out; "full rig", "combo", "stack", "amp+cab", "with cab", a cab size like "4x12" or a mic like "SM57"/"mic'd" make it an Amp + Cab, "head", "preamp", "amp only", "no cab", "DI" an Amp Head ("no cab" and the like win over the full rig's words, which win over "head"). That gear is what the tile, panel and Add Block show, and what the cab warnings use; files that say Amp + Cab, Pedal, Cab or Outboard are taken as written, so it's plain the model includes the speakers:defaultStackImage()picks it by the content hash alone;defaultAmpImage()only ever picks among theamp-ids, so the heads' defaults didn't change. The Amp Image dialog shows both kinds in two sections, the kind the model shows by default first. The heads on the stacks have faces like the heads (halfStackFaces(), measured from each photo: the knobs centred on the control strip between the jacks and the LED, the LED left of the power switch; owner: they have heads, so they get the knobs and LED too). Each photo has a face (genericPedalFace(), placed by hand): a footswitch that toggles bypass and an LED (lit in the glyph's colour) over the photo's LED hole or bezel, or between the glyph and the footswitch on photos without one; no knobs, as the painted ones aren't any particular controls.drawBlockImage()finds the face from the image itself (faceOf()). User images: PNG (8 or 16-bit, since 2026-11-02), JPEG or WebP (PNG and JPEG throughdecodeRaster(), decisions log 20; WebP goes through libwebp). Face knobs (proof of concept on the Poly Chip, 2026-10-25):src/ui/PedalFaces.*lists, per typeId, knobs on its built-in image (parameter name, centre and radius as fractions of the image; checked bytests/PedalFaceTests.cpp). The UI draws them only on the built-in image (not a user's image): the knob image (resources/knobs/knob.png, pointing up), its body unrotated (a real knob's reflections don't turn with it) and its pointer, cut out of it, rotated to the value over the same 270 degrees as the panel's knobs, its lighting layer (sheen.png, turned into white with alpha = brightness, drawn unrotated at 20 %) over it, on a soft shadow;tools/embed_knob_images.pycuts both to the knob's circle intosrc/ui/KnobImages.cpp. In the block panel they'reHit::Knobareas for the slot's host parameters, so dragging, the wheel, MIDI learn and help work as on the panel's knobs and both show the same value. Since 2026-10-28 every pedal has a photo: each face also has a footswitch (Hit::FaceSwitch, toggles bypass like the tile's power button) and a rim colour: the knob is then the blue-rim knob (resources/knobs/rim.png), split like the LEDs into a neutral part and a colour part that is added tinted (photoTint()), with a blurred copy of the rim added as glow so it reads at a few pixels; a zero colour keeps the black knob. - Add Block → NAM / IR lists the library: a favorites filter, a star per file, and Browse… for a file outside the library. The search box at the top of the dialog (focused when it opens, × to clear) searches every category: built-in blocks by name and category, library files by name, folder or metadata (all words must match). Results are listed under category headings.
- DPF UI with NanoVG drawing. Resizable, with HiDPI scaling. The default logical size is ~1200 × 720 and the smallest layout ~900 × 560; the window can go down to 40% of that (owner, 2026-11-07: small screens), and below it
uiScale()multiplies the host's scale factor by the fit, so the whole UI shrinks evenly (logicalfWidth/fHeightnever go under the smallest layout). Drawing and mouse input both go throughuiScale(). - Layout:
- Top bar: the logo (two embedded layers,
resources/logo/: the crop circle in white, tinted with the highlight colour, and the wordmark), preset menu and preset name, undo/redo, the update notice when a newer release exists (section 5); on the right, icon buttons for the metronome (with ▾ for its panel), the tuner and settings. No global bypass button (owner, 2026-11-13): the DAW's bypass drives the bypass parameter. No GitHub or Fretbored links either (owner, 2026-11-13: clutter; they were icon buttons left of the metronome). - Middle: the chain, left to right, with square block tiles and "+" boxes. A split shows as two rows that rejoin at the merge. Hovering the gap between two blocks shows two small buttons: insert a block there (upper half) and, with no split yet, split there (lower half). A chain wider than the window scrolls with the mouse wheel, a thin scroll bar under it, or a middle-drag anywhere over it but a block. Middle-clicking a block enables or bypasses it (owner, 2026-10-30; from 2026-10-24 it removed it). Double-clicking a block, or Replace in its right-click menu, opens Add Block on the block's own category and puts the new block in its place and slot (one undo step). The block menu: Enable/Bypass, Replace, Remove, Copy, Paste after (once a block is copied), MIDI Learn bypass (and Clear MIDI when mapped). Copy takes the block's type, settings, values, bypass and image, not its MIDI mappings; the copy is shared by the instances in the host's process, so it pastes into another instance too, and right-clicking a "+" box pastes at the end of that section (owner, 2026-10-29). A paste is one undo step and takes a free slot. The mouse wheel over any knob turns it (2% a notch, Shift 0.2%; a burst of notches on one knob is one undo step).
- Below the chain: the selected block's panel: a large block image on the left (placeholder art until real pedal/amp/cab images exist), the name and file above the controls, and the generic controls centred in the space right of it in one or more rows, spread out up to 1.6x their cell width and 1.35x their row height to fill it (owner, 2026-10-28); dark gray while the block is bypassed. The image is meant to fill the panel's height (owner, 2026-10-25): the controls go into as many rows as needed (and as fit) for that, and the image only shrinks when even that leaves too little width. The generic knobs may later go away in favour of turning knobs on the image itself.
- Bottom bar: mono/stereo toggle, input, bass, middle, treble and output knobs, input/output meters with clip lights (click to reset), limiter on/off.
- Top bar: the logo (two embedded layers,
- Interactions:
- Drag a block to move it; drop indicators show where it lands.
- Right-click a block: bypass, remove, copy, paste, MIDI learn.
- Drag a knob up or right to turn it up, down or left to turn it down (owner, 2026-10-31: left/right too, for the bottom bar's knobs); double-click to reset it (to the user's default for the block type, if set); Shift-drag for fine control.
- Set as Default (block panel header, owner 2026-10-31): stores the block's values as what new blocks of its type start with, in
Settings::blockDefaults(typeId -> control name -> value in the control's units, so it survives range changes; footswitch actions left out); applied inaddBlock()after the Settings defaults (NAM/IR Normalize, A2 size); Clear Default (shown while one is set) removes it. - The X11 window gets an arrow cursor of its own (
defineArrowCursor(),src/ui/Vsync.cpp): without one X shows the parent window's, and Reaper's FX window left its resize cursor on over the whole plugin. pugl doesn't define one (itspuglSetCursor()skips the arrow it starts with).
- Dialogs: Add Block (categories on the left), Settings, and the Tuner and Metronome panels (overlays). Lists in dialogs (Add Block's blocks, library files and search results, the preset menu, Manage Presets, Save As's folders) show a scroll bar at their right edge when they're taller than their space, to drag or click for those without a scroll wheel (owner, 2026-10-25). Add Block's rows are tall enough to see the art (112 px for blocks, 76 px in lists).
- Redraws on Linux: X11 events are only read when the host calls the UI. LV2 hosts call it on their idle tick (Reaper: ~30-36 Hz), so dragging redraws at that rate. For VST3, a DPF patch (
patches/dpf/) registers the X11 connection with the host run loop's event handler, so events are handled and redrawn as they arrive, whatever the host's timer rate. The UI turns vsync off for its GL window, so a buffer swap never stalls the host's GUI thread waiting for the screen.XYTHOS_SHOW_FPS=1in the host's environment shows a frame-rate readout. - Touch mode (
Settings::touchMode, owner 2026-11-08): touchscreens reach the UI as an emulated left mouse button, soonMouse()holds a left press back (fTouchPending) and decides inonMotion()(moved more than 10 px: the held-back press goes throughonLeftPress()at where the finger landed and the drag continues, or a vertical drag over a dialog's list scrolls it), on release (a tap: press, then release) or inuiIdle()(checkLongPress(): held 550 ms,onRightClick(), else the help for what's there; the rest of that touch is swallowed). Momentary hits skip this (the looper's Rec must start on the press).hitAt()falls back to the nearest hit within 10 px, among what's drawn over the dialog the tap landed on. Empty chain space pans like a middle drag.drawHelp()shows only after a long press. Long-press timing depends on the host's idle rate (30-60 Hz), which is fine at 550 ms. - Hover help: resting the mouse on a control for 0.6 s shows a translucent popup with its name and a plain-English explanation of what it does and how to use it. The texts are in
src/ui/ParamHelp.cpp(block controls by typeId and control name, the others by parameter symbol);tests/ParamHelpTests.cppchecks that every block control and every global control has one, at least 80 characters long. The top-bar icon buttons and the metronome's beat, grouping and tap controls have popups too, and so does every block type (blockTypeHelp(): what it is, what it's for, how and where to use it), on its tile in the chain and on its entry in Add Block (categories and search results). - A dark theme defined as colour tokens in one file, so it can be restyled: the window shows the owner's background image (
drawBackground(), scaled to cover); what the window shows in its base state (bars, panels, tiles, buttons, the tuner and metronome) is black at 50% with 1 px gray outlines (surface()), and everything that appears over it (dialogs, menus, help popups, the toast) black at 95% (owner, 2026-10-29; a blur behind the popups was tried and dropped), the items listed in Add Block black at 97%, and buttons that are on are an accent outline over a faint accent tint. Knobs: hairline body, 21 ticks lit up to the value, a dot for the position. Font: Jost Light (Regular for small text), drawn 1.69x the layout size because Jost runs small, with DPF's DejaVu as the fallback for glyphs Jost lacks (★, ▾). - Outlines, buttons, fills and knobs in ink: with a gradient on, the highlight colour is painted with one window-fixed image paint instead of a solid colour (
XythosUI::inkPaint(); the paint is mapped back through the current transform, so the colours stay put wherever a shape is drawn). The texture (state/Ink.*, 128x80 RGBA, stretched over the window) is made when the theme changes: Smooth runs the colours left to right, slightly tilted; Splotchy is fixed two-octave value noise stretched to the full range, so the blobs look the same every time. The UI'sfillColor/strokeColorshadow NanoVG's and route the highlight's RGB to the paint (alpha kept); dimmed (bypassed) colours stay grey. Text is not painted: NanoVG draws glyphs with its font atlas and the paint's colour alone, and an image paint's colour is white, sotext()/textBox()draw ink text in its plain colour (seen in jalv on 2026-10-30; not yet tried in Reaper). Making text follow the gradient would need either a strip-by-strip scissor approximation (many draws, visible banding) or drawing text into an offscreen target and masking it, both larger changes. Colours are lifted toward white below relative luminance 0.12 (ink::lighten()). Themes (owner, 2026-11-08) replaced the accent colour, the mode choice, the presets and the colour picker:ink::themes()lists fixed looks (Iris first, then Kaia's), each a mode, 2-3 colours, an accent, text and dim text colours, two ARGB glows drawn over the background image (drawThemeGlows(), radial gradients at the top right and bottom left, sized as in Kaia) and a scanline flag (drawScanlines(), last in the frame).applySettings()setstheme::accent,theme::textandtheme::textDimfrom it (isInk()matches those RGBs, so they take the paint), andupdateInkImage()remakes the texture when the theme changes. The logo's crop circle is a separate white layer (kLogoMark) drawn with its paint's colour set to the highlight (highlightAt(): the texture's colour at the circle, or the accent). - Power LEDs: every pedal shows an LED, lit with a glow while the block is on and dark while it's bypassed (or missing or not running), on its tile and in its panel (
drawLed()). The drawn pedals have a red one beside the footswitch and the amps a pilot light; built-in images list theirs inPedalFaces.cpp(position, size and lit colour; on the photos, the indicator spot north of the footswitch, coloured like the glyph), and the UI draws over the image's own LED, so an image can show it lit or unlit. Add Block's thumbnails show none. - The update notice opens the browser through a small platform helper (
openUrl():xdg-open/ShellExecute/open). On a narrow window the preset button narrows (down to 160 px) so the buttons on the right still fit.
- CI (GitHub Actions):
- Linux and Windows builds of VST3 and LV2 on every push, and a macOS universal build (VST3, LV2, AU; ad-hoc signed, the AU checked with
auval, tests run on arm64) - unit tests
- plugin validation with pluginval (VST3) and lv2lint (LV2)
- Linux and Windows builds of VST3 and LV2 on every push, and a macOS universal build (VST3, LV2, AU; ad-hoc signed, the AU checked with
- Unit tests:
- tuner accuracy
- metronome sample timing
- delay and reverb behaviour
- chain build and state round-trips
- preset embedding and missing files
- zip scanning
- undo/redo
- Real-time check: a test build that fails if the audio thread allocates memory.
- Manual DAW testing: Reaper first, on Linux and Windows (it's the DAW the project owner uses); Ardour and Carla on Linux as secondary checks.
- Releases: zip files per platform attached to GitHub Releases, tagged
vX.Y.Zto match theproject(VERSION)inCMakeLists.txt(the update check compares the two). Bump the version before tagging.
- An empty chain uses under 0.5% of one core at 48 kHz with a 64-sample buffer.
- Engine overhead around blocks stays under 5% of the blocks' own cost.
- Changing a model or editing the chain causes no dropouts or clicks.
- The UI opens in under 300 ms.
- A library rescan of 1,000 files with an existing index takes under 1 s.
Each milestone ends with a working build, passing tests and a short demo.
| # | Milestone | Done when |
|---|---|---|
| M0 | Project skeleton | CMake + submodules; a pass-through plugin builds as VST3 and LV2 on Linux and Windows in CI; an empty resizable HiDPI NanoVG window; MIT license headers |
| M1 | Engine core | Block interface and registry; ChainGraph with real-time-safe swap; parameter slots; state save/restore; input/tone stack/output/limiter/meters; global bypass; mono/stereo |
| M2 | NAM block | A1 and A2 loading on a background thread; Full/Lite global and per block; normalization; sample-rate handling with latency reporting |
| M3 | Delay, reverb and compressor | The three blocks with their parameters, stereo delay and tempo sync |
| M4 | Main UI | Chain view with tiles, drag-and-drop, "+" and the Add Block dialog, block controls, bottom bar with knobs and meters, generic images, dark theme |
| M5 | Library and settings | Settings panel; NAM directory scanning with zip support, rescan button, index cache; hashing and favorites; sidecar images (replaced by user image libraries, 2026-10-29) |
| M6 | Split and merge | One split with merge controls, latency alignment, branch B on a second core |
| M7 | Presets, undo/redo, MIDI learn | Preset menu, embedding, missing-file handling, undo/redo, MIDI learn |
| M8 | Tuner | Traditional and strobe views, mute, reference pitch, accuracy target met in tests |
| M9 | Metronome | Full Fretbored feature set, free and DAW-sync modes |
| P | Pedals (owner's request, before v1) | The pedal list in Requirements, with tests (section 4.11) |
| M10 | v1.0 release | Performance targets met, DAW testing done, docs, first GitHub Release |
M2–M3 and M4 can overlap, as can M8 and M9.
-
CPU baseline: AVX2/FMA is required.
-
Standalone app: dropped for now; VST3 and LV2 only.
-
Reverb types: room, hall and plate.
-
Test DAW: Reaper is the primary host.
-
Compressor: added to M3, studio style (owner's choice over a simple pedal-style one).
-
Theme: no gradient; pure black window. Boxes were flat near-black gray at first; the owner then chose black boxes with hairline gray outlines, Jost Light and tick-scale knobs with a dot, from drafted screenshots (fonts, knobs and surfaces; 2026-10-22).
-
Block panel: large block image on the left, generic knobs centred in the space to its right (were right-justified until 2026-10-28).
-
Folder choice: DPF's file browser can't pick folders, so "Choose…" opens the system's folder picker (
src/ui/FolderPicker.*, on its own thread): Linux tries the desktop portal (FileChooser v3,directory), then zenity, then kdialog; Windows uses IFileOpenDialog with FOS_PICKFOLDERS; macOS runs AppleScript'schoose folderthroughosascript(its own process, so it needs nothing from the host's main thread). With none of these, it falls back to DPF's browser and takes the folder of any file picked in it. The path can also be typed or pasted. -
MIDI map in the chain state rather than a separate plugin state, so it follows the chain's routes (including the exchange file for Reaper's LV2) and is covered by undo and presets.
-
Metronome samples: only the Classic clicks come from Fretbored. Its Digital samples carry a third-party artist credit (owner's call to remove them), so the Digital sound is generated in code.
-
16 parameters per block (was 8), for the Doppelganger Delay. Most host parameter indices moved, which was fine only because nothing was released yet; from v1.0 on the count is fixed.
-
Pedals before v1: the owner asked for a wide pedal set first (no rush to v1). Varieties are a Type choice inside one block rather than separate blocks; a released Choice list never changes (saved values would map to other choices), so new varieties that don't fit become new blocks.
-
Pitch effects without latency: delay-line pitch shifting with pitch-synchronous splices (polyphonic, clean on notes and most chords) instead of FFT or PSOLA methods that add latency; the synth, harmonizer and octave track pitch with YIN on a decimated copy (detection takes 4-24 ms, but adds no latency to the audio).
-
Looper controls as momentary parameters, so footswitches map to them with MIDI learn; the looper keeps one loop (60 s at 48 kHz).
-
macOS (owner, 2026-10-24; was out of scope): a universal binary (Apple Silicon and Intel), macOS 11+, VST3, LV2 and AU (Logic and GarageBand only load AU). Linux and Windows stay x86-64 only. No Developer ID yet: CI signs the bundles ad hoc (Apple Silicon won't load unsigned code), so downloads need
xattr -dr com.apple.quarantine. -
Pedal photos embedded (JPEG, WebP since 2026-10-28) (owner, 2026-10-28): every pedal has a photo with knobs, a power LED and a footswitch on its face. The images stay inside the plugin rather than in files beside it: at about 30 KB each (JPEG; 3.5 MB with thumbnails) they barely grow it, embedded data costs no RAM until read, and there's no resource folder to find or lose per format (VST3, LV2, AU bundles) or per host process. Only the JPEGs are committed; the build turns them into C++ (
cmake/EmbedBlockImages.cmake). The UI decodes only what it shows, uses thumbnails for tiles and lists, and keeps at most four full-size images. Worth revisiting only if images grow to tens of MB (e.g. much higher resolution): then a resources folder in each bundle, read through DPF'sgetResourcePath(). 2026-10-28: doubled to 1280 px after the owner saw compression artifacts, and moved to WebP q96 (11 MB; the owner approved adding libwebp v1.6.0, decoder only; JPEG XL compresses a little better but its library is much heavier); still embedded. -
User images in the config directory, not sidecars (owner, 2026-10-29): users add their own amp, cab and pedal images to libraries in the config dir (copied in, so they survive moving or deleting the original) and pick one per block, instead of an image file next to each NAM file or IR. Any block can have one, not only NAM and IR blocks. They're drawn as static images (no face knobs, LED or footswitch: those are placed for the built-in photos only), and a deleted image's blocks fall back to their stock look.
-
Update notice, not self-update (owner, 2026-10-29): the plugin only tells the user a new version exists and links to it. Replacing its own files from inside a DAW runs into locked binaries on Windows, admin-only install folders, several loaded instances and hosts, macOS signing and quarantine, and would make the plugin a channel for running downloaded code; an installer or update app outside the DAW is the place for that, if ever. The check is opt-out in Settings and sends nothing but the request.
-
Renamed to Xythos (owner, 2026-10-29; was NAMsayin; the repository too): the name, the developer shown in hosts (Xythos, was the owner's username), the bundles, the preset extension (
.xythos), the config and cache folders and the LV2 URI (https://github.com/singularity098/xythos) all changed, with no migration (the owner moved their own files). The VST3 and AU IDs (brandS098, pluginNMsy) stay as they were: hosts never show them, and keeping them lets projects saved with the VST3 or AU find the renamed plugin. LV2 projects saved before the rename need the plugin re-added. -
Hostile files: patched NAM Core, our own image decoding (owner, 2026-11-02, after fuzzing found both): presets, models and images are shared, so a crafted file must fail to load, never corrupt memory. NAM Core v0.6.0 (still the latest) reads a model's weights unchecked, so a
.namwith fewer weights than its config needs read past the end of the vector, a missing config key was read withoperator[]on a const JSON object (undefined), an LSTM with no layers read layer -1, and WaveNet layer arrays whose sizes don't chain made release-mode Eigen read out of bounds;patches/nam/swaps its weight iterator for a bounds-checked one that throws, reads keys with.at(), and refuses impossible LSTM and WaveNet sizes, applied at configure time on every platform (upstream has no fix yet: worth offering it). DPF's NanoVG decodes PNG and JPEG with a bundled stb_image from 2016 that a crafted JPEG makes write out of bounds; the UI now decodes them itself with a current stb_image (submoduledeps/stb, v2.30, PNG and JPEG only, at most 16384 px a side and 50 megapixels, checked from the header first) and hands NanoVG RGBA, as it already did for WebP. -
HQ pitch shifting with Signalsmith Stretch, opt-in (owner, 2026-11-07): an optional Quality: HQ per pitch block rather than replacing the delay-line shifter, because the spectral shifter needs about 150 ms of latency for clean chords, too much to play against live; the zero-latency default stays. Signalsmith Stretch is vendored with pitch-accuracy fixes (4.11, "HQ pitch shifting"). It doesn't find notes, so it can't replace the PolyNoteFinder (the Poly Chip and MIDI Out still need note numbers).
-
Polyphonic tracking deactivated (owner, 2026-11-08): the PolyNoteFinder's two users are switched off, not removed. The Poly Chip is hidden from Add Block like the retired Looper block (
addItems()), but stays registered so saved chains still build. MIDI Out ignores Mode (kPolyEnabled = falseinMidiOutBlock.cpp, so a project saved with Poly sends Mono) and its panel hides Mode and Focus; the Choice list keeps both labels, since a released list never changes. Bringing either back is a flag and a filter. -
The poly note finder rewritten, polyphonic tracking back on (owner, 2026-11-09: "rewrite the poly tracking if needed from scratch", then "re-enable the poly chip pedal so that I can test"): a spectral-peak finder with the single-note tracker alongside replaces the semitone filter bank, because the filter bank's failure on the new recordings was structural (a semitone band can't tell a string's harmonic from a note, and 328 s of its 401 s of stray notes were that), not a matter of thresholds. The Poly Chip is in Add Block again and MIDI Out's Poly mode, Mode and Focus are back: decision 22's commit undone (its
kPolyEnabledflag and UI filters are gone;git revertof this one's part brings them back). The finder's bands start at A0 (were B0), for a bass in drop A; band numbers aren't stored anywhere. The recordings are kept as 16-bit FLAC (dithered from the owner's 24-bit; 19 MB against 66 MB), the note lists are generated (tools/annotate) so they can be remade, and the benchmark's bounds are per set of clips. See 4.11, "Tracking rework on the 7-string and bass recordings", for the numbers and for what the new finder does worse. -
Poly as a mode of every pitch-following pedal, the Poly Chip removed (owner, 2026-11-10): a Tracking button (Mono by default, or Poly) on each block that follows notes, stored as the block config
"poly"rather than a host parameter (no slot migrations, and Choice lists are fixed once released), so switching rebuilds the block like Quality does. The synths' voices are more instances of the same synth (Voiced<T>), not a per-voice rewrite of 20 synths: costlier in memory in Poly (six copies), nothing in Mono. The Poly Chip's typeIdpolychipis no longer registered; chains with one are converted to a Chip Synth in Poly wherever a chain comes in (retirePolyChips()), since a chain with an unknown type fails validation as a whole. See 4.11, "Poly tracking on every pitch-following pedal". -
IRs normalized on a guitar amp's spectrum (owner, 2026-11-25: the output was much louder than Neural DSP's and prone to clipping): Normalize gave an IR unit energy, unity gain for white noise over the whole band; a cab passes only about 90 Hz to 5 kHz, where an amp's output is, so on a guitar it played 4 to 8 dB above its input (a modelled cab: +4 dB rolling off at 7 kHz, +6 dB at 3.5 kHz). Now it's unity gain on an amp-like spectrum: white noise through a one-pole high-pass at 60 Hz and low-pass at 800 Hz (
normalizationGain()inIrBlock.cpp, at the file's rate). A plain impulse keeps its level. Old presets and projects with an IR get quieter by that much; the owner chose not to compensate them. The same day the levels became settings (Settings > Normalized levels: NAM -18 dB and IR 0 dB by default), per computer rather than per project, so each user sets their own headroom once; a project opened elsewhere plays at that computer's levels. The DSP follows the settings file itself (its exchange thread, once a second), so a change reaches every instance, open windows or not. Other loud spots seen at the same time, left as they are: models without a stored loudness at their own level, and a split's branches summed at full level each.