Hi, everyone! I’ve got this problem and it’s complicated to explain so I’m gonna try to give details of what we’re trying to do with the experiment. We’ve got two experiments with two stimulus and a right/wrong button to say if the stimulus are equal, and tapping any of these buttons makes a “check” sound. Before the experiment though, we have to make a training with the same right/wrong buttons but on the training the sound gives some feedback whether the answer was correct or not (there is a right/wrong sound).
We decided to implement a hidden response button just in case the participants get stuck and don’t want or don’t know what to answer (a small square the same colour of the background at the top right of the screen), so we can press it and, of course, this button should give no feedback at all. Now, this button works perfectly alright on the two experiments, but on the training, it works really weird. If I try to press it from the beginning it fails on the second routine. If I start pressing one of the right/wrong buttons on the first routine, I can press the hidden button until the end of the training but it will give the sound of the first routine, whether I answered right or wrong.
This is the feedback sound code:
soundfile = [‘files/sound_correct.wav’, ‘files/sound_wrong.wav’]
resultats = open(‘training_resultats(’ + expInfo[‘participant’] + ‘).txt’, ‘w’)
sound = soundfile
resultats.write('1 correct ’ + str(clock.getTime() - 3) + ‘\n’)
sound = soundfile
resultats.write('1 wrong ’ + str(clock.getTime() - 3) + ‘\n’)
sound = None
resultats.write('1 blank ’ + str(clock.getTime() - 3) + ‘\n’)
The correct.contains(mouse) is necessary to avoid the double tap (and make it a single tap) on a touchable screen, but before the hidden button, the training worked perfectly so far.
I’m sorry for the big text, but I think it’s the last thing we have to do to make it work… And it’s quite weird. If you need some information, I’ll give it.