I am trying to simulate an ocean sound automatically on Pure Data. So far I have accomplished to achieve a very basic sound by filtering some noise with a [bp~]. I have seen that the best range of the cut-off frequency is from 300 to 500 Hz, therefore I would like to have a horizontal slider [hsl] that goes from 300 to 500 and back, automatically and on a loop until I tell it to stop. (I have already assigned the range (300,500) to the slider, I only need to control it automatically now). I have tried with [osc~] but it won't work because the slider is not an audio element and the [osc~]'s output is an audio signal. In the picture I show what I have this far:
So how can I do it to control the slider automatically without having to vary it manually? So far everything works as I want it to, but I need the slider to increase and decrease periodically to simulate the sea waves.