psychopy.org | Reference | Downloads | Github

Ending the routine without response


#1

Dear all
I have two routines inside a loop. I have set up the mouse response with the second routine.

I am now interested in the first routine. It has a sound file of varying duration. I do not want any response to be stored for this routine, so I did not add Keypress or a Mouse click to end the the first routine. I want the first routine to end right after the sound in it is completed playing.

You may wonder why would I need this, instead I could add this to the second routine, but I am using this to hack the problem in psychoy builder mouse.

My first routine looks like this

Any help is appreciated.

Thanks


#2

Something like this in a code component:

#every frame
if sound_2.status == FINISHED:
    continueRoutine = False

Might work,

BW

Oli


#3

Hi Oli

Brilliant!!! Thanks