[open] adding a delay to a trial and a repeat cycle
hi everyone,
i have quite a simple experiment where participants are shown a colour and a sound simultaneously, they then press the space bar and answer a question, this then loops for 24 different variables.
i want to know how to delay just the sound variable from the sampler but still run the colour variable from the sketchpad, and then also have an option to repeat the sound variable for each trial ( from a keyboard press) then once the participant is happy they can still press the space bar to continue,
thanks
Comments
Hi,
The easiest way to do this is simply to set a duration in the
sketchpad, for example 1000 ms. This will pause the experiment for 1000 ms before moving on to thesampler.That's a bit trickier, but what you could do is the following:
sampler(orsynthin my example) and thekeyboard_responseto their ownsequence, which is in its ownloop.[response] = space. This way the loop will end once the spacebar has been pressed.responsevariable toNonewith a shortinline_scriptbefore doing all this. Otherwise the variable may not exist or already have the valuespacewhen you enter the loop.Does this make sense? You'll have to tweak it a bit, but it shows the general idea.
You can see a working example here:
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!