Onset delay for playing audio on a slide

3,857 views
Skip to first unread message

JACanterbury

unread,
Aug 23, 2012, 12:48:44 PM8/23/12
to e-p...@googlegroups.com
This must be straightforward but I can't see how to do it.

E-prime v2 : I have a slide with video and audio sub objects on it and I want the video to start immediatley (which it does by default) but I want to delay the time at which the audio starts playing and I can't see how to do this.

Can anyone help?

(the 'StartOffset' property does something different)

Many thanks,

John

David McFarlane

unread,
Aug 23, 2012, 1:42:34 PM8/23/12
to e-p...@googlegroups.com
John,

This sort of question keeps popping up. People get the mistaken
impression that each sub-object on a Slide should have its own timing
properties. But a Slide, by design, always presents all of its
sub-objects simultaneously.

To present stimuli with various delay offsets, simply present the
first stimulus with a Duration equal to the desired delay, and then
present the next stimulus. In your case, present the Slide with your
video, but no audio. Set the Duration of the Slide to your desired
delay. Then simply follow the Slide with an ordinary SoundOut object
for your audio.

Hope that helps.

-----
David McFarlane
E-Prime training
online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (twitter.com/EPrimeMaster)

JACanterbury

unread,
Aug 24, 2012, 6:41:26 AM8/24/12
to e-p...@googlegroups.com
Thanks for the reply David however, if I've understood your suggestion correctly, all this will do is play the video and audio files sequentially (pausing the video early after the 'duration' has elapsed).
 
My reason for wanting to delay the start of the audio playing was so that it would run at the same time as the video but the video segment is longer and I didn't want the audio to start straight away but to be delayed a short while ~2 seconds.
 
I have a lot of audio/video files and don't want to edit the audio files to insert a blank gap at the beginning of each.
 
If anyone has any other suggestions, I'd welcome them. Equally, if I come up with a workaround I'll post back,
 
Thanks,
 
John

David McFarlane

unread,
Aug 24, 2012, 9:39:20 AM8/24/12
to e-p...@googlegroups.com
John,

Um, yes. Starting an audio file with some delay after starting a
video equates to starting playback of the two files
sequentially. You are merely stymied by seeing your video stop when
the sound file starts. My guess is that you do not know about the
Stop After property of MovieDisplay and SlideMovie objects. This is
set to Yes by default. Try setting it to No and then do as I
suggested earlier, and see how that works for you. I cover all this
in my online E-Prime course.

-- David McFarlane
><http://psychology.msu.edu/Workshops_Courses/eprime.aspx>http://psychology.msu.edu/Workshops_Courses/eprime.aspx
>
>Twitter: @EPrimeMaster
>(<http://twitter.com/EPrimeMaster>twitter.com/EPrimeMaster)

JACanterbury

unread,
Aug 24, 2012, 12:10:18 PM8/24/12
to e-p...@googlegroups.com
Thank you David - I've got it working following your suggestions.

Although it's straightforward in principle, a few of the settings are crucial so for the records here's what I did to play video and sound simultaneously (ie overlapping) but with them not starting at the same time (in my case starting the audio after the video has starting):

- setup a SLIDE with video sub object on it to play your video
  - set the duration of the SLIDE to be the time delay you want until your video starts (ie NOT 'infinite')
  - set the properties for the Movie object as follows:
      - 'End movie action' : Terminate
      - 'Stop after' : No   [this means the video keeps playing after the slide finishes] (default is yes)
 - AFTER the slide, insert a SoundOut object on its own onto the Session Proc timeline and set this to be the sound commentary you want to accompany the video
     - set the 'Duration' to 'infinite'
     -on the general tab, set the 'End Sound Action' to 'None'

Notes: in this situation, if the audio finishes first, then the video keeps playing to the end but if the video finishes first, then the audio is truncated.

Mihai Carnuta

unread,
Feb 18, 2014, 12:10:33 PM2/18/14
to e-p...@googlegroups.com
Hello,

Can you please tell me how to adopt this strategy for pictures and sounds? I need to present pictures in a random order (6 seconds each) and a brief sound (50 ms) should play between the 2nd and 4th seonds during the picture display. I created a slide, but the sound always plays at the onset of the pictures.

(I saw Mr. McFarlane's post about the frequency of this type of question and I tried to find an answer on the internet, but failed.)

Thank you very much!

Mihai

Cognitology

unread,
Feb 27, 2014, 9:54:10 AM2/27/14
to e-p...@googlegroups.com

Hi Mihai,

Am I late and has this been responded to? There are myriad options to get this sorted, from the top of my head:

·         Make the sounds to start at time … ms by just adding milliseconds of silence to the audio files (I used cooledit in the past for this sort of thing – it’s now called adobe audition and I believe there’s a free trial)

·         You could show the same slide at a very fast interval (say 60 Hz) without the subject noticing (i.e. it just refreshes the slide).

·         So, with the above point, do notice, the fact that you want to show each picture 6 s doesn’t mean that you need to have the duration at 6 s. That means you might as well show a picture for 2 ms, have a wait object and play the sound at time point x.

Hope that helps.

Best,

Michiel

--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/f32f8a9e-aa92-430f-bc5e-79a7660bafab%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages