Adding ratcheting sound effect to slider

I want to create a clicking sound effect for widget sliders to get a stepped settings feel. How would I go about getting this effect? I was thinking about using a single small click and using the slider position and speed to determine how many and how fast the clicks happen when the player moves the slider but I’m not sure that’s the way to go.
I will also be using Fmod as well,