Millisecond Forums

Presenting images whilst playing audio file

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

By Sofia Azevedo - 5/10/2017

Hi guys,

I'd like to have participants viewing images whilst listening to an audio recording but would like for these images to be randomised but haven't had luck with my coding. Is this possible to do?

I've included my script below:

<picture Attachment>
/numitems = 5
/items = attachment
/position = (50,50)
/select = random
</picture>

<text fixation>
/ numitems = 1
/ items = ("+")
/ color = (255, 255, 255)
/ fontstyle = ("Arial", 60pt)
/ txbgcolor = (0, 0, 0)
/ position = (50, 50)
</text>

<item Blank>
/ 1 = "blank.jpg"
</item>

<sound Memory>
/items = ("ControlIntervention.wav")
/playthrough = true
</sound>

<trial Attach>
/trialcode = "Attach"
/stimulusframes = [1= fixation; 60 = attachment; 62=blank]
/response = noresponse
/posttrialpause = 500
</trial>

-----------

I tried the below, but it just looped the audio and only showed 1 of the images:

<trial Attach>
/trialcode = "Attach"
/stimulusframes = [1= fixation, Memory; 60 = attachment; 62=blank]
/response = noresponse
/posttrialpause = 500
</trial>

Any suggestions or assistance would be greatly appreciated!

By Dave - 5/10/2017

Sofia Azevedo - Wednesday, May 10, 2017
Hi guys,

I'd like to have participants viewing images whilst listening to an audio recording but would like for these images to be randomised but haven't had luck with my coding. Is this possible to do?

I've included my script below:

<picture Attachment>
/numitems = 5
/items = attachment
/position = (50,50)
/select = random
</picture>

<text fixation>
/ numitems = 1
/ items = ("+")
/ color = (255, 255, 255)
/ fontstyle = ("Arial", 60pt)
/ txbgcolor = (0, 0, 0)
/ position = (50, 50)
</text>

<item Blank>
/ 1 = "blank.jpg"
</item>

<sound Memory>
/items = ("ControlIntervention.wav")
/playthrough = true
</sound>

<trial Attach>
/trialcode = "Attach"
/stimulusframes = [1= fixation; 60 = attachment; 62=blank]
/response = noresponse
/posttrialpause = 500
</trial>

-----------

I tried the below, but it just looped the audio and only showed 1 of the images:

<trial Attach>
/trialcode = "Attach"
/stimulusframes = [1= fixation, Memory; 60 = attachment; 62=blank]
/response = noresponse
/posttrialpause = 500
</trial>

Any suggestions or assistance would be greatly appreciated!


You do something like this:

<block example>
/ bgstim = (memory)
/ trials = [1-5 = attach]
</block>

where the "memory" <sound> is played back during the <block> via /bgstim and <trial attach> displays your <picture> element. Set the <picture> element to random selection and run the trial as many times as the <picture> element has items (here: five times).