pytheory for Ableton Live: Music Theory One Right-Click Away

Published Nov 25, 2026 · extension deep dive

pytheory for Ableton Live detects keys and chords, generates progressions, basslines and drums, and prints notation, offline, from Live's right-click menu.

Most music theory helpers live in a browser tab or a separate app. pytheory for Ableton Live works from Live's right-click menu instead. Right-click a MIDI clip and you can ask what key it is in, what the chords are, and what might come next. Right-click an empty slot and it writes a progression, a melody or a drum pattern for you.

It is free and MIT-licensed, built by Kenneth Reitz around his pytheory Python package ("Music Theory for Humans"). The detail that sets it apart is under the hood. The actual Python package runs inside the extension through Pyodide, which is CPython compiled to WebAssembly. That means no plugins, no system Python install, and no network calls. Everything happens offline on your machine.

What it does inside a Live Set

Like every extension built with Ableton's Extensions SDK, pytheory works on the structure of your Set. It reads and writes clips, notes and tracks. It does not process audio in real time. The listing says it attaches to MIDI clips, audio clips, clip slots, scenes and devices. The documented commands fall into three groups.

Analyze (right-click a MIDI clip)

Transform

Harmonize, Arpeggiate, Conform to Scale, Transpose to Key (scale-degree aware, so it does more than shift every note by a fixed interval), Smooth Voicings, Invert Melody / Retrograde, and Negative Harmony. Generate Bassline follows the clip's chords and writes a new MIDI track in one of four styles: roots, root–fifth, arpeggiated or walking. Render to Audio plays the clip through pytheory's own synth engine, which has 46 instruments, and puts the result on a new audio track.

Generate (right-click an empty clip slot or a scene)

Generate Progression offers 14 built-in progressions. You can also type your own Roman numerals or chord symbols, or ask for a random walk through the corpus. Generate Melody and Generate Scale do what their names say. Generate Drum Pattern has 100 preset patterns and 37 optional fills, all on the General MIDI drum map. On a scene, Generate Song Sketch creates four new tracks in your key: chords, bassline, melody and drums.

The listing's description runs longer than what is summarized here. Check the extension page for the full command list, including what the audio clip and device entries do.

Who it is for

Three groups will get the most out of it.

Developers have a separate reason to look. Extensions run on Node.js, and this one bundles a full Python library through WebAssembly. That shows you don't have to rewrite an existing codebase in JavaScript to bring it into Live. The source is public on GitHub under kennethreitz/ableton-pytheory.

Three session scenarios

1. A loop you didn't write

You've dragged in a MIDI chord loop from an old project and want to build on it. Right-click the clip and run Detect Key. If the top two candidates are relative major and minor, keep both in mind. Run Detect Chords next to see the Roman numerals. Then run Generate Bassline and pick root–fifth for a first pass. A new MIDI track appears that follows the chords, and you can drop any bass instrument on it. If the loop feels unresolved, Suggest Next Chord tells you which continuations are most common.

2. An empty scene and twenty minutes

Right-click a scene and choose Generate Song Sketch. You get four tracks of chords, bass, melody and drums in your key. Treat this as a starting point, not a finished song. Run Chord Substitutions on the chord clip and try a tritone sub or secondary dominant in place of the plainest chord. Then run Smooth Voicings so the changes don't jump around the keyboard. If the melody feels too predictable, duplicate the clip and try Invert Melody or Negative Harmony on the copy so the original stays untouched.

3. Handing a part to a player

A guitarist is coming in to double your synth line. Run Transpose to Key if the session key has changed, then Guitar Tabs for fingering charts and a fretboard map of the scale. For a horn or string player, Show Notation gives you engraved sheet music. It also saves a .ly file that you can open and edit in LilyPond before printing.

Installing and triggering it

Extensions need Live 12 Suite, beta 12.4.5 or later. They are not available in Standard, Intro or Lite. If you don't have the beta, join through Ableton's beta program.

  1. Download the .ablx package from the listing page.
  2. In Live, open Settings → Extensions and add the package.
  3. Restart Live if it asks you to.
  4. Right-click a MIDI clip, an empty clip slot or a scene. The pytheory commands appear in the context menu.

One thing to keep in mind: an extension runs once per click and then stops. Nothing runs in the background. Analysis results describe the clip as it was when you clicked, so run Detect Chords again after you edit notes. Ableton's Extensions page has an FAQ on how the system works.

How it compares with the alternatives

pytheory is the broadest tool in the MIDI tools category. Broad isn't always what you need, though.

ExtensionWorks onBest at
pytheoryMIDI clip, audio clip, clip slot, scene, deviceAnalysis, generation and notation in one package
ProgressiveClip slot, MIDI trackFamous progressions as MIDI-mappable Session clips or an Arrangement row
Composition AideMIDI clip, clip slot, scene, Arrangement selectionVoiced progressions, comping rhythms, song forms, coloring clips by key
Sheet MusicMIDI clipNotation with instrument transposition; MusicXML, PDF, PNG export
Reverse MIDIMIDI clipOne action: mirror note timing, keeping pitch and length

Progressive is the focused choice if you mostly want well-known progressions such as I–V–vi–IV, ii–V–I or 12-bar blues laid out as clips you can trigger. pytheory's 14 built-in progressions overlap with this. Progressive's MIDI-mappable layout is more performance-friendly.

Composition Aide is the closest rival. It also generates progressions and bass lines and analyzes harmony. It adds comping rhythms, song forms and an Arrangement selection scope, which pytheory doesn't list. If you work mostly in Arrangement View, try both.

Sheet Music is the better pick when the output is a document. Its MusicXML export goes straight into notation software, and PDF or PNG works for quick sharing. pytheory's LilyPond file suits people who already use LilyPond.

Reverse MIDI does one job. pytheory's Retrograde sounds similar, but the two descriptions differ. Reverse MIDI specifically keeps each note's pitch and length and mirrors timing in a single undo step. Our Reverse MIDI deep dive covers that behavior in detail.

What to know before relying on it

Version 0.4.1 is early software. At the time of writing it has 12 downloads and no ratings, so few people have reported on it yet. Duplicate a clip before transforming it, and check Live's undo history after each command until you know how each one behaves. If something breaks or works well, leave a comment on the listing so the next producer knows.

For more options, browse the full extension directory. If pytheory makes you want to package your own library, start with the Extensions SDK documentation.

Browse all extensions → · Submit yours →