How to stop sounds after keypress
In my experiment, the participants will see two pictures and listen to a sentence. They need to choose a matched picture according to the sentence. I used a sampler to display the sound. Howerver, I want the sound to stop and proceed to the next stimulus when a key is pressed. I've tried to set the duration as "keypress" and "0', but they did not work as I expected. Does anyone know how to solve it?