Program the shortest code that will calculate the average BPM (Beats per Minute) using 8 data points of time passed. This is my first post, and I haven't seen a question similar to this. Since I am a fan of rhythm games, it would be nice to have a small handy tool to calculate BPM using your own keyboard and your own sense of rhythm (if you have one...)
- All inputs must be singular. (i.e. Only pressing "enter" as "input")
- Your program must take at least 9 inputs. (To create 8 data points of time passed.)
- Your program should output the BPM of the keypresses rounded at 2 decimal points. (i.e. 178.35)
- Timing starts at first input. Not start of program
This is code-golf, so the shortest answer wins.
Example Input and Output
Provide at least one example input and output. Make sure they match your own description of what the input should look like.
> [Enter-Key] # User waits 1 second ... 7 more inputs > [Enter-Key]
Current winner is KarlKastor at 22 Bytes using Pyth
Even though the winner was using Pyth, the Matlab answer was a notable answer.