Hi all,
I am creating an oddball task, in which our subjects much press a button when the auditory stimulus that is not like the others is played. I am very new to coding and am hoping that these problems can be solved mostly using the builder.
I currently have two conditions files (“standard_conditions.csv” containing stimuli files A, B, C, and D and “oddball_conditions.csv” containing stimuli files A2, B2, C2, and D2). For my stimulus presentation, I need it to do the following in a loop:
- Arrange the 4 possible standard stimuli (from “standard_conditions.csv”) into an 8-stimuli-long presentation where each of the 4 stimuli appears 2 times each (i.e. A-B-B-D-C-A-C-D; store this sequence, as we do not need to play it yet)
- Then, randomly select ONE of these 8 stimuli and REPLACE it with an altered version of it from the 4 choices in oddball_conditions.csv. (For example, I would need to replace one stimulus called “A” with “A2” or “B” with “B2” but I cannot replace “A” with “B2.”)
- Play this 8-stimuli-long sequence 100 times with each iteration being a new randomization made from the above steps.
Also, if there is a better way to structure my conditions files that will make this easier to do, that solution would be appreciated as well!
OS X El Capitan
PsychoPy version: v1.85.2