Skip to content

kroger/pyknon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

945e1f9 · Apr 20, 2021
Oct 8, 2015
Apr 20, 2021
Apr 20, 2021
Apr 20, 2021
Apr 20, 2021
Mar 15, 2012
Jul 30, 2012
Jul 30, 2012
Apr 20, 2021
Apr 20, 2021
Jul 2, 2012
Jul 26, 2012
Oct 21, 2015
Oct 4, 2015
Apr 20, 2021
Oct 4, 2015
Apr 20, 2021

Repository files navigation

Introduction

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 3.9. It probably doesn't work with 2.7 anymore.

Usage

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 pyknon.music import NoteSeq

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

See the documentation for more details.

Documentation

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

License

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.

About

Simple Python library to generate music in a hacker friendly way.

Resources

License

Stars

Watchers

Forks

Packages

No packages published