Integrate beat detection algorithm into MIDI import