BPM Tap control slider?

I want to tap out a BPM and then have a slider bounce between 0 and 100 (hitting all the numbers inbetween) within the given tempo that I tapped out, basically going up to 100 on 1 beat and then coming back down to 0 on the next. Could anyone help me with how to go about doing that?