Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

pyknon

> 编程语言
Open source

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

392 stars0 likes2 views
WebsiteGitHub

About

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

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::

python
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.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言