Moved midi analyzer to separate file.