A simple, easy to use algorithmic composition MIDI creator.
Project description
EasyMIDI
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. If you have setuptools for Python 3, you can install the package by running python3 setup.py install (use sudo python3 setup.py install on Linux or python3 setup.py install –user). TODO PyPI - pip install support
Documentation
Documentation can be found here: http://easymidi.readthedocs.io
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file EasyMIDI-1.0.tar.gz.
File metadata
- Download URL: EasyMIDI-1.0.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65224211fefc9a06f8bc55009d47e22ddc6cebc1f23bcc0753025e772b098079
|
|
| MD5 |
b93cdb3140b765ccf64f28a35e067855
|
|
| BLAKE2b-256 |
37f47d5e23c6f034557d5ddccab5143240b24b77fc7a1785cd2e800b896bd82d
|
File details
Details for the file EasyMIDI-1.0-py3.4.egg.
File metadata
- Download URL: EasyMIDI-1.0-py3.4.egg
- Upload date:
- Size: 50.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5042e419d56d6edd40f82e3f1a5a74e2251737c3a120281cfa770611cef03df4
|
|
| MD5 |
ee49e73ba7b3fbfdd8525fdf33aedf4f
|
|
| BLAKE2b-256 |
68f8e19f81ef322d648d57be8a13107e003dd93a1a77709324faf02b245d314d
|
File details
Details for the file EasyMIDI-1.0-py3-none-any.whl.
File metadata
- Download URL: EasyMIDI-1.0-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e944ec98d18d6265e9ef0ab26387eee7c386fcea5b78ab1341c97483e9ea0bde
|
|
| MD5 |
3f766ab284fff61ba3cfc0f3027513be
|
|
| BLAKE2b-256 |
db763759a94c6cafb4d98b56b79b9e0718cb554ffa67a72b7d4255b31b7fc7b0
|