midi analysis