Reduce code duplication with a standard way to set and get the master BPM and beat distance.