Playing the incorrect-response sound immediately upon an incorrect response but without affecting the timing of the stimulus Slide does get a little tricky. I can think of several approaches, all use a bit of InLine code. In one approach you would terminate the stimulus Slide upon a response and use an If-Then to control the feedback sound. I think most ordinary users would naturally head toward this approach, and it seems suitable for this case. In another approach, the InLine code itself would wait for a response, and then continue as above. In yet another approach, we would also play the feedback sound directly within the InLine code instead of using a SoundOut object in the structure. And in yet another approach, using E-Prime 3 you might do this using Script Task Events.
Let's look at the first approach.
Procedure structure:
- TrialProc
--- StimSlide
--- RespCode
--- IncorrectSound
--- PostIncorrectLabel
StimSlide is the stimulus Slide, with some specified Duration. On its input mask, provide an appropriate entry for "Correct" and set End Action to "Terminate". In order to run some InLine code based on the response, set PreRelease to 0 (otherwise I would leave it at "(same as duration)" -- please see other threads for more discussion of this detail).
RespCode holds some InLine code, as follows:
If StimSlide.ACC Then Goto PostIncorrectLabel
This will skip past the feedback sound in the event of a correct response.
IncorrectSound plays the incorrect-response sound, unless RespCode skips past this. Set Duration to 0, Stop After to "No", and End Sound Action to "(none)".
PostIncorrectLabel is a Label object, to serve as a destination for the Goto back in RespCode.
-- David McFarlane
________________________________________
From: e-p...@googlegroups.com <e-p...@googlegroups.com> on behalf of Hasan Gündüz <hasangu...@gmail.com>
Sent: Friday, October 29, 2021 5:15 PM
To: E-Prime
Subject: How to add audio feedback just for wrong responses to an ongoing screen