tms pulse during video playing
David McFarlane
mcfarla9 at msu.edu
Tue Sep 15 18:34:33 UTC 2009
Well, I discovered I made a mistake in this reply, once again
illustrating that no one should take my word for anything! As it
turns out, E-Prime does have a mechanism for performing secondary
actions or script during sound playback, and perhaps even movie
playback. I was only thinking about what happens with a SoundOut
object or sub-object placed directly in the structure. But as
explained in the online E-Basic Help, you may do this with some
inline script. In particular, SoundOut.Play will begin
*asynchronous* sound playback, i.e., the sound file "begins playing
and then program execution continues with the next object in the
procedure." This would allow you to start your playback in script
and then go on to run more script to manage TMS pulses, etc. while
the sound continued to play. By contrast, SoundOut.Run (which is
what happens when you just use the SoundOut object in the structure)
begins *synchronous* sound playback, i.e., "Run does not return until
the execution of all of the object is done."
One would think that the new MovieDisplay object would have similar
properties and methods to the SoundOut object, but so far PST has not
provided any documentation. And we already know that MovieDisplay
lacks a Loop property, in contrast to the SoundOut object (see
http://support.pstnet.com/forum/Topic2772-12-1.aspx ), so I would not
make any bets.
Just wanted to correct the record, my apologies.
-- David McFarlane, Professional Faultfinder
At 5/18/2009 03:40 PM Monday, you wrote:
>Hmm, you bring up an interesting limitation of movie presentation in
>E-Prime. I also find the same limitation with sound
>presentation. As far as I can tell, E-Prime has no mechanism to
>perform secondary actions or script during the playback of sound or
>movie files. With a lower level language (e.g., C or C++) I would
>write a loop to keep refreshing the output buffer and checking the
>clock to perform other actions, but I do not know how to do that with
>E-Prime objects, or if that is even possible. I will be really
>interested if someone more clever than me can post a solution.
>
>-- David McFarlane, Professional Faultfinder
>
>
>At 5/12/2009 12:52 PM Tuesday, you wrote:
>
> >Hello everybody,
> >
> >I have some troubles with movies presentation: I'm trying to give a
> >TMS pulse during the presentation of a video (it lasts 2 seconds so
> >it's pretty short), at very precise timings, for example 767
> >milliseconds after the stimulus onset, while the video is still
> >ongoing.
> >
> >I already did a similar experiment using images: I sat the stimulus
> >duration time at 0, and it worked, but it doesn't with videos (the
> >program shows just the frame zero).
> >
> >What kind of InLine should I write?
> >
> >And, how can I determine the pre-release time with movies?
> >
> >Thank you all, I really need some help.
> >
> >Ilaria.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "E-Prime" group.
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
-~----------~----~----~----~------~----~------~--~---
More information about the Eprime
mailing list