added OutOfRangeError
implementing midi module