Munay PassaquiMunay Passaqui · music, python and LOOM

A full rock song. Ableton + Claude + music theory.

I can't play drums or guitar. "Cobre y Buitres" is still my song. Here is exactly how it was made.

Before and after

Same 14 seconds, same volume. The first draft that night, then the released version after my notes and the mix.

BEFORE · first draft
AFTER · released

The idea

The AI doesn't replace taste. It replaces the hands. I decide what the song is. Claude writes it as code. Ableton plays it with real instruments. I listen and say no until it's right.

The 5 steps

  1. Say what you hear. Not "make a rock song". Be precise: desert rock, 118 bpm, a riff that limps, fuzz guitar and bass in unison, a heavy loose drummer, an organ under the chorus. Music theory is what makes you precise.
  2. Claude writes the notes in Python. Every note is a number: pitch, start, length, velocity. The riff crawls up E F F# G, jumps an octave, falls back. Every 4 bars a short 2/4 bar with two stabs, so the riff always comes back one step early.
  3. Make it human. Off-beat notes land a little late (swing), every note gets a tiny random shift and a different velocity. Without this it sounds like a machine.
  4. Ableton plays it. Python sends the notes into Live through AbletonOSC. Real sampled instruments: a 70s room drum kit, two guitars through two different amps (left and right, like two takes), electric bass, a tonewheel organ.
  5. Mix with code, judge with ears. Fuzz, amp and cabinet on the lead, compression on the drums, master at -14 LUFS. The first drum kit was too clean: I said no, we changed it. That "no" is the job now.

What you need

Try it: the real riff

In Live, put any guitar or bass on MIDI track 1. Run the script. The riff from the song appears in a clip and plays.

It works if: a 4 bar clip appears on track 1 and you hear the riff, slightly behind the beat.

Download riff.py

The prompt to start your own

You are my co-composer. Write a Python script that sends a song
into Ableton Live through AbletonOSC (port 11000).
Style: {genre}, {tempo} bpm, key of {key},
mood: {3 words}. Original riffs only.
Write the notes as (pitch, start beat, length, velocity).
Add swing and small random timing/velocity so it sounds played.
One MIDI track per instrument. Give me the form in beats first,
then the riff, then the rest. Ask me before adding parts.
Rule I keep: the AI proposes, my ears decide. If it sounds generic, I describe what's wrong in musical words and we redo it.