Utility functions for handling MIDI data in a nice/intuitive way.