Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kroger/pyknon
Simple Python library to generate music in a hacker friendly way.
https://github.com/kroger/pyknon
Last synced: 5 days ago
JSON representation
Simple Python library to generate music in a hacker friendly way.
- Host: GitHub
- URL: https://github.com/kroger/pyknon
- Owner: kroger
- License: mit
- Created: 2012-03-15T00:10:59.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2021-12-29T01:28:08.000Z (almost 3 years ago)
- Last Synced: 2024-12-02T09:27:19.560Z (19 days ago)
- Language: Python
- Homepage: http://kroger.github.com/pyknon/
- Size: 144 KB
- Stars: 391
- Watchers: 26
- Forks: 48
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-projects - pyknon - Simple Python library to generate music in a hacker friendly way. (Python)
README
# 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 NoteSeqnotes1 = 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](https://pedrokroger.net/mfgan/)
that explains how to use Pyknon.# License
This library is released under a MIT license. See the
[LICENSE](LICENSE) file for more details.Pyknon's MIDI module is heavily based on Mark Conway Wirt's MIDIUtil.