analyzing midi