BPM tools

Added functions to detect and set base tempo via BPM