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.