You mean this kind?
Add this code at the end.
I hope this works like you think.


frequency=frequency+frequency/1000;