Metronome - repeat a sound throughout the experiment
I have the following task: the subjects have to identify the number of points in a set. Each set stays on screen until they press a key.
I need a sound to play in the background every one second (a click sound for example) until the task is completed (40 sets of points in total).
So far I've managed to make the sound play once with each set by placing a sampler inside the inline_script where I created the stimuli, or for the sound to be repeated throughout the task with a clock.loop_for () in an inline_script outside the loop but i cannot control the ms between each sound. In addition, i used clock.loop_for(50000) to cover the whole task and the experiment crashes.
I'm guessing this is something simple to do, but I've tried every tutorial I could find an I'm not getting anywhere. Sorry for my English. If someone can give me a hand I would be very grateful.