Skip to main content

EasyMIDI

Documentation Status

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

Metadata

Release files for EasyMIDI 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for EasyMIDI 1.0
File Size Uploaded
EasyMIDI-1.0.tar.gz 24.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for EasyMIDI 1.0
File Interpreter ABI Platform
EasyMIDI-1.0-py3.4.egg Legacy Egg format - - Details
EasyMIDI-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 101.1 kB

Release files / EasyMIDI-1.0.tar.gz

Download URL EasyMIDI-1.0.tar.gz
Size 24.0 kB
Tags Source
SHA-256 checksum
How to use checksums
65224211fefc9a06f8bc55009d47e22ddc6cebc1f23bcc0753025e772b098079
BLAKE2b-256 checksum
How to use checksums
37f47d5e23c6f034557d5ddccab5143240b24b77fc7a1785cd2e800b896bd82d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / EasyMIDI-1.0-py3.4.egg

Download URL EasyMIDI-1.0-py3.4.egg
Size 50.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
5042e419d56d6edd40f82e3f1a5a74e2251737c3a120281cfa770611cef03df4
BLAKE2b-256 checksum
How to use checksums
68f8e19f81ef322d648d57be8a13107e003dd93a1a77709324faf02b245d314d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / EasyMIDI-1.0-py3-none-any.whl

Download URL EasyMIDI-1.0-py3-none-any.whl
Size 26.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e944ec98d18d6265e9ef0ab26387eee7c386fcea5b78ab1341c97483e9ea0bde
BLAKE2b-256 checksum
How to use checksums
db763759a94c6cafb4d98b56b79b9e0718cb554ffa67a72b7d4255b31b7fc7b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0 This release

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page