Click / rythm tracks

I’d like to make/gen a click track (Rythm) by secifying
two points on a music wave form, and then specify #of sub-divisions, and then have it fill click track to lengeth of wave form track.

How close can I come to this?