PyTheory is a Python toolkit for exploring music theory, composing arrangements, synthesizing sound, and exporting musical ideas programmatically. It models concepts such as notes, intervals, scales, chords, keys, progressions, fretboards, modes, and multiple musical systems. A score API can combine melodic parts, bass lines, chords, drums, synthesis, effects, automation, and sequencing. Compositions can be played immediately or exported as MIDI for continued production in a digital audio workstation. The command-line interface includes chord analysis, progression generation, tuning, playback, live MIDI tools, and an interactive REPL. A browser playground provides access without installation, while optional integrations support Ableton Link and external MIDI input. The project also offers Claude Code skills for AI-assisted composition and analysis.

Features

  • Scales, chords, keys, and interval analysis
  • Multi-part score composition
  • Built-in synthesis, drums, and effects
  • MIDI generation and export
  • Interactive CLI and browser playground
  • Live MIDI, Ableton Link, and AI composition integrations

Project Samples

Project Activity

See All Activity >

Categories

Sound/Audio

License

MIT License

Follow pyTheory

pyTheory Web Site

Other Useful Business Software
Host LLMs in Production With On-Demand GPUs Icon
Host LLMs in Production With On-Demand GPUs

NVIDIA L4 GPUs. 5-second cold starts. Scale to zero when idle.

Deploy your model, get an endpoint, pay only for compute time. No GPU provisioning or infrastructure management required.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of pyTheory!

Additional Project Details

Programming Language

Python

Related Categories

Python Sound Audio

Registered

2026-09-15