Hi everyone. I am trying to make a simple experiment here that just plays some audio with text on the screen. Then after the audio finishes, it goes to a “press space for the next segment” screen.
I get the error listed in the title even though currently there is almost nothing in the file. I tried it with one that has 10 frames and got that error, decided to start from scratch because I couldn’t figure out why there was an error. I added an instructions frame and the first audio clip frame and the error was still there.
Did you know that .ogg sound files don’t work online? You need to either use ogg locally and mp3 online or use wav, which is second best for both locations.
I did not know that. However, I still received that error removing the second frame which contained the ogg. Does just having the ogg in the synced folder cause a problem, even if it is not in the psychopy file?
The issue might be that you have this one loop with “is trials” disabled, suggesting that you don’t want the data to be saved for each iteration, and yet there is no preceding loop. Try ticking is trials (or removing the loop).
I am having the same error message when piloting a study that has no loops and just text and images. using the developer tools I can also see that I’m getting an error on the same line:
if (currentLoop instanceof MultiStairHandler) { currentLoop.addResponse(SAM_1_instructions_key.corr, level)
Hello! I had exactly the same problem, added a loop around the entire experiment but that didn’t work… Still getting “Reference Error: currentLoop is not defined”.
Hey everyone, I am having the same issue and I have tried the steps here and no luck. Any other ideas? The error is in this code:
async function updateInfo() {
currentLoop = psychoJS.experiment; // right now there are no loops
expInfo[‘date’] = util.MonotonicClock.getDateStr(); // add a simple timestamp
expInfo[‘expName’] = expName;
expInfo[‘psychopyVersion’] = ‘2022.2.5’;
expInfo[‘OS’] = window.navigator.platform;