refactor: better algorithm for calculating tapped tempo