This algorithm just generated 68 billion unique melodies

Its creators then released the melodies into the public domain.
Sign up for the Freethink Weekly newsletter!
A collection of our favorite stories straight to your inbox

A pair of musicians created an algorithm they hope will end a legal nightmare for musicians: the unintentional use of copywritten melodies.

Melodies are the sequences of notes that form the backbone of most popular music — they’re the snippets of a song that get stuck in your head, for better or for worse.

As soon as a musician records a melody or jots it down as sheet music, they legally own it and have the right to sue anyone who uses the melody without permission for copyright infringement.

It doesn’t even matter if the second musician consciously knows that they have copied the melody — they can still be forced to pay money to the melody’s original author, something Katy Perry, George Harrison, and a slew of other musicians have all found out the hard way.

Minefield of Melodies

Part of the problem with this setup is that there are only so many notes in music, meaning there is a finite number of melodies.

The number of possible melodies within the range of notes favored by pop musicians — those in the octave above middle C — is even smaller.

Meanwhile, the advent of platforms like Soundcloud has resulted in a dramatic increase in the number of songs potentially containing those melodies.

As a result, musicians are being forced to tip-toe through a minefield of possible copyright violations while writing music — all they can do is hope they don’t step on a melody that someone else has already recorded, lest it land them in court.

The Sound of Computer Science

To address this problem, musicians Damien Riehl and Noah Rubin came up with a radical idea: record every possible melody within the pop music range and then release it into the public domain.

The algorithm operated at a speed of 300,000 melodies per second.

To that end, the duo — who are also, respectively, a copyright attorney and a computer programmer — built an algorithm that could write every possible 12-beat melody in the middle C octave in MIDI, the protocol computers use to read music.

By the time the algorithm finished, it had written more than 68 billion melodies — at a speed of 300,000 melodies per second.

By simply saving the melodies onto a hard drive, the duo fulfilled the requirement needed to copyright them. After that, they released the melodies into the public domain, creating a website where anyone who wants the melodies can download them for free.

Copyright Loophole

As Riehl pointed out in a recent TEDx Talk on the project, the whole thing could be a violation of copyright laws in and of itself — after all, some of the melodies produced by the algorithm had already been recorded by other artists.

The choice of MIDI for the project, however, might provide a loophole that gets around that — and possibly even usher in an end to litigation over copyrighted melodies altogether.

The key to this is the fact that MIDI records music as numbers — a melody comprising the notes CBABC, for example, reads 12321 in MIDI — and numbers aren’t copyrightable the same way sounds are.

“Under the copyright laws, numbers are facts, and under copyright law, facts either have thin copyright — almost no copyright — or no copyright at all,” Riehl said in his TEDx Talk. “So maybe if these numbers have existed since the beginning of time, and we’re just plucking them out, maybe melodies are just math, which is just facts, which maybe are not copyrightable.”

“Maybe if somebody is suing over a melody alone — not lyrics, not recordings — but just the melody alone, maybe those cases go away,” he continued. “Maybe they get dismissed.”

Sign up for the Freethink Weekly newsletter!
A collection of our favorite stories straight to your inbox
Related
AI is now designing chips for AI
AI-designed microchips have more power, lower cost, and are changing the tech landscape.
Why futurist Amy Webb sees a “technology supercycle” headed our way
Amy Webb’s data suggests we are on the cusp of a new tech revolution that will reshape the world in much the same way the steam engine and internet did in the past.
AI chatbots may ease the world’s loneliness (if they don’t make it worse)
AI chatbots may have certain advantages when roleplaying as our friends. They may also come with downsides that make our loneliness worse.
Will AI supercharge hacking — if it hasn’t already?
The future of hacking is coming at us fast, and it isn’t clear yet whether AI will help attackers and defenders more.
No, LLMs still can’t reason like humans. This simple test reveals why.
Most AI models are incredible at taking tests but easily bamboozled by basic reasoning. “Simple Bench” shows us why.
Up Next
zoonotic disease
Subscribe to Freethink for more great stories