New algorithm generates every possible melody to curb copyright lawsuits

Will it work?
New algorithm generates every possible melody to curb copyright lawsuits
Two musician-programmers have teamed up to create an algorithm  to generate every possible music melody in order to stop copyright lawsuits. Credit: Getty Images/EyeEm

It’s become a regular occurence in the music industry: An artist releases a song. The song becomes a hit. Fans of another artist notice similarities to one of their songs. That other artist’s label or legal team also notices these similarities. The two artists either come to an agreement or go to court over royalties based on who owns the copyright.

There’s only so many possible combinations of musical notes, so this is bound to happen more, right?

Now, a musician and a programmer have joined forces to try to deal with this very issue and stop these types of copyright lawsuits.


You May Also Like

Damien Riehl and Noah Rubin, two fellow musicians and programmers, developed an algorithm to come up with every possible music combination. The goal: to copyright every single combo in order to give it to the public so musicians and artists can use melodies without worrying about copyright issues down the line.

The algorithm created by the two programmer-musicians can put together every single 8-note, 12-beat melody combo. According to Riehl, the algorithm can generate 300,000 melodies per second. In order for these melodies to be copyrighted, they must be created as a work. So, the algorithm outputs MIDI files of the melodies to a hard drive.

At a TED Talk earlier this year, Riehl, who also works as a copyright attorney, explained the thought process behind doing this.

"Under copyright law, numbers are fact, and under copyright law, facts either have thin copyright, almost no copyright, or no copyright at all," said Riehl in his TED 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 is not copyrightable."

The open-source algorithm as well as the generated melodies are available on Github and on the Internet Archive. The MIDIs are all released under a Creative Commons Zero license, basically meaning no rights reserved for the works.

Regardless of whether it curbs lawsuits or not, the idea is certainly a unique one. Riehl and Rubin’s project has yet to be tested in a court of law to see if their copyright strategy holds up.

Topics Music

Mashable Potato

Recommended For You
Character.AI settles lawsuits related to teen deaths
App logo of Character.AI displayed on a phone.

Spotify's Prompted Playlist lets you micromanage your own algorithm
Spotify Prompted Playlist titles on a black background

What's the Minions drama at the 2026 Winter Olympics?
Tomas-Llorenc Guarino Sabate of Spain competes in the Men's Short Program during the ISU European Figure Skating Championships 2026

Supreme Court denies case seeking copyrights for AI-generated art
The exterior of the US Supreme Court building.

New Sony XM6 earbuds leak reveals possible specs, price tag
Sony logo on building exterior

Trending on Mashable
NYT Connections hints today: Clues, answers for April 3, 2026
Connections game on a smartphone

NYT Connections hints today: Clues, answers for April 4, 2026
Connections game on a smartphone

Wordle today: Answer, hints for April 3, 2026
Wordle game on a smartphone

Wordle today: Answer, hints for April 4, 2026
Wordle game on a smartphone

Google launches Gemma 4, a new open-source model: How to try it
Google Gemma
The biggest stories of the day delivered to your inbox.
These newsletters may contain advertising, deals, or affiliate links. By clicking Subscribe, you confirm you are 16+ and agree to our Terms of Use and Privacy Policy.
Thanks for signing up. See you at your inbox!