Audio analysis and batch processing tools for macOS and Windows. Measure sample peak, true peak, and integrated loudness (EBU R128), cache results in SQLite, and normalize or process files through plugin chains. Both applications provide a GUI with waveform and spectrogram previews, artwork, and playback, plus a CLI.
cpp/: the C++23 and JUCE application,AudioBatchandaudiobatch. Hosts VST3 effects and, on macOS, Audio Units.rust/: the Rust application,AudioBatchRsandaudiobatch-rs, built on gpui-kit. Hosts VST3 and CLAP effects on both supported platforms.image-control-plugin/: ImageControl, an independent four-band stereo imaging effect. Available as VST3 and, on macOS, an Audio Unit.
The two applications are equal implementations of the same behavior, and neither is a reference for the other.
The applications share AudioBatch/analysis.db, but keep settings, logs, plugin lists, chains, and presets separate.
Their CLIs use matching analysis and normalization options and table, CSV, and JSON output.
Shared resources include assets/, test fixtures,
and the test VST3 plugin.
See Performance for dated measurements and reproduction instructions.
Follow each project's README for prerequisites. The root wrappers build both applications and install them alongside C++ ImageControl and Rust ImageControl RS:
./build.sh
./install.sh
./format.sh --checkSelect an application to run just its script, for example ./build.sh rust or ./install.sh cpp --app-only.
Use --debug for Debug application builds and each script's --help for its options.
Options passed to both applications must be supported by both scripts.
On macOS,
./package-macos.sh builds Apple Silicon .pkg distribution installers in dist/macos/ with customizable App/CLI
and VST3/Audio Unit checkboxes, supporting --sign and --notarize.
Distribution has a fixed apple-m1 baseline. Local builds remain native.
Each app, CLI, and plugin includes a generated THIRD-PARTY-NOTICES.txt in its licenses/ directory.
The Rust installers need cargo install --locked cargo-about --features cli and jq to generate theirs.
--no-build requires unchanged artifacts from a successful distribution build, not local build outputs.
Developer ID distribution needs no App ID or App Store Connect record, only two certificates and a notary profile. Set this up once per Mac:
-
In Xcode, open Settings → Accounts, select the team, and choose Manage Certificates. Add Developer ID Application and Developer ID Installer. The private keys stay in the login keychain of that Mac. To use another Mac, export both certificates with their keys from Keychain Access as a
.p12and import it there. -
Create an app-specific password at appleid.apple.com and store a notary profile:
xcrun notarytool store-credentials audiobatch-notary --apple-id <apple-id> --team-id <team-id>
-
Check the exact identity names with
security find-identity -v -p basic | grep "Developer ID", then copy.env.local.exampleto the git-ignored.env.localand fill it in.common.shloads it, and variables already set in the environment override it. SetCODESIGN_IDENTITYandINSTALLER_SIGN_IDENTITYwhen the certificate names differ fromDeveloper ID Application: <org> (<team-id>)andDeveloper ID Installer: <org> (<team-id>).
Then run ./package-macos.sh --notarize.
Both applications read WAV, AIFF, FLAC, and MP3 and write normalized or processed output as AIFF. C++ also registers Ogg Vorbis and uses Core Audio for AAC and Apple Lossless on macOS. Rust reads AAC and Apple Lossless on both platforms, using a native macOS backend for selected AAC streams. See the project READMEs for format boundaries.
Lossless normalization is sample-exact between implementations in peak mode and differs by at most one PCM step in loudness mode. Lossy decoding can differ. Rust supports mixed VST3 and CLAP chains on macOS and Windows. CLAP hosting is Rust-only because the bundled JUCE has no CLAP host. Audio Unit hosting remains C++-only on macOS. Plugin chains and presets are implementation-specific and cannot be shared. Only plugin scanning is isolated in a worker process. A plugin crash or hang during processing, playback, or editing can still affect the application.
Normalization and plugin processing replace originals by default.
Replaced files go to the system trash unless the CLI uses --delete.
Existing output is protected unless overwrite is enabled.
Cancellation preserves uncommitted originals and keeps completed output.
Both CLIs handle Ctrl-C and exit with status 130.
Run project build and test scripts from their directories.
Rust Cargo commands also work at the repository root, sharing workspace dependencies and rust/target.
For example, cargo check -p audiobatch-cli or cargo test -p serato-tags.
Read repository agent instructions and the project's own instructions before making changes.
Implementation details are in the C++ architecture
and Rust architecture.