Presenting images whilst playing audio file


Author
Message
Sofia Azevedo
Sofia Azevedo
Associate Member (120 reputation)Associate Member (120 reputation)Associate Member (120 reputation)Associate Member (120 reputation)Associate Member (120 reputation)Associate Member (120 reputation)Associate Member (120 reputation)Associate Member (120 reputation)Associate Member (120 reputation)
Group: Forum Members
Posts: 1, Visits: 4
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!


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
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).



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search