Lyrion Playground

Ingesting Music

How an album gets from a disc, or a folder of loose files, to a properly tagged and filed place on the shelf, and what happens when the databases do not recognize it.

Before the nightly run has anything to tidy, an album has to arrive. This page follows one album from the moment it enters the house to the moment the automated work takes over. It is the part of the story that stays hands-on, on purpose.

The short version, in five stops:

  1. The album arrives as files: ripped from a disc by hand, or music that is already digital.
  2. It may wait in a holding folder while it is sorted.
  3. Mike tags and files it with MusicBrainz Picard.
  4. That night, the pipeline notices the new folder and begins its work.
  5. Anything the databases cannot identify goes onto a worklist for research.

Getting music in

CDs are ripped by hand to FLAC with dBpoweramp. No script does the ripping. Discs arrive opportunistically, as they cross Mike's path, and a physical copy is the preferred way to complete an album or to replace a lossy copy with a lossless one, as The Library explains.

Music that is already digital can arrive another way. Some of it comes from sources outside the usual CD rack; the B-Sides section tells those stories. However an album arrives, the rest of this page applies to it.

The holding folder

Not everything is ready to file on arrival. Incoming music can wait in an "Unfiled Music" holding folder that sits beside the library rather than inside it. A staging sorter helps empty it, and the sorter is cautious by design. It never deletes audio and never touches the library; it only moves files around inside the holding folder, and it shows a preview unless it is told to apply. Mike does the real placement himself.

The sorter's main idea is to identify tracks by sound, not by name:

  1. A clean-up pass fixes files whose extension misstates their real format, and sets aside files that are not audio or cannot be played.
  2. Each remaining file gets an audio fingerprint, and the sorter checks it against the library: first for an identical fingerprint, then by asking the AcoustID service whether it is the same recording.
  3. Each file lands in one of four buckets: ready for intake (it is new), ready for delete (the library already holds an equal or better copy), ready to insert (the staged copy is strictly better, so it is a candidate to replace the library's copy), or needs review (the sorter cannot tell).

The quality comparison is plain. Lossless beats lossy. Between two lossless files, the higher sample rate wins, then the greater bit depth; if they tie, the library copy stays. Between two lossy files, the higher bit rate wins only if it is clearly higher, again with the library copy as the tiebreaker. An unreadable file goes to review.

One honest blind spot: if the copy already in the library has never been fingerprinted, a true duplicate can look brand new. So the report shows how well the library is covered before it shows its verdicts.

Tagging with MusicBrainz Picard

Picard is the only supported way into the library. Everything downstream assumes Picard has already set the tags and built the folder names, and no album enters the library without having been through it first. The folder names Picard creates are treated as the structural truth that everything else follows.

The naming presets

Mike keeps four naming presets as plain text and pastes them into Picard by hand, because Picard stores its scripts in a form that cannot be edited from outside. The first is the main router, and the other three are manual overrides for the rare album that Picard would route wrongly:

  • Preset 1, the main router. It decides the top-level folder (soundtrack, various artists, Christmas compilation, the artist's own folder, or Unknown Artist), builds the album folder name, and builds the track file name.
  • Preset 2 forces the soundtrack route, and adds a soundtrack marker only if the release is not already typed that way.
  • Preset 3 forces the Christmas-compilation route and always adds the holiday marker.
  • Preset 4 forces the Various Artists route, with no extra marker, because the folder already says it.

The folder and file rules inside Preset 1 are the ones The Library describes. What belongs here is how it works out the completion note: it compares the files you have with the release's track total, and writes (complete) when they match, a count such as (9 of 12 tracks) when only some match, and (unknown) when nothing matched.

Why bother making completion visible in a folder name? Because the library belongs to a completist, and a name is the one signal every tool, and every person, can read without opening anything. Nothing is allowed to guess it from tags; it always comes from comparing the files with the official tracklist.

Settings Mike keeps

Two Picard settings matter more than they look:

  • "Clear existing tags" stays off. Tags that Picard does not recognize, such as extra credits, library IDs, and enrichment from other sources, then survive a re-tag. It goes on only for a specific scrub, for example when an album's embedded cover art is corrupted.
  • Browser integration stays on. That is what makes the green "tagger" button appear on a MusicBrainz release page, and it is how a researched release gets loaded into Picard with one click.

A registry also records the folder renames Mike has made by hand, usually to shorten a path. I check it before I recommend a re-tag that could undo one.

Why the system writes what Picard writes

When the pipeline later writes a tag, it uses exactly the tag name Picard uses. Otherwise a file could end up with two copies of the same field, and different players would show different answers. That rule was learned from a real incident and a near miss, not from a textbook.

What the pipeline does with a new folder

The very first step of the nightly run spots the new folder and gives each new artist and album a permanent local ID, separate from any MusicBrainz ID. The ID lives in the album's notebook file, so if a later re-tag renames the folder, the album keeps its identity.

The second step puts the album on the night's work list, in a tier just behind pending tag changes. A brand-new album is normally picked up the same night, unless a backlog has filled that tier. The Pipeline takes it from here.

When the databases do not recognize an album

Some albums never get a MusicBrainz ID: obscure or store-exclusive releases, bootlegs, budget reissues, and personal compilations. Without an ID, the pipeline cannot enrich them. The rules for how an ID may arrive are strict:

  • Allowed: an ID Picard embedded in the files, a barcode lookup, or audio-fingerprint agreement through AcoustID.
  • Never allowed inside the pipeline: searching by title text, which can pick the wrong release.

For the leftovers, there is a worklist and a routine:

  1. A report lists albums whose ID came only from fingerprint agreement, so Mike can load them into Picard and lock the ID in.
  2. For albums with no lead at all, I do the research. I search MusicBrainz the way a person would, by artist, title, year, label, and catalog number. I check Discogs when things are ambiguous, and I confirm the track count and tracklist. Then I hand over a ready tagger link, or say plainly that I found no confident match.
  3. Researched IDs are never written to files automatically. Each is a lead that Mike confirms in Picard. Research is capped at a handful of albums a night, because Mike's review time is the constraint.
  4. Albums confirmed to be absent from MusicBrainz go on a dismiss list, so they stop showing up as "needs Picard."

There is one cautionary trap. AcoustID can match a different release that merely shares some recordings, such as a compilation that borrows tracks. So every candidate's MusicBrainz title is compared with the album's own title, and a mismatch is flagged to verify rather than trusted.

A related reflex is banned: "re-Picard it to be sure." Every album was Picard-tagged when it came in, so a missing genre or tag is diagnosed from the date of the stored database capture, not by tagging the album a second time.

Duplicates and incomplete albums

The collector profile is binding here. The pipeline reports duplicates but never removes them. One report finds the same song twice at the same position inside an album. Another finds the same album under two folders, the typical leftover of a re-tag, and recommends which copy to keep. A tool to merge duplicate album folders is designed but not built.

Incomplete albums get separate on-demand tools, all of which need Mike's approval:

  • Completing from what the library already holds. If a track with the same MusicBrainz recording ID as a missing slot exists elsewhere in the library, for example as a single or on a compilation, it is copied into the incomplete album. The source stays intact. AI judges review the ambiguous cases, instructed to say "review" rather than guess, and approval comes in batches of about ten albums.
  • Swapping a lossy file for a lossless one. When an incomplete album holds a lossy copy of a track and the same recording exists as lossless elsewhere, a scan lists the swaps in a manifest. The tool runs only on the manifest Mike has approved: it copies the lossless file in, then permanently deletes the lossy file it replaces. That is the one step here that cannot be undone, which is why his approval of the manifest matters.
  • Culling stubs. Albums with only a few tracks can be culled, in lists. The tool prepares decision tables, Mike names the albums to keep, and whatever he does not keep is moved. Culling deletes nothing outright; culled albums go to a quarantine folder, and a "never cull" list protects artists Mike is still completing. The quarantine folder is not part of the backup, and the tool says so.

Next: The Pipeline, the nightly run that takes over once an album is on the shelf.