Teaching an agent to find the oldest song I own
Sort my music library by year and the oldest thing in it is Perry Como singing “(There’s No Place Like) Home for the Holidays”, from 1954. It arrived on Christmas Day, 2014. That tells you something about me and nothing about music.
The question I actually meant was harder: what is the oldest song I own, by when it was written? No column answers it. I looked. Then I asked an agent.
A song has more birthdays than a file has fields
A piece of music is written, and often written down much later. It is recorded, released, reissued, remastered, and one day added to somebody’s library. Each of those is a real date, and a music file has room for about one of them.
MP3’s tag format is the generous one: ID3 version 2.4 defines five timestamps, for encoding, original release, recording, release and tagging. None of them is when the song was written. The tags most of my files carry, Apple’s, hold a single date, and players show it as one number called Year. Which date that number means was decided by whoever tagged the file.
You can see the decisions in any library that has lived a while. Orbital’s 30 Something is a 2022 album of new remixes of their early tracks; my copy says 1991. Sequentia’s eight-disc 900 Years was issued for Hildegard von Bingen’s nine-hundredth birthday, in 1998; my copy says 1985. I don’t know why, and the file can’t tell me.
Neither tag is wrong. Each answers a question, just not the one I asked.
A field with room for one answer, to a question that has six, does not
hold the answer. It holds someone’s guess about which question you were
going to ask. If you have ever designed a table with a column called
date, you have shipped this bug.
The only clue is a name
The nearest thing a file has to a composition date is its composer, and a composer is a name.
My library has 327 composers, as tagged. The three most prolific are Traditional, with 146 tracks; Hildegard von Bingen, with 108; and Anonymous, with 79. Exactly one of the 327 carries dates, “Schubert, Franz (1797-1828)”, typed by someone who understood the problem perfectly and had nowhere else to put the answer.
The rest are names, and names are not people. The Robert Johnson in my library is the lutenist who set songs for Shakespeare’s The Tempest, not the Mississippi bluesman born three centuries later. Orbital’s two Hartnoll brothers appear under 33 different spellings.
To get from a name to a century you need something that isn’t in the file. A good record-shop clerk has it. So, it turns out, does a model that has read a great deal of music history.
Teaching it where to look
Fidelia has an agent setting. Switch it on, and an AI app you already use can read your library and play from it. The oldest-song question was how I tested it.
The first time, it found the right answer the way I would in a shop with no section cards: pulling albums one at a time and reading the backs. Right answer, wrong method. What it lacked was not intelligence. It was the shop’s index.
Every classical section I have ever browsed is filed by composer; pop is filed by artist. Record shops worked this out long before software did. So the agent got what the shop gives you: every composer in the library in a single reply, and one sentence of music history in the instructions it reads before anything else: when a piece was written is the composer’s, not the recording’s year. Now it reads the composers, recognizes the oldest, and plays it. Three steps. Nobody taught it about fourth-century Milan. It already knew.
That is the whole method, and it holds for any tool built for an agent. Don’t hand it the answer, and don’t make it dig. Hand it the index a knowledgeable person would reach for, and tell it the one thing your data gets wrong.
Ambrose
The answer is four short verses of Veni redemptor gentium, none longer than 24 seconds, sung by the Leipzig ensemble Amarcord. The file says 2005. The composer tag says Ambrosius von Mailand: Ambrose, bishop of Milan, who died in 397.
Augustine, who was in Milan at the time, records how those hymns took hold. In 386 the empress Justina demanded one of Milan’s churches for the Arian party. Ambrose’s congregation filled it and kept watch, ready to die with their bishop, and so that they would not wear down with grief he had them sing hymns and psalms in the manner of the Eastern churches. The custom outlasted the standoff by sixteen centuries.
So the oldest song I own belongs to a tradition that began at a sit-in. It also comes with a footnote, and an honest answer has to carry it. Veni redemptor gentium is one of the few hymns securely Ambrose’s, but what he wrote was the words. Milan’s chant survives with its melodies in books copied six and seven hundred years after he died, and hymns in the same verse form have always borrowed each other’s tunes. If a song is its words, mine is sixteen centuries old. If a song is its tune, nobody can give you the date.
That is the right shape for the answer: one question, two true dates, and a sentence saying which is which.
Hildegard on a rave record
The runner-up brought a surprise. Hildegard, a twelfth-century abbess, has 108 tracks in my library, and six of them are by Orbital.
“Belfast”, from Orbital’s 1991 debut, is built around Hildegard’s O Euchari, sung by the soprano Emily Van Evera on Gothic Voices’ A Feather on the Breath of God, directed by Christopher Page. Hence the composer tag: “Christopher Page, Hildegard von Bingen, Paul Hartnoll & Phil Hartnoll”. An abbess, a scholar, and two brothers from Kent.
Count the dates in that one track. Written in the twelfth century. Recorded in a London church on 14 September 1981. Named for a night at Belfast’s Art College in 1990, which the DJ David Holmes booked. Released in 1991. Remastered in 2024. My copy of 30 Something even includes David Holmes’s own remix, made three decades on, and its tag still says 1991.
I own O Euchari three ways: Sequentia’s, the Oxford Camerata’s and Orbital’s. Different titles, different performers, different genres: two say Classical, one says Electronic. The only field that connects them is the composer. The work is what lasts, and the composer is the one place a file remembers it.
And the newest?
The second question was the obvious one. The newest music in my library is Boards of Canada’s Inferno, from this year. Its first track is called “Introit”, the name of the chant that opens the Mass.
So the newest record I own opens with a word borrowed from the oldest kind of music I own. No field could hold that. It takes something that knows music to notice.
The other half
SoundEdit, our audio editor, has the opposite problem. A folder of samples has no composers and no years; “Audio 14.wav” knows nothing about itself. So SoundEdit’s agent gets measurement instead of history: with SoundEdit Pro, each sound’s length, loudness, root, key and tempo, and four plain words for how long, bright, noisy and pitched it is. In a record shop, the index is the section cards. At a sampler, it’s your ears.
What a tag is
There is exactly one track in my library where every date agrees. It is an acoustic sketch of mine, titled with its own timestamp: recorded at 8:24 on the evening of 23 August 2022, added the next day. Composer: me. Nobody will ever ask for it, and it is the only Year field I own that is completely right.
Everything else in a library is a record of what somebody knew, or guessed, when they tagged it. That record is worth keeping. It is not worth believing until you read it the way a well-read friend would: bringing what the file can’t hold, and saying which date you mean.
Fidelia and SoundEdit are on the Mac App Store. In each, Settings ▸ Agent is the switch, and it is off until you turn it on. Through Fidelia, an agent can read and play your library; it cannot change or delete a file.
And if your product’s data has a field with room for one answer where the world has six: that is the day job. audiofile.engineering/engineering.