I'm building an experiment where in each trial, the subjects can replay stimulus as many times as they wish by pressing certain keys. For example, there're 2 sounds: s1 and s2. s1 is associated with key 'a', and s2 is associated with key 'j'. Whenever the subject presses 'a', s1 will be played. Same for s2. Space bar is used to terminate the present trial and jump to the next trial.
Now I'm able to play stimulus after key press, by having '$event.getKeys('a')' in the condition field in s1 sound component, and '$event.getKeys('j')' in s2 sound component. But this will only play each stimulus once in a trial. The second time the keys are pressed, there are no sounds.
So my question is, what should I do so that in each trial, a stimulus can be played EACH time a designated key is pressed?
Thank you!
Hi,
I am sorry, I do not know how to use it for my experiment.