Setting variable sound duration not working online

URL of experiment:

Description of the problem: I’m trying to set the duration of a pure tone stimulus (refTone.wav) according to a variable (dur) that changes in each loop. The variable is defined in custom code. It all works fine locally, but on Pavlovia, the tone duration is not adjusted (though dur is correctly calculated). Instead, the original full-duration tone is played, and the program gets stuck in the loop without crashing. Would be grateful for any pointers.

Hi Patrick,

Sorry for this; we’re aware of the issue and we’re working on a solution. Might take a little while before it’s pushed onto Pavlovia though. To track the progress, see this GitHub issue:

Best, Thomas