Track 07 by Unknown Artist: Why Music Tags Break And How To Fix Them

Untitled files, missing covers, one album listed three times: most music collections that have grown over the years share the same problems. This article explores how tags work, why they break, and how software can identify tracks from their sound alone. We also take a closer look at Truffle, examining its features, limitations and how it helps organize large music libraries.

By Nik LiakContributing Author

Article photo - Track 07 by Unknown Artist: Why Music Tags Break And How To Fix Them


If your library goes back to CD rips, you know the symptoms: “Track 07” by “Unknown Artist”, titles in capitals, broken umlauts, the same song twice. Fixing that by hand works for fifty tracks, not for thirty thousand.

One tool that addresses these problems is Truffle, a Mac app for identifying and correcting music tags. We'll look at how it works in the second half, including its limitations. The first half applies whatever tool you use.


What a tag actually is

A tag is a small block of text and images stored inside the audio file, next to the sound. Each format has its own:

  • MP3 uses ID3. The 1996 original was a fixed 128 bytes at the end of the file, 30 characters per field and no cover. ID3v2 (1998) sits at the start and holds covers and text in any alphabet.
  • FLAC uses Vorbis comments, plain lines like ARTIST=Nina Simone.
  • M4A (AAC, Apple Lossless) uses the “atoms” that iTunes made common.
  • WAV has no widely agreed tag format, so many programs show WAV files as empty.

Tag data also lives in the app you play from. Apple Music keeps its own database. rekordbox keeps cue points and beatgrids in its database, not in the files. Serato, Traktor and Mixed In Key write part of their analysis into the file, in frames most tag editors don't show; Serato's cue points sit in an MP3 frame called “Serato Markers2”. So every fix raises two questions: what goes into the file, and does your player notice?


Why tags break

Most damage comes from a handful of everyday sources:

  • CD rips. When the online lookup fails, you get “Track 01” on “Unknown Album”, often for years.
  • Downloads. Whatever the uploader typed lands in your tags: “(Official Video)”, label names in brackets, capitals.
  • Encodings. Read with the wrong character set, “Löwenzahn” turns into “Löwenzahn”. The bytes are intact, just misread, so it can be repaired.
  • Compilations. One recording sits on the original album, a best-of and ten samplers. A quick lookup often grabs a sampler, with the wrong album and year.
  • Album artist. One song with a guest can split an album in two in Apple Music. The album artist field, plus the compilation flag for various-artists records, keeps it together.


How software recognises a track by its sound

When the tags are useless, the sound is the only evidence left. Most apps rely on a method Avery Wang of Shazam described in 2003. The software turns a few seconds of audio into a spectrogram and keeps only the strongest peaks, a pattern like a star map. Pairs of peaks and the time between them become short codes, called hashes. A database then looks for the recording whose hashes line up at the same offsets, which is why this works even through noise and heavy compression.

Apple offers this recognition to app developers as ShazamKit. The free tagger MusicBrainz Picard uses the open alternative, AcoustID.

A fingerprint names the recording, not the album. For that you need catalogues such as MusicBrainz, an open, community-run database that marks each release as album, single, compilation or live. That is how you find the original album instead of the sampler.


Article photo - Track 07 by Unknown Artist: Why Music Tags Break And How To Fix ThemFingerprint and catalogue check each other. Only what both support becomes a suggestion, and nothing reaches the file before you confirm it.

The limits:

  • It only knows what's in the catalogue. Your own recordings, unreleased promos and bootlegs won't match.
  • Remixes and edits are often matched to the original.
  • Similar productions are now and then confused, so a fingerprint should confirm a clear file name, not overrule it.
  • A twelve-second sample says nothing about a two-hour DJ mix.


Tidying up beyond the tags

Duplicates. The same recording as MP3 and as FLAC is a duplicate; a radio edit and an extended mix are not. Before deleting a copy, check which one sits in your playlists. Deleting is the one step most tools can't undo.

Albums. An album looks right when every track shares album name, album artist, year and cover. One odd spelling (“Beatles” instead of “The Beatles”) is enough to split it.

Tempo and key. Both can be measured from the audio, but tempo detection often lands on half or double the real value, 85 instead of 170 BPM. A value you corrected by hand in your DJ software is a decision. No tool should overwrite it without asking.

DJ libraries. rekordbox reads the tags on import and then works with its own copy, so after fixing the files you reload the tags there. Back up your DJ library before any bulk change.

Classical music. Tags were built for “artist, title”, while a classical recording has a composer, a work, movements, performers and a conductor. Pick one scheme, for example the work with its catalogue number (BWV, Op.) in the title and the performers as artist, and stick to it.


Article photo - Track 07 by Unknown Artist: Why Music Tags Break And How To Fix ThemClassical recordings with file names such as “Track 29”. Truffle suggests the work as it is listed for that recording, with opus or BWV number, performers and album.


How Truffle puts this into practice

Article photo - Track 07 by Unknown Artist: Why Music Tags Break And How To Fix ThemTracks with broken tags such as “Track 03” and “Unknown Album”. Truffle proposes title, artist, album, cover, year, tempo and key; the old value is crossed out above the new one.
 

Truffle tries to turn these steps into one careful process. It works with Apple Music or an old iTunes library, with plain folders, and with the collections of rekordbox, Serato and Traktor.

For each track, it asks up to eight sources: Apple's audio recognition, the Apple and Deezer catalogues, MusicBrainz and its Cover Art Archive, Beatport, a web lookup, and its own analysis, which measures tempo and key on the Mac without an internet connection. It drops what contradicts. If the sound and a clear file name disagree, the sound alone never wins. The result is one suggestion per field, with its source. When nothing is certain, Truffle says so and only offers to clean up the file name.

  • Nothing is written until you confirm it. The original tags are backed up first, and every change can be undone, one at a time or as a whole session.
  • Remix and edit names from the file name are kept.
  • DJ collections are only read; the fixes go into the audio files. Tempo and key that Serato, Traktor or Mixed In Key left in a file only change on your click, and a test checks byte for byte that their frames survive a write.
  • Duplicates are shown side by side, and nothing is deleted without asking.

Article photo - Track 07 by Unknown Artist: Why Music Tags Break And How To Fix ThemThe history lists every change by session. Each one can be undone, field by field.

What it can't do. It runs only on Macs with Apple Silicon and macOS 14 or later. It can't name tracks that no catalogue knows. Above roughly 130 BPM its tempo is an approximation. It doesn't fill the composer field of classical recordings yet. And it can't undo a deletion, which is why it never deletes on its own.

Other tools, and where to start

MusicBrainz Picard is free and open source, runs on Windows, macOS and Linux, and identifies files with AcoustID. Mp3tag, a Windows standard for more than 20 years and on the Mac since 2021, is strong at editing many files by hand and can look up Discogs and MusicBrainz. The choice comes down to whether you'd rather edit yourself or check suggestions.


Whatever you use, the order matters:

  1. Back up your library, including your DJ library.
  2. Test on one small folder first.
  3. Fix title and artist, then albums, then covers.
  4. Do duplicates last, and check your playlists before deleting.
  5. Reload the tags in your DJ software.

Truffle is free to try in the Mac App Store: it analyses 100 tracks and writes 20 for free, and the full version is a one-time purchase. More at truffle-app.com.

Album artwork in the screenshots belongs to its rights holders and appears only as part of the app's interface.

About Nik Liak

Musician, producer, DJ, promoter, and electronic music enthusiast alike, Nik Liak hails out of Thessaloniki, Greece. When not performing, he spends his time in the studio creating his own music…aided by his beloved dj gear and an upbringing in a very musically-influenced home.

Contact Nik Liak at nikliak@musicngear.com

About Music Gear

In this section of the Musicngear blog you can find reviews, how-tos, buying guides & comparisons across a wife range of music gear.

Are you interested in writing a story for this section as a guest or joining the Musicngear team as a Contributing Author? Contact us at info@musicngear.com

Would you like to send us sample gear for reviews? Reach out to Chris Roditis at chrisroditis@musicngear.com