adding a median-filter to the beat tracker