Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple Python library to generate music in a hacker friendly way.
branch: master
Failed to load latest commit information.
docs move docstrings to sphinx
pyknon Fix typo. closes #8
test Fix typo. closes #8
.gitignore using Note - Note to calculate intervals instead of Note.value. now t…
LICENSE add license
MANIFEST Small fixes to upload to PyPI Small fixes to upload to PyPI
Makefile Cleanup more files add syntax highlighting to code, add license link
TODO add todo Update sample to use new code. Fixes #1
requirements-dev.txt add requirements for development Small fixes to upload to PyPI


Pyknon is a simple music library for Python hackers. With Pyknon you can generate Midi files quickly and reason about musical properties.

Pyknon works with Python 2.7 and 3.2.


Pyknon is very simple to use, here's a basic example to create 4 notes and save into a MIDI file::

from pyknon.genmidi import Midi
from import NoteSeq

notes1 = NoteSeq("D4 F#8 A Bb4")
midi = Midi(1, tempo=90)
midi.seq_notes(notes1, track=0)

See the documentation for more details.


Pyknon needs better documentation. Meanwhile you can download this free chapter from Music for Geeks and Nerds that explains how to use Pyknon.


This library is released under a MIT license. See the LICENSE file for more details.

Pyknon's MIDI module is heavily based on Mark Conway Wirt's MIDIUtil.

Something went wrong with that request. Please try again.