Skip to main content

A simple, easy to use algorithmic composition MIDI creator.

Project description

**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. 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

.. |docs| image:: https://readthedocs.org/projects/easymidi/badge/
:alt: Documentation Status
:scale: 100%
:target: https://easymidi.readthedocs.io


Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

EasyMIDI-1.0.tar.gz (24.0 kB view details)

Uploaded Source

Built Distributions

EasyMIDI-1.0-py3.4.egg (50.9 kB view details)

Uploaded Egg

EasyMIDI-1.0-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

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

Hashes for EasyMIDI-1.0.tar.gz
Algorithm Hash digest
SHA256 65224211fefc9a06f8bc55009d47e22ddc6cebc1f23bcc0753025e772b098079
MD5 b93cdb3140b765ccf64f28a35e067855
BLAKE2b-256 37f47d5e23c6f034557d5ddccab5143240b24b77fc7a1785cd2e800b896bd82d

See more details on using hashes here.

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

Hashes for EasyMIDI-1.0-py3.4.egg
Algorithm Hash digest
SHA256 5042e419d56d6edd40f82e3f1a5a74e2251737c3a120281cfa770611cef03df4
MD5 ee49e73ba7b3fbfdd8525fdf33aedf4f
BLAKE2b-256 68f8e19f81ef322d648d57be8a13107e003dd93a1a77709324faf02b245d314d

See more details on using hashes here.

File details

Details for the file EasyMIDI-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for EasyMIDI-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e944ec98d18d6265e9ef0ab26387eee7c386fcea5b78ab1341c97483e9ea0bde
MD5 3f766ab284fff61ba3cfc0f3027513be
BLAKE2b-256 db763759a94c6cafb4d98b56b79b9e0718cb554ffa67a72b7d4255b31b7fc7b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page