Sequential sound presentation

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Ubuntu 18
PsychoPy version (e.g. 1.84.x): 2021.2.3
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?: ABX audio stimuli presentation

We’re trying to build an auditory ABX task in which 3 sounds S1, S2 and S3 are presented sequentially with a certain ISI. We cannot get S2 to start exactly after e.g. 150ms the end of S2, and so forth.

We tried setting a setting the start of our sound components (e.g. S2) to the end of our previous sound component (e.g. S1) with:

Start >> condition > $sound1.status==FINISHED

but it does not work because in the Psychopy builder S1 never finishes (even after the audio file has finished).

What specifically went wrong when you tried that?:
Traceback (most recent call last):
File “/home/sammitch/Desktop/Perceptual Experiment/”,
line 306, in
if sound_1_2.status == NOT_STARTED and Stim1.status==FINISHED:
AttributeError: ‘str’ object has no attribute ‘status’

Experiment ended.

Hi There,

Can you set both the onset and duration fields of the sound components ? If the sounds have different durations on each trial you can set these through your conditions spreadsheet so as to ensure 150ms spacing between stimuli.

Hope this helps,

1 Like