extract bpm of incoming midi realtime