URL of experiment:
Description of the problem:
The experiment presents auditory stimuli, so I need subjects to check they can hear it.
I set up a single routine inside a loop (named repeatsound) that plays the sound then accepts a keyboard response, such that Spacebar will terminate the loop while other keys continue it.
This works on my computer both off- and online, but on my supervisor’s the sound doesn’t repeat.
the components:
The Js is autogenerated:
var _pj;
function _pj_snippets(container) {
function in_es6(left, right) {
if (((right instanceof Array) || ((typeof right) === "string"))) {
return (right.indexOf(left) > (- 1));
} else {
if (((right instanceof Map) || (right instanceof Set) || (right instanceof WeakMap) || (right instanceof WeakSet))) {
return right.has(left);
} else {
return (left in right);
}
}
}
container["in_es6"] = in_es6;
return container;
}
_pj = {};
_pj_snippets(_pj);
if (_pj.in_es6("space", soundcheck_resp.keys)) {
repeatsound.finished = true;
}