﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » Presenting images whilst playing audio file</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 17 Sep 2026 18:27:19 GMT</lastBuildDate><ttl>20</ttl><item><title>Presenting images whilst playing audio file</title><link>https://forums.millisecond.com/Topic21551.aspx</link><description>Hi guys,&lt;br/&gt;&lt;br/&gt;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?&lt;br/&gt;&lt;br/&gt;I've included my script below:&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Attachment&amp;gt;&lt;br/&gt;/numitems = 5&lt;br/&gt;/items = attachment&lt;br/&gt;/position = (50,50)&lt;br/&gt;/select = random&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixation&amp;gt;&lt;br/&gt;/ numitems = 1&lt;br/&gt;/ items = ("+")&lt;br/&gt;/ color = (255, 255, 255)&lt;br/&gt;/ fontstyle = ("Arial", 60pt)&lt;br/&gt;/ txbgcolor = (0, 0, 0)&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item Blank&amp;gt;&lt;br/&gt;/ 1 = "blank.jpg"  &lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound Memory&amp;gt;&lt;br/&gt;/items = ("ControlIntervention.wav")&lt;br/&gt;/playthrough = true&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Attach&amp;gt;&lt;br/&gt;/trialcode = "Attach"&lt;br/&gt;/stimulusframes = [1= fixation; 60 = attachment; 62=blank]&lt;br/&gt;/response = noresponse&lt;br/&gt;/posttrialpause = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;-----------&lt;br/&gt;&lt;br/&gt;I tried the below, but it just looped the audio and only showed 1 of the images:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Attach&amp;gt;&lt;br/&gt;/trialcode = "Attach"&lt;br/&gt;/stimulusframes = [1= fixation, Memory; 60 = attachment; 62=blank]&lt;br/&gt;/response = noresponse&lt;br/&gt;/posttrialpause = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Any suggestions or assistance would be greatly appreciated!&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 10 May 2017 19:31:04 GMT</pubDate><dc:creator>Sofia Azevedo</dc:creator></item><item><title>RE: Presenting images whilst playing audio file</title><link>https://forums.millisecond.com/Topic21555.aspx</link><description>&lt;div data-id="21551" class="if-quote-wrapper" unselectable="on" data-guid="1494469565963"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21551" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="21551" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="21551" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Sofia Azevedo - Wednesday, May 10, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21551"&gt;&lt;div class="if-quote-message-margin"&gt;Hi guys,&lt;br/&gt;&lt;br/&gt;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?&lt;br/&gt;&lt;br/&gt;I've included my script below:&lt;br/&gt;&lt;br/&gt;&amp;lt;picture Attachment&amp;gt;&lt;br/&gt;/numitems = 5&lt;br/&gt;/items = attachment&lt;br/&gt;/position = (50,50)&lt;br/&gt;/select = random&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixation&amp;gt;&lt;br/&gt;/ numitems = 1&lt;br/&gt;/ items = ("+")&lt;br/&gt;/ color = (255, 255, 255)&lt;br/&gt;/ fontstyle = ("Arial", 60pt)&lt;br/&gt;/ txbgcolor = (0, 0, 0)&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item Blank&amp;gt;&lt;br/&gt;/ 1 = "blank.jpg"  &lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;sound Memory&amp;gt;&lt;br/&gt;/items = ("ControlIntervention.wav")&lt;br/&gt;/playthrough = true&lt;br/&gt;&amp;lt;/sound&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Attach&amp;gt;&lt;br/&gt;/trialcode = "Attach"&lt;br/&gt;/stimulusframes = [1= fixation; 60 = attachment; 62=blank]&lt;br/&gt;/response = noresponse&lt;br/&gt;/posttrialpause = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;-----------&lt;br/&gt;&lt;br/&gt;I tried the below, but it just looped the audio and only showed 1 of the images:&lt;br/&gt;&lt;br/&gt;&amp;lt;trial Attach&amp;gt;&lt;br/&gt;/trialcode = "Attach"&lt;br/&gt;/stimulusframes = [1= fixation, Memory; 60 = attachment; 62=blank]&lt;br/&gt;/response = noresponse&lt;br/&gt;/posttrialpause = 500&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;Any suggestions or assistance would be greatly appreciated!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21551"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You do something like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;block example&amp;gt;&lt;br/&gt;/ bgstim = (memory)&lt;br/&gt;/ trials = [1-5 = attach]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;where the "memory" &amp;lt;sound&amp;gt; is played back during the &amp;lt;block&amp;gt; via /bgstim and &amp;lt;trial attach&amp;gt; displays your &amp;lt;picture&amp;gt; element. Set the &amp;lt;picture&amp;gt; element to random selection and run the trial as many times as the &amp;lt;picture&amp;gt; element has items (here: five times).&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 10 May 2017 19:31:04 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>