| Reference | Downloads | Github

Repeating sound to test subject playback

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 = {};
if (_pj.in_es6("space", soundcheck_resp.keys)) {
    repeatsound.finished = true;

Hi! Below is a hunch and a question.

It plays once.
The file is .wav, I’ll try changing that.

1 Like