Skip to main content

Abjad is a Python API for building LilyPond files.

Project description

Abjad helps composers build up complex pieces of music notation in iterative and incremental ways. Use Abjad to create a symbolic representation of all the notes, rests, chords, tuplets, beams and slurs in any score. Because Abjad extends the Python programming language, you can use Abjad to make systematic changes to music as you work. Because Abjad wraps the LilyPond music notation package, you can use Abjad to control the typographic detail of symbols on the page.

Abjad’s documentation is available here:

Abjad’s install instructions are tested on macOS and Linux.

Abjad requires Python 3.10 or later:

~$ python --version
Python 3.10.5

Abjad requires LilyPond 2.23.6 or later.

Make sure LilyPond is installed:

Make sure LilyPond is callable from the commandline:

$ lilypond --version
GNU LilyPond 2.23.12

Copyright (c) 1996--2022 by
Han-Wen Nienhuys <>
Jan Nieuwenhuizen <>
and others.

This program is free software.  It is covered by the GNU General Public
License and you are welcome to change it and/or distribute copies of it
under certain conditions.  Invoke as `lilypond --warranty' for more

Create a Python 3 virtual environment for Abjad:

Activate the virtual environment and then use pip to install Abjad:

~$ python -m pip install abjad

Start Python, import Abjad, start making music notation:

~$ python
Python 3.10.5 (v3.10.5:f377153967, Jun  6 2022, 12:36:10)
[Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import abjad
>>> note = abjad.Note("c'4")

Join the Abjad community:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

abjad-3.12.tar.gz (419.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page