We’re doing a exam project, where participants are presented with some math equations either as an image or audio file.
We want to make it possible for the participants to type in the answer using the keyboard (keeping the picture showing) but cannot figure out, how to do that.
We have this loop for presenting the stimuli:
for i in stimuli:
if i [-5]==“a”: #the name of our file has an s if it is audio
sound1 = sound.Sound(i)
elif i[-5] == “v”: #same but for pictures
img = visual.ImageStim(win, i)
Can someone help?
We’re using coder btw.