If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win11): PsychoPy version (StandalonePsychoPy-2024.2.3-win64-py3.8):
**What are you trying to achieve?: The “set every repeat” is not available in the sound component.
I am now designing an arrow task by Psychopy. Each trail in this block includes a fixation that is presented for 0.5 seconds, followed by a volume graph and pure tone that appear at the same time for 0.8 seconds, and a blank that is presented for 0.8 seconds.
I wrote each condition in an Excel sheet. The number of Neu_Aud_sounds is the hertz value that I want Psychopy to generate. At the same time, I wrote $Neu_Aud_sounds as a variable in the sound component, but the option of “set every repeat” is grayed out and cannot be used.
After removing the sound component, everything is ok.
I am wondering how can I resolve this situation. Is there a problem with this version of Psychopy? Or do I need to write the specified code myself? If I need to write the code, could you provide me with more details?
With newer versions, this this fix does not seem possible anymore - set every repeat remains gray. Is there anything I can do about it? My sound file is supposed to change every iteration. Thanks!
Hi Wakecarter, I am sorry, my message was cryptic This is what is happening: I have a sound component in my routine and a loop around it. I have a csv-file with different names of sound files that I would like to play in the different repetitions of the loop. I know how to do this with images ($VARIABLENAME and then upload csv file with column VARIABLENAME), but with the sound element, the “set every repeat” options is greyed out. And even if I set the start time to, for instance, 1s this doesn’t change (it’s still grey). I work with Psychopy version 2025.1.1.
Hi! I am currently experiencing the same issue. Just to clarify, do you mean that PsychoPy is changing the audio file per trial as expected by setting up $VARIABLENAME even though the “set every repeat” option is still greyed out? Thanks for helping!
Sound components can only be either “set every repeat” or “set during static period”. They can’t be set during Begin Experiment (i.e. constant). If you don’t have a static period (an ISI) then set every repeat is the only option, so it’s greyed out to show you can’t change it.