# Rainbow-Dreamer/musicpy

Musicpy is a music programming language in Python designed to write music in very handy syntax through music theory and algorithms.

Repository: https://github.com/Rainbow-Dreamer/musicpy
Canonical: https://ross.abutalabs.com/products/musicpy
Homepage: https://musicpy.readthedocs.io/en/latest/
Language: Python
License: LGPL-2.1
License Family: copyleft
Topics: music-theory, midi, music-programming, python, music, musicpy
Last push: 2026-06-19T16:40:57+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 88, release rhythm 8, longevity 100
- inputs: {"age_days": 2323, "days_push": 75, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1492, forks 137 (observed 2026-08-28T04:04:52.677152+00:00)

## What it is
Musicpy is a Python library and music programming language for writing music with concise, human-readable syntax built on a fully computerized music theory system. It can generate music, perform advanced music theory analysis and operations, and read/write MIDI and MusicXML files.

## Use cases
- write music with code using concise syntax
- generate music algorithmically from music theory rules
- analyze MIDI files with music theory logic
- convert between musicpy data structures and MIDI files
- read and write musicxml files
- build AI music generation experiments in Python

## When to choose
- you want to compose or algorithmically generate music in Python
- you need programmatic music theory analysis of MIDI files
- you want a human-readable music DSL fully compatible with Python

## When to avoid
- you need audio production or DAW-style editing rather than symbolic music
- you have no music theory background and want a purely visual composition tool
- you need real-time audio synthesis out of the box

## Facets
- artifact type: library
- maturity: active
- function: programming-language, parser, sdk
- domain: audio, developer-tools
- platform: python, cross-platform
- tags: music-theory, midi, music-programming, algorithmic-composition, music-analysis, musicxml, algorithms

## Member repositories
- Rainbow-Dreamer/musicpy (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:52.677152+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:33:28.645585+00:00, confidence not recorded.
  - readme: https://github.com/Rainbow-Dreamer/musicpy (fetched 2026-08-28T04:04:52.677152+00:00, sha 4ad3830d36ef)
  - registry_pypi: https://pypi.org/pypi/musicpy/json (fetched 2026-08-29T11:39:33.815691+00:00, sha 032ea479022e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
