Start/stop of the sound using code did not work for my purposes. I am trying to play the feedback sound from the previous trial at the beginning of the next trial, but only for the first 0.1 sec, without stopping the rest of the trial. When I did this in code it would not play consistently (it is a reaction time experiment), and when I tried to have a separate routine that played feedback with the stimulus onscreen it started dropping frames.
So ultimately I’ve concluded that there’s no way to choose between some kind of ISI and playing very short sounds consistently. I’ve therefore chosen to just have the ISI and only give feedback on some trials.
This seems like a pretty important missing feature in psychoJS that it’s impossible to play a simple tone for a specified duration without either a dedicated routine or a code component which may or may not be executed in a timely manner. But oh well, I have something that works well enough now.