URL of experiment: https://gitlab.pavlovia.org/ocingiler/psy329_dichoticlistening_oc
https://pavlovia.org/ocingiler/psy329_dichoticlistening_oc
You can pass first screens by pressing SPACE after waiting 5 seconds per screen and then pressing 1 for the auditory stimuli.
Description of the problem: I have a dichotic listening task that works on my computer in Python that I built in Builder. At the beginning of the task the participant is presented with a headphone check, which consists of sound stimuli and text stimuli and it works perfectly Participant starts the headphone check and presses 1,2 or 3 on the keyboard and finishes the check and then the Demo part of my experiment begins, where I want to present sound stimuli to participants and want them to press F or K based on the parity of the number they hear. The problem is, I can’t present the text and the sound in the same routine (Even in the routine afterwards), I can either present sound or text. When I try to present sound and text in the same routine I get Unspecified Javascript Error, I tried using images instead of text, I tried using text boxes, I tried even video, but none of them worked. Every time I try, I get the same error: Unspecified Javascript Error. Only thing that works is polygons, I can present polygons while playing sounds, but anything else breaks the experiment. The experiment file is “snarc_exp_With_Separated_Keyboard_Component_BAK”.
One can say that I have too many psyexp files in the folder and that’s why I can’t run the experiment. Yet, I tried recreating the experiment from scratch, and still when I try to present the sound files I have in a loop with a text, I get the same problem. The interesting thing is, the headphone check works perfectly, which basically does the same thing: Present sound files with text component.
By the way: I also tried changing units, it didn’t work. I tried setting text not as constant but as changing every repeat. I tried setting the units to height and making the texts height 1 -to not have decimal sizes-, which is non-sensical as it would fill the whole screen, and it didn’t work either. I tried changing sound files’ names from “F-1-B.wav” to “F_1_B.wav” to see if it was the problem with the minus sign instead of an underscore, but it also didn’t work. I tried deleting code component too, it was also ineffective. Also, if I recall correctly I had a problem with presenting text in the next routine in the loop, after showing sound with no text, it again gave Unspecified Javascript Error.
If anyone could help I would be more than grateful.
Thanks