If all you want is to repeat the same sequence of sounds every n milliseconds, then by far the best solution is using some audio-software to create that pattern and save it as a single sound file. Then you'll trigger this sound file (and stop it) whenever you like. This is by far the best solution.
If you still want to try it "the hard and imperfect way" you could use
do
if timer*1000>"n"
"perform this operation"
reset timer
loop
This should do the operation
close to every "n" milliseconds if I am not mistaken.
iMac Book Pro, MacOS 10.12.4, Xcode 9.0 (9A235);
iPhone 6, iOS 9.35; iPhone 5s, iOS 9.35; iPad (3rd gen), iOS 9.35;
Dell Precision T7400, Windows 7 Professional 64bit, Visual Studio Community 2015;