Millisecond Forums

how to present audio and n-back task simultaneously ?

https://forums.millisecond.com/Topic21431.aspx

By MashaRiriya - 4/25/2017

Hey there.
I need your help ...
I would like to present 2 audio files (self-recorded sentences) together with an n-back task
simultaneously.

The N-Back task is already encoded and works. But I can’t manage to encode the audio files so that they can be heard parallel to the N-back task.

So how do I have to encode the individual layers?
Thx very much for the help.



Code for the n-back task with Inquisit 4:

<picture grid1>
/ items = ("m.png")
/ position = (50,50)
</picture>

…until…

<picture grid9>
/ items = ("u.r..png")
/ position = (50,50)
</picture>

<trial  0_1>
/ stimulustimes = [1=grid1]
/ timeout = (1000)
</trial>

…until…

<trial  0_9>
/ stimulustimes = [1=grid9]
/ timeout = (1000)
/ validresponse = ("  ")
</trial>

<block nback>
/ trials = [1=0_1;2=0_2;3=0_3;4=0_4;5=0_5;6=0_6;7=0_7;8=0_8;9=0_9]
</block>

By Dave - 4/25/2017

MashaRiriya - Wednesday, April 26, 2017
Hey there.
I need your help ...
I would like to present 2 audio files (self-recorded sentences) together with an n-back task
simultaneously.

The N-Back task is already encoded and works. But I can’t manage to encode the audio files so that they can be heard parallel to the N-back task.

So how do I have to encode the individual layers?
Thx very much for the help.



Code for the n-back task with Inquisit 4:

<picture grid1>
/ items = ("m.png")
/ position = (50,50)
</picture>

…until…

<picture grid9>
/ items = ("u.r..png")
/ position = (50,50)
</picture>

<trial  0_1>
/ stimulustimes = [1=grid1]
/ timeout = (1000)
</trial>

…until…

<trial  0_9>
/ stimulustimes = [1=grid9]
/ timeout = (1000)
/ validresponse = ("  ")
</trial>

<block nback>
/ trials = [1=0_1;2=0_2;3=0_3;4=0_4;5=0_5;6=0_6;7=0_7;8=0_8;9=0_9]
</block>


To play back an audio file during a <block>, set up a <sound> (for WAV) or <video> element

<video backgroundsound>
/ items = ("audiofile.mp3")
...
</video>

and display it via the <block>'s /bgstim attribute

<block nback>
/ bgstim = (backgroundsound)
...
</block>