Stimulus didn't start immediately after audio component, even with .status==FINISHED entered

Win10
PsychoPy version (v2021.2.3)
Standard Standalone? (y)

Hi all. I am building an audio-visual priming experiment in which an image file (i.e., target word) appears immediately after a sound file (i.e., prime), with a SOA of 0ms, and subjects make lexical decision on the keyboard. In order to do that, I made the audio file (name: praAudio) start from 0 and left the Stop duration blank, I put praAudio.status==FINISHED in the Start condition of the image (as well as the key_response component), and made the Stop duration blank. I also included an image component as the background picture for audio playing (starts from 0 and stops with the condition praAudio.status==FINISHED). Please see screenshots below.

However, instead of moving onto the target word presentation, the program stuck after the first audio is played (it didn’t crash but just stays at the background image without going on). I think the condition .status==FINISHED is not functioning. I once made the audio stop at 2s, and the program flowed fine, but that’s not what I want.

Any information will be deeply appreciated!

How about putting the sound file in a separate routine so you can start all the other components at 0.

If the background is causing an issue then you could start and stop that in code so it doesn’t stop the sound routine ending.

(I’m not sure why the conditional start isn’t working for you)

This is an old topic, I know. But in case anyone stumbles upon it (like I did), here’s how it worked for me.

$ before the name of the other audio stimuli, so $esto_es.status == FINISHED worked where esto_es.status == FINISHED did not prompt the following item to play.

This may be more obvious, but for embedding a stimulus in a carrier phrase [phrase part 1] + [stimulus] + [phrase part 2] using the $ABC.status == FINISHED as a condition to start playing the following audio component works great. Using a time trigger like $[phrase part 1].getDuration() causes clicking and general freaking out because it’s trying to do two things at once, and adding time like ‘+ 0.01’ or something may mess up precision timing if that’s something you’re after (capturing RTs or mousetracks).

1 Like