An environment to play midi notes using Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
html
.gitignore
README.md
musicalSymbols.py
playMaxNotes.py
playNotesFromPython.maxpat

README.md

Python MIDI Environment

Setup

This envrionment uses Python 3 and a couple dependencies.

You will need to add the python-osc which you can install via the command $ pip install python-osc.

If you have Max 6 or Max 7, simply open up the Max patch. Otherwise, download and use Max Runtime. We may include a download link to the standalone version of the patch in the near future.

Simple Application

We have pre-written a couple melodies including the theme to the fugue in Benjamin Britten. The following simple program includes our library, sets the tempo, and plays the Britten line.

# britten.py

from playMaxNotes import *
setTempo(180)
playLine(britten)

Run the file using the following command:

$ python3 britten.py

And you should see something like this: