Add bar/beat calculations.