random sounds during visual illusion
I am trying to randomly pick sounds from a file pool and play them at randomly picked time intervals while showing a visual illusion (which is implemented in a while-loop which flickers between two versions of the stimulus until a certain time passed).
I thought I could just use the sampler item, but ran into two problems:
1) all sounds are being played at the same time at the beginning of the instructions (implemented as sketchpad).
2) both, the self.sleep and the core.wait, functions that I tried to use to make the sounds play at random intervals also pause the visual stimulus, which makes it pretty much useless.
Is there maybe a way to create two windows (one for the visual and one for the sound) that are called at the same time?
I am very inexperienced in using openSesame, so hopefully one of you has an idea how to fix this!