Back to Writing
·2 min readTech

Codex can just… edit songs?

by Keiryan Wilson

I was looking for a clean version of a song and couldn't find one, even on YouTube. So I dropped the audio into Codex and asked if it could clean it up.

It did. Which raised a pretty fun question: what else can you hand a coding agent that has nothing to do with building an app?

I recorded a quick demo to show what I meant.

A small audio-editing test

For the video, I used “We Are Young” by fun., featuring Janelle Monáe. The song didn't need cleaning up for this example. I just chose two words, “young” and “brighter,” and asked Codex to remove every instance of them.

The important part was how I wanted the result to sound. Removing a word is one thing. Leaving an obvious hole in the music every time it happens is another.

So I gave it a few constraints:

  • Remove the two target words wherever they appear.
  • Keep the music and beat going through those moments.
  • Make the edits sound as natural as possible, close to a radio edit.

That was the task. I supplied the audio and described the result I wanted in ordinary language.

From a request to an audio file

In the recorded run, Codex returned an edited MP3 after one minute and 36 seconds. Its completion message said it had removed the target words while keeping the instrumental continuous with smooth crossfades.

It also reported checking the finished file and leaving the original MP3 unchanged. Those are useful checks to see, but the next step was still to open the output and listen.

I played part of it back in the video. For this little experiment, I considered the result a success. You can hear that excerpt in the linked demo and judge it for yourself.

A useful reason to look beyond code

We usually talk about Codex in terms of building software. This was a much smaller, more everyday request: take a file I already have, make a specific change, and give me back something usable.

There was no new app to build. The edited audio was the deliverable.

One successful example doesn't tell us how every song or mix will turn out. But it was a good reminder that an agent's ability to work with files can be useful well outside a codebase. Sometimes the interesting experiment starts with a very ordinary problem and a simple question: can you do this for me?