百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

pyknon

> 编程语言
开源

简单的 Python 库,以黑客友好的方式生成音乐。

392 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

简单的 Python 库,以黑客友好的方式生成音乐。

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

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