← Latest papers
🤖 machine learning

Reflector: Arrangement-Aware Harmonic Retrieval for Sample-Based Composition

This paper presents Reflector, an open-source interactive audio workstation that dynamically adapts sample retrieval to a composer's evolving harmonic context by using a synthetic-trained embedding space to approximate a hand-designed interval-class oracle, thereby enabling real-time, arrangement-aware harmonic discovery without relying on copyrighted training data.

Original authors: Austin Rockman

Published 2026-07-27
📖 7 min read🧠 Deep dive

Original authors: Austin Rockman

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Sound of a Growing Song

Imagine you are a music producer trying to build a track. You have a library of thousands of sound clips—drums, synths, vocal chops, and weird noises. Usually, when you want to find a new sound to add, you pick one clip you like and ask a computer, "What sounds like this?" The computer then shows you a list of sounds that are very similar in tone or texture. This is like asking a librarian, "Do you have any books that look exactly like this one?" It's helpful, but it doesn't help you write a new story.

Music, however, isn't just about finding things that look alike; it's about how things fit together when they play at the same time. This is the science of harmony. Think of harmony like a puzzle where pieces only click if their shapes match, not just if they are the same color. If you have a sad, slow piano note, you might want a bright, happy drum beat to go with it, even though they sound totally different. The challenge for computers is that as you build a song, the "puzzle" changes. Every time you add a new layer, the rules for what fits next shift. A sound that was perfect for your first drum might clash with your third. This paper explores a new way to help composers navigate this shifting landscape, turning a static search into a living, breathing assistant that understands the whole song as it grows.


Reflector: The Song That Remembers

Meet Reflector, a new tool designed to help music composers find the perfect sounds for their songs. But unlike other tools that just look for sounds that resemble your starting point, Reflector is obsessed with what sounds compatible with the whole song you are building right now.

Think of composing a song like building a house with a team of friends. In the old way, you'd pick a brick (a sound clip) and ask, "What other bricks look like this one?" You'd get a pile of identical bricks. But Reflector asks a different question: "We are building a wall right now. We have a red brick here and a blue brick there. What kind of new brick would fit perfectly in the gap between them?"

The Magic "Oracle"

At the heart of Reflector is a secret recipe called an oracle. Imagine a giant, hand-drawn chart that acts like a music judge. This chart doesn't care if two sounds are the same; it cares about the "distance" between their notes. It has a rulebook that says, "If you play a C and an E together, that's a happy, strong combination. If you play a C and a F-sharp, that's a tense, clashing combination."

The researchers built this rulebook by hand, assigning scores to every possible pair of musical notes. They call this the "interval-class oracle." It's like a strict teacher who knows exactly which notes get along and which ones fight.

The Problem with the Strict Teacher

Here is the twist: If you ask this strict teacher to pick the best sound to go with any song, it gets lazy. It realizes that a very quiet, simple sound (like a soft hum) fits with almost everything. So, if you just used the teacher's rulebook directly, it would keep suggesting that same quiet hum over and over again, no matter what you were building. It would ignore the interesting, complex sounds because they are "riskier."

The paper found that using the rulebook directly is like having a recommendation engine that only suggests plain white bread because it goes with everything. It's safe, but it's boring.

The Smart Student (The AI)

To fix this, the researchers trained a smart computer student (a neural network) to learn from the strict teacher. But they didn't just tell the student to memorize the answers. They taught the student to understand the spirit of the rules.

They created thousands of fake musical examples using a computer synthesizer (no real copyrighted music was used, just math and sound waves). They showed the student pairs of sounds and the teacher's scores. The student learned to translate these sounds into a special 128-dimensional map (a giant, invisible playground). In this map, sounds that fit well together are close to each other, and sounds that clash are far apart.

The magic is that this student learned to be a better judge than the teacher. While the teacher would always pick the boring "universal" sound, the student learned to spread things out. It realized that a good song needs variety. So, when you ask the student for a match, it doesn't just give you the safest option; it gives you a diverse list of sounds that actually create interesting musical relationships.

The Song That Grows With You

The coolest part of Reflector is how it handles a song as you build it. Imagine you are arranging a song on a timeline with many tracks.

  1. The Live Centroid: As you drag and drop sounds onto your timeline, Reflector constantly calculates a "center point" for your current song. It's like a magnetic core that moves as you add new layers.
  2. The Sweep-Line: The system scans your timeline to see which sounds are playing at the same time. It figures out the "harmonic identity" of that specific moment.
  3. The Shift: If you change a note or add a new instrument, the "center point" of your song moves. Reflector instantly updates its suggestions. If you suddenly switch from a happy major key to a spooky minor key, the tool stops suggesting happy sounds and starts looking for spooky ones, even if you started the search with a happy sound.

The paper tested this on a library of 631 samples. They found that when they used the old "direct rule" method, the system only ever suggested 64 different sounds out of the 631, and one boring sound appeared in 97% of the top results. But when they used the trained student (the embedding), the system successfully suggested 625 of the 631 sounds. It covered the whole library while still knowing which sounds fit together.

A Galaxy of Songs

Reflector also lets you look at your entire history of songs. It takes every song you've made and turns it into a single dot in a 3D space. If you have two songs that feel harmonically similar, their dots will be close together. You can fly through this "galaxy" of your own work, finding connections between songs you made months apart. It helps you see how your musical style is evolving.

What It Can't Do

The authors are honest about the limits. Reflector is great at harmony (how notes fit), but it doesn't care about the texture or rhythm of the sound. It might suggest a sound that fits the notes perfectly but sounds like a squeaky toy when you need a drum. It also only understands Western music scales (the kind used in most pop and classical music). If you are making music with different musical rules, the tool might not work as well.

The Big Takeaway

The main discovery of this paper is that you can't just use a simple rulebook to find musical matches; it gets stuck on boring, safe answers. But if you train a computer to learn the geometry of those rules, you get a system that is both smart and diverse. Reflector shows that by letting the computer understand the whole song as it changes, we can turn a static search tool into a creative partner that grows with the artist.

The entire system runs on a single computer, uses no copyrighted data to learn, and is free for anyone to use. It proves that with the right design, computers can help us navigate the complex, shifting world of making music, not just by finding copies, but by finding the perfect fit.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →