Skip to content


Subversion checkout URL

You can clone with
Download ZIP
symbolic music analysis and composition library in Python
Latest commit 4e460c3 @jtauber PEP8 compliance


Sebastian is a symbolic music analysis and composition library written in Python.

I partly think of it as being a "Mathematica for music". By symbolic, I mean that it is focused more on the sorts of abstractions made by music notation and theories of harmony and counterpoint than lower level numerical operations that one might use in, say, music synthesis.

I hope it to be very practical as an analysis tool for existing compositions (especially from the common practice period) and also a tool for computer-assisted composition. It will also be a bit of a test bed for ideas I've had for a while around applying linguistics and abstract algebra to music.

PyCon 2013 Talk

I spoke about Sebastian at PyCon 2013 and my slides are available at:

The video of the talk is available on YouTube at:

Mailing List

You can join the Sebastian mailing list by emailing

IRC Channel

We're using #sebastian-dev on Freenode.


Sebastian is open source under an MIT license. See the LICENSE file.

Running Tests

pip install nose

or with coverage:

nosetests --with-coverage --cover-erase --cover-package=sebastian --cover-html
open cover/index.html

IPython Notebook Integration

pip install ipython
pip install tornado
pip install pyzmq

and install Lilypond, making sure commandline lilypond is on your path then:

ipython notebook
Something went wrong with that request. Please try again.