EasyMIDI
A simple, easy to use algorithmic composition MIDI creator for Python, based on midiutil.
Install / Use
/learn @daviddekleer/EasyMIDIREADME
EasyMIDI
|docs|
A simple, easy to use algorithmic composition MIDI creator for Python, based on midiutil.
Creating a MIDI file can be as simple as this::
from EasyMIDI import EasyMIDI,Track,Note,Chord,RomanChord from random import choice
easyMIDI = EasyMIDI() track1 = Track("acoustic grand pino") # oops
c = Note('C', octave = 5, duration = 1/4, volume = 100) e = Note('E', 5) g = Note('G', 5) chord = Chord([c,e,g]) # a chord of notes C, E and G track1.addNotes([c, e, g, chord])
roman numeral chord, first inversion (defaults to key of C)
track1.addNotes(RomanChord('I*', octave = 5, duration = 1))
easyMIDI.addTrack(track1) easyMIDI.writeMIDI("output.mid")
Installation
EasyMIDI is only compatible with Python3. The recommended way of installing is
to use :code:pip install EasyMIDI. You can also install the package by running
:code:python3 setup.py install.
Documentation
Documentation can be found here: http://easymidi.readthedocs.io
.. |docs| image:: https://readthedocs.org/projects/easymidi/badge/ :alt: Documentation Status :scale: 100% :target: https://easymidi.readthedocs.io
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
