I’m trying to get familiar with pavlovia and creating a demo that uses sound component, but run into a frustrating bug.
The whole procedure of the demo should be like this: in each trial, a pure tone specified by code component is played with a corresponding picture shown, and the participant should press a key (‘up’/‘down’/‘right’/‘left’) as a response. After the response, it will enter the next trial.
Everything goes well when I run it offline in Builder, but a problem pops up when I try to play it on a browser (using Edge and Firefox). That is, only the tone in 1st trial goes well, but tones in later trials are either not played or replaced by a beep (much shorter than what the tones should be). I tried to specify conditions by xlsx file rather than code component, but the result wasn’t changed.
Later I also tried to fix the tone and corresponding picture as constant, then the problem is sorted, tones sound well. Consequently, I assume the problem may be related to the file-loading process, considering no further loading is needed if stimuli are fixed? Do anyone have idea to sort this problem? Any help would be appreciated!