Play slide object after n-trials using inline
Becks
scruffybumblebee at gmail.com
Tue Jul 17 17:47:14 UTC 2012
Unfortunately the duration is dependant on participant response time,
otherwise that would have been a much simpler option. Thanks for pointing
me in the right direction David. Your help is much appreciated.
On Monday, 16 July 2012 15:46:48 UTC-4, McFarlane, David wrote:
> I think you need to use the Slide.Play method instead of Slide.Run --
> see that topic in the E-Basic Help facility.
>
> If your trials are not self-paced and all last for a known duration,
> then I have an alternative simple-minded idea. Make two noise files
> for the entire duration of the run, one with white noise for the
> first half and silence for the second, and the other
> vice-versa. Then just start the chosen white-noise file playing at
> the start of each run.
>
> For more technical details on using Slide, SoundOut, and SoundBuffer
> objects, try asking PST's trained staff at
> http://support.pstnet.com/e%2Dprime/support/login.asp -- they strive
> to respond to all requests in 24-48 hours, and this is pretty much
> their substitute for proper documentation, so make full use of it.
>
> -----
> David McFarlane
> E-Prime training
> online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx
> Twitter: @EPrimeMaster (twitter.com/EPrimeMaster)
>
>
> At 7/16/2012 02:41 PM Monday, Becks wrote:
> >Hi all,
> >
> ><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"
> />
> >
> >I currently have 3 different eprime paradigms which play tones for
> >use with EEG recording equipment, all of which function perfectly.
> >However, I have just been asked to add continuous background white
> >noise to each one, to last for half of each paradigm.
> >
> >
> >
> >I can't simply play a slide with a soundout object (whitenoise) and
> >set the properties to "stop after = no" and the "stop offset" to a
> >value that would stop the soundout object after half of the
> >particular paradigm I am running, as the white noise needs to be
> >counterbalanced across participants for first half of paradigm white
> >noise/ second half of paradigm white noise.
> >
> >
> >
> >For the white noise during second half of paradigm condition, I am
> >therefore trying to play an unreferenced slide with white noise
> >soundout object after n-trials. I am able to count the trials using
> >the following inline:
> >
> >
> >
> >Dim g_nTotalTrial as Integer 'in user tab
> >
> >
> >
> >g_nTotalTrial = 0 'top level inline
> >
> >
> >
> >g_nTotalTrial = g_nTotalTrial+1 'inline at start of trialproc
> >
> >
> >
> >
> >
> >And I am able to play an unreferenced slide (called whitenoise)
> >using the following inline:
> >
> >
> >
> >whitenoise.run
> >
> >
> >
> >I am struggling to link the two together, to play the slide after
> >n-trials. I have tried using the following inline with no success:
> >
> >
> >
> >c.SetAttrib "TrialCount", g_nTotalTrial
> >
> >
> >
> >If TrialCount = 6 Then whitenoise.run
> >
> >
> >
> >
> >
> >I would be incredibly grateful if anyone can point me to any
> >relevant literature or forum posts that I have missed, as I have
> >scoured the user manuals and internet with no success. Or, if this
> >is not as simple a problem as I suspect, does anyone have any ideas
> >about how to get around it?
> >
> >
> >
> >Many thanks for any help you can offer.
>
>
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/tJbTmaJ-Ai0J.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20120717/6bd353e8/attachment.htm>
More information about the Eprime
mailing list