ActiFit is a simple fitness app that accurately plays a song with a beat that matches the pace you are currently running at. Whether your pace of choice is to walk, run, or crawl, ActiFit provides you the perfect soundtrack to sync with any endeavor.
The song to pace matching calculation is done using quadratic regression, calculus, and built in GPS. We plot points we retrieve from the GPS in ten second intervals and using quadratic regression we are able to find the equation of an arc that matches the curvature of the plots. Once we have the arc we calculate the length of the path with calculus and simply divide by ten seconds to get the speed of the user. Combining the speed with the bpm of songs from the EchoNest API we are able to find an ideal match.
Because of the carefully calculated path we are able to display the user at the end of their workout nearly a replica of the same exact path they took even zigzags.
Log in or sign up for Devpost to join the conversation.