MIDIEvents

Build Status Documentation

An easy to use library used to trigger functions when a chord is detected on a MIDI controller. Currently still in development.

Documentation on Read The Docs at https://midievents.readthedocs.io/en/latest/

Installation

After requirements have been satisfied, pip install MIDIEvents

Requirements

Python requirements are installed automatically during installing. python-rtmidi does require some additional C libraries that aren’t installed during installation.

Installing on Debian based Linux

sudo apt install build-essential python-dev python3-dev libasound2-dev libjack-jackd2-dev
pip3 install python-rtmidi

Installing on Windows

Windows is trickier, see the python-rtmidi Windows install instructions. Sometimes pip install python-rtmidi is all you need.

Basic use

import MIDIEvents

MEL = MIDIEvents.MIDIEventLoop()


# Most chords in this list are valid
# https://en.wikipedia.org/wiki/List_of_chords
@MEL.on_notes("C4 Major")
def do_work():
    print("Did a thing")


input("This is a blocking function so that the script doesn't end.\n")