An API to simplify MIDI message generation