Hi,
I am having a tough time to play sound in my online experiment.
I designed a simple experiment (a series of letters appear on screen for 1 second each and at the same time a tone is played) which is in PILOT mode. It is running fine offline in the Builder, but I have encountered a problem in Pavlovia:
-
If I use a Sound component to implement the tone, it is just played once at a random instant during the experiment, instead of being played every time a letter is shown on screen.
-
If I use a Code component to create the tone (which I read is best), I get the error ‘‘ReferenceError: sound is not defined’’ which I believe is due to a wrong automatic translation from Python to JS by the Code component.
I am using PychoPy3, PTB as audio backend and audio mode 3 (Agressive low latency).