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
- 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.
- 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.
- 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.
- 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.
- 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
- Ableton Live 11 or 12 (any edition for the script; I used Suite and its Session Drums pack).
- AbletonOSC, free. It lets code talk to Live.
- Python 3 and
pip install python-osc. - Claude, or any AI that writes code. The prompt below.
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.
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.
Next: more builds like this, music, code and AI.
Follow @munaypassaqui or see everything I make.