﻿<?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  » Sound with the error message in Stroop task</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 01 May 2026 08:35:41 GMT</lastBuildDate><ttl>20</ttl><item><title>Sound with the error message in Stroop task</title><link>https://forums.millisecond.com/Topic19608.aspx</link><description>Hi, &lt;br/&gt;I'm adapting the script for the color-word Stroop task for a study. One of the things I need to do is add a sound to the error message after wrong responses. &lt;br/&gt;In the existing script, an "X" flashes after wrong responses. The stimulus is written as a text item. How do I get a sound to play simultaneously with the "X"?&lt;br/&gt;&lt;br/&gt;Also, could I include several different error sounds with random selection to get an element of surprise with each error message? How? &lt;br/&gt;&lt;br/&gt;I'll be very grateful for any help you can offer to resolve this. &lt;br/&gt;&lt;br/&gt;Thanks, &lt;br/&gt;Freddie&lt;br/&gt;</description><pubDate>Wed, 31 Aug 2016 14:22:56 GMT</pubDate><dc:creator>dukanske</dc:creator></item><item><title>RE: Sound with the error message in Stroop task</title><link>https://forums.millisecond.com/Topic19629.aspx</link><description>That's awesome, thank you! &lt;br/&gt;</description><pubDate>Wed, 31 Aug 2016 14:22:56 GMT</pubDate><dc:creator>dukanske</dc:creator></item><item><title>RE: Sound with the error message in Stroop task</title><link>https://forums.millisecond.com/Topic19628.aspx</link><description>It doesn't matter where you insert the /branch. That would only matter if there were multiple /branch attributes in the &amp;lt;trial&amp;gt;: Then they are checked in the order given from top to bottom, with the first /branch that evaluates to 'true' being executed.&lt;br/&gt;&lt;br/&gt;&amp;lt;trial redcongruent&amp;gt; &lt;br/&gt;/ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;values.congruency = 1;&lt;br/&gt;]&lt;br/&gt;/ pretrialpause = 200&lt;br/&gt;/ stimulustimes = [1=redcongruent, redreminder, greenreminder, bluereminder, blackreminder]&lt;br/&gt;/ correctresponse = ("d")&lt;br/&gt;/ validresponse = ("d", "f", "j", "k")&lt;br/&gt;&lt;strong&gt;&lt;strike&gt;/ errormessage = true(x, 400)&lt;/strike&gt;&lt;/strong&gt;&lt;br/&gt;/ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;list.responses.insertitem(trial.redcongruent.correct, 1);&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;list.responses_congruent.insertitem(trial.redcongruent.correct, 1);&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (trial.redcongruent.correct) {&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;list.latencies.insertitem(trial.redcongruent.latency, 1);&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;list.latencies_congruent.insertitem(trial.redcongruent.latency, 1);&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br/&gt;]&lt;br/&gt;&lt;strong&gt;/ branch = [if (trial.redcongruent.error) trial.errorfeedback]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;			    							    &lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;trial errorfeedback&amp;gt;&lt;br/&gt;/ stimulusframes = [1=x, errorsound]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ trialduration = 400&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Wed, 31 Aug 2016 13:50:43 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Sound with the error message in Stroop task</title><link>https://forums.millisecond.com/Topic19627.aspx</link><description>&lt;br/&gt;Right, so the standard errormessage can only specify one stimulus. I guess I need to branch to a designated feedback trial as you suggest. However, after a few hours of fiddling around with this I can't seem to get it working. Where in the trial specification do I insert the /branch command, and how do I write the condition? The original trials are written as follows: &lt;br/&gt;&lt;br/&gt;&amp;lt;trial redcongruent&amp;gt; &lt;br/&gt;/ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;values.congruency = 1;&lt;br/&gt;]&lt;br/&gt;/ pretrialpause = 200&lt;br/&gt;/ stimulustimes = [1=redcongruent, redreminder, greenreminder, bluereminder, blackreminder]&lt;br/&gt;/ correctresponse = ("d")&lt;br/&gt;/ validresponse = ("d", "f", "j", "k")&lt;br/&gt;/ errormessage = true(x, 400)&lt;br/&gt;/ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;list.responses.insertitem(trial.redcongruent.correct, 1);&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;list.responses_congruent.insertitem(trial.redcongruent.correct, 1);&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (trial.redcongruent.correct) {&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;list.latencies.insertitem(trial.redcongruent.latency, 1);&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;list.latencies_congruent.insertitem(trial.redcongruent.latency, 1);&lt;br/&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;</description><pubDate>Wed, 31 Aug 2016 12:17:08 GMT</pubDate><dc:creator>dukanske</dc:creator></item><item><title>RE: Sound with the error message in Stroop task</title><link>https://forums.millisecond.com/Topic19613.aspx</link><description>You need to set up a &amp;lt;sound&amp;gt; element (if you're using WAV files) or a &amp;lt;video&amp;gt; element (if you are using some other audio format like MP3). That element can have multiple items. You then need to display it via the &amp;lt;trial&amp;gt;'s /responsemessage. One problem may be that a &amp;lt;trial&amp;gt; only may have a single /errormessage attribute (not multiple). You may thus have to /branch to a dedicated feedback trial instead of using /errormessage and/or /responsemessage. That feedback trial can display both the X &amp;lt;text&amp;gt; stimulus and the &amp;lt;sound&amp;gt;/&amp;lt;video&amp;gt; as any other trial would display any other stimuli.&lt;br/&gt;</description><pubDate>Tue, 30 Aug 2016 07:20:06 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>