Under the Hood: How Zortam Uses SoundStretch and MP3Gain for Accurate Audio Analysis

Managing a massive digital music library requires speed, accuracy, and reliability. Behind Zortam MP3 Media Studio’s sleek interface are industry-proven command-line engines driving two of its core features: **BPM (Beats Per Minute) calculation** and **lossless audio normalization**.

Rather than reinventing complex digital signal processing algorithms, Zortam seamlessly integrates SoundStretch and MP3Gain into its batch processing engine, giving you studio-grade accuracy without compromising your original audio files.


1. Accurate BPM Calculation with SoundStretch (soundstretch.exe)

Whether you are a DJ preparing a mix or an athlete organizing high-tempo workout playlists, accurate tempo detection is essential. Zortam leverages the lightweight, highly optimized soundstretch.exe utility (built on the open-source SoundTouch audio library) to analyze file tempos.

How SoundStretch Works: SoundStretch processes the wave structure of an audio file using peak-detection routines in the time domain. It calculates the rhythmic pulse (beats per minute) accurately across a wide range of genres, from hip-hop and house to rock and jazz.

Benefits of SoundStretch in Zortam:

  • Automatic ID3v2 BPM Tagging: Once soundstretch.exe calculates the exact tempo, Zortam automatically writes the result into the BPM field of the file’s ID3v2 tag.
  • Lightning-Fast Batch Processing: Because SoundStretch processes audio data efficiently without rendering unnecessary visual waveforms, Zortam can calculate BPM for hundreds of tracks in minutes.
  • Zero Audio Quality Loss: SoundStretch reads the file data strictly for waveform analysis; your source audio stream is never modified or re-encoded.

2. True Lossless Volume Normalization with MP3Gain (mp3gain.exe)

Have you ever had to constantly reach for the volume dial because one MP3 was too quiet while the next blasted out your speakers? Standard peak normalization simply scales the loudest sample to 100%, which often leaves songs sounding uneven.

Zortam solves this by integrating mp3gain.exe, a tool designed around human perceptual loudness analysis.

Why MP3Gain Beats Standard Volume Normalizers:

  1. Perceptual Statistical Analysis: MP3Gain doesn’t just look at peak spikes. It calculates how loud a song actually sounds to human ears based on target decibel levels (typically set around 89.0 dB).
  2. 100% Lossless Adjustments: Traditional normalizers decode an MP3, change the volume, and re-encode it, causing permanent quality degradation. MP3Gain adjusts the global gain fields inside the MP3 frame headers directly. No re-encoding occurs.
  3. Fully Reversible: Because MP3Gain only changes header metadata, volume adjustments can be undone or modified at any time without damaging the audio payload.

How to Use BPM Detection and Normalization in Zortam

  1. Open Zortam MP3 Media Studio and load your target music folder.
  2. Select the tracks you wish to analyze or balance.
  3. To Calculate BPM: Click the BPM Analyzer button on the toolbar. Zortam triggers soundstretch.exe in the background and populates the BPM column in real time.
  4. To Normalize Volume: Click Batch Volume Normalizer. Zortam invokes mp3gain.exe to analyze perceptual loudness and apply lossless volume gain tags automatically.

Frequently Asked Questions

Will running volume normalization damage my original MP3 files?

No. Because Zortam utilizes mp3gain.exe, the volume changes are applied directly to the frame metadata of the MP3 without re-encoding the audio stream. You get identical sound quality at a balanced volume.

Can Zortam calculate BPM for FLAC and WAV files?

Yes. SoundStretch natively supports processing wave data, allowing Zortam to accurately detect and embed BPM tags across uncompressed and lossless audio formats like FLAC, WAV, and MP3.

Where is the calculated BPM value saved?

The detected BPM is saved directly into the official TBPM frame inside the file’s ID3v2 tag, making it readable by major DJ software like Rekordbox, Serato, Traktor, and VirtualDJ.


Build a perfectly balanced, DJ-ready music library today!

Download Zortam MP3 Media Studio