CIRCUIT DRIFT LABS

CDL / UTILITIES / ALL TOOLS BETA

Small tools.
Clear signals.

Inspect one render, process an asset tree, capture Windows audio state, or automate FFmpeg QC.
Twenty-two beta-stage utilities for repeatable technical workflows.

BETA STAGE: every tool on this page is currently beta software. Analysis is designed to be non-destructive; review generated outputs before production use.

AUDIO WORKBENCH / BETA

$ bash bash/stereotruth.sh mix.wav --json

→ correlation · balance · findings · report
PYTHON + JAVASCRIPT + BASH + POWERSHELL
LOCAL TOOLS + BATCH + SYSTEM FORENSICS + QC

The workbench

01—10 / LOCAL AUDIO / BETA

The ten browser-capable tools below are all beta-stage tools. Choose a tool, load a WAV, and inspect the report. Files are processed on your device. PCM WAV 8/16/24/32-bit and float WAV 32/64-bit; 64 MiB per file, 64 MiB total in the browser. Extensible PCM/float WAV is also supported when valid bits match container bits. MP3 and FLAC need conversion first.

Loading tools…

No files selected.

Select a file or load a test recording.

How it works

From the command line

Read the spec and pseudocode ↗

Batch tools.

11—14 / FOLDER SCALE / BETA

These four Python tools recursively process WAV folders and asset trees. They are report-first and preserve source files. Optional transforms always target a separate output tree.

BETA / ONSETPACK

Put every transient on the same clock.

Scan one-shot and sample folders, locate the first threshold-crossing transient, and create copies with consistent pre-roll.

python onsetpack.py ./samples --preroll-ms 12 --output-dir ./samples-onset
Spec and limits ↗

BETA / PHASEBATCH

Check an entire multi-mic set.

Measure integer-sample delay and polarity against one reference file and optionally write corrected copies.

python phasebatch.py ./mics --reference kick-in.wav --correct --output-dir ./aligned
Spec and limits ↗

BETA / PACKDELTA

Diff audio packs by sound data.

Compare two asset trees by decoded content and separate unchanged, modified, added, removed, renamed and duplicate-family files.

python packdelta.py ./pack-v1 ./pack-v2 --output pack-delta.json
Spec and limits ↗

BETA / EDGEGUARD

Find bad sample boundaries in bulk.

Audit start/end peak and slope risk across a sample tree and optionally write repaired copies.

python edgeguard.py ./oneshots --repair --fade-ms 4 --output-dir ./edge-fixed
Spec and limits ↗

WinAudioForensics.

15 / WINDOWS / POWERSHELL / BETA

A read-only Windows audio-state recorder for problems that are difficult to explain after the fact: unexpected default-device changes, USB/interface disappearances, driver swaps, endpoint state changes, and stopped Windows Audio services.

POWERSHELL 7+ / WINDOWS NATIVE

Find what changed.

Queries services, CIM/PnP, signed drivers, MMDevices endpoint metadata, documented Core Audio default roles and optional recent event-log evidence.

.\WinAudioForensics.ps1 snapshot -Output working.json
.\WinAudioForensics.ps1 snapshot -IncludeEvents -Output broken.json
.\WinAudioForensics.ps1 diff -Before working.json -After broken.json
Usage guide ↗ Spec + pseudocode ↗

SNAPSHOT / DIFF / DOCTOR / WATCH

Evidence instead of screenshots.

Deterministic diffs report device, driver, endpoint, default-role and service changes. Doctor rules flag evidence without treating correlation as proof of cause.

.\WinAudioForensics.ps1 doctor -Snapshot broken.json -Diff change.json
.\WinAudioForensics.ps1 watch -IntervalSeconds 5
Research + demand check ↗

Shell-native QC.

16—22 / BASH + POWERSHELL / BETA

Seven matched Bash and PowerShell tools orchestrate FFmpeg/FFprobe directly. They do not invoke the Python or JavaScript engines. Source audio is read-only, output can be machine-readable JSON, and findings are review evidence rather than automatic fault claims.

STEREO / PHASE

stereotruth

Find likely dual-mono, sustained negative correlation and channel-balance candidates.

bash bash/stereotruth.sh mix.wav --json
./powershell/stereotruth.ps1 mix.wav -Json
Internals and flags ↗

LOUDNESS / TIMELINE

loudwalk

Turn EBU R128 output into a short-term LUFS timeline with jump and relative-deviation candidates.

bash bash/loudwalk.sh master.wav --json
./powershell/loudwalk.ps1 master.wav -Json
Internals and flags ↗

FORMAT / METADATA

formattruth

Normalize codec, container, sample format and stream facts and flag inconsistencies.

bash bash/formattruth.sh track.wav --json
./powershell/formattruth.ps1 track.wav -Json
Internals and flags ↗

BATCH / CONTRACT

albumcontract

Infer or enforce common sample rate, channel count and sample format across a delivery folder.

bash bash/albumcontract.sh exports --json
./powershell/albumcontract.ps1 exports -Json
Internals and flags ↗

PHASE / TIMESTAMPS

phasewatch

Preserve a time-coded correlation ledger and surface negative regions or sharp relationship changes.

bash bash/phasewatch.sh mix.wav --json
./powershell/phasewatch.ps1 mix.wav -Json
Internals and flags ↗

BATCH / SILENCE

batchsilence

Measure leading/trailing silence across an export set and enforce optional timing limits.

bash bash/batchsilence.sh exports --json
./powershell/batchsilence.ps1 exports -Json
Internals and flags ↗

CODEC / TRIAGE

transcodeaudit

Review codec/container/bitrate/encoder characteristics without claiming to prove transcode history.

bash bash/transcodeaudit.sh library --json
./powershell/transcodeaudit.ps1 library -Json
Internals and flags ↗
Install FFmpeg and understand shell-tool exits

Ubuntu/Debian: sudo apt update && sudo apt install ffmpeg. Windows: install FFmpeg and put ffmpeg.exe/ffprobe.exe on PATH; winget install Gyan.FFmpeg is one option.

Exit codes: 0 completed with no policy findings, 1 completed with review findings, 2 argument/dependency/input/analysis/report failure.

Read the gap research and comparison ↗

Keep the tools.

DOWNLOAD & RUN / BETA

PYTHON / 14 BETA TOOLS

Single files and whole folders.

Python 3.10+ and NumPy. Includes the original ten tools and four batch tools.

Download Python bundle ↓

POWERSHELL / WINAUDIOFORENSICS

Windows audio state, captured.

PowerShell 7+ on Windows. Includes the CLI/module and common docs.

Download WinAudioForensics ↓

BASH / 7 BETA QC TOOLS

FFmpeg automation for Linux.

Bash 4.4+ with FFmpeg/FFprobe and no Python runtime dependency.

Download Bash QC bundle ↓
Flags, outputs, and formats

Use each tool's help output for flags and limits. The shell-native tools accept formats supported by your FFmpeg build; their findings are evidence to inspect rather than proof of defects or provenance.

These are focused workflow combinations built after reviewing existing utilities. Related tools exist; this collection does not claim exclusive inventions.