I have a conditions file that contains 8 stimuli: 7 standard auditory stimuli (which the subject is not to respond to) and 1 deviant/target auditory stimuli (which the subject should respond to with a button press). I would like to randomize the presentation of these 8 stimuli within a trial BUT the deviant/target stimuli must not appear in positions 1,2, or 8.
For example, presentation of stimuli in three consecutive trials could be as follows (where S is “standard” and D is “deviant”):
Trial 1: S S D S S S S S
Trial 2: S S S S S S D S
Trial 3: S S S S S D S S
Alternatively, the following patterns would NOT be allowed:
D S S S S S S S
S D S S S S S S
S S S S S S S D
The only thing I can think of is to create conditions files that already specify the order of presentation with these parameters met. Which is to say that I would randomize the list of stimuli within a VERY LONG Excel file and then use PsychoPy to play it straight through…however, I would need to do this for over 800 trials, so I am hoping there is an easier way to approach this.
OS X El Capitan
PsychoPy version: v1.85.2