audio feedback for mouse click
Becky Clements
cobwebfaery at gmail.com
Wed Aug 3 13:29:56 UTC 2011
Hi Paul,
The experiment is a bit convoluted due to there being many contingency
elements during the practice phase of each of the tasks. I am working
on tidying it up but as a novice getting it to work is my current
priority as I learn more I hope I will be able to streamline things.
One thing I forgot to mention in my initial post which is probably
quite important is that each of the slides has a unique audio file
that is either instructions or feedback to the participant it is in
addition to these audio files, which must be there, that I need there
to be a beep when participants touch the screen. I was wondering if
you knew anyway of having in the user script, which would cover all of
the task with in the experiment I am designing, code to have a 'beep'
when participants make a mouse response. Thanks for helping.
Cheers,
Becky
On Aug 3, 6:30 am, Paul Groot <pfc.gr... at gmail.com> wrote:
> Hi Becky,
>
> If the mouse responses are collected by the slide objects, this might
> be a non-trivial task to do with a single piece of script. The most
> straigtforward construction would be something like this:
>
> if Len(Slide1.RESP)>0
> Set SoundOut1SoundBuffer = SoundOut1.Buffers(1)
> SoundOut1.Run
> end
>
> But if you do it like this, you will have to create a new inline
> script for each unique Slide because the Slide-variable will be
> different each time. Even if the audio clip ittself doesn't change.
>
> As a workaround you could place the SoundOut object immediately after
> the slides and collect the response with the SoundOut object itself.
> The slide should not collect the responses in this case and have a
> duration of zero. This would only be acceptable if RT's are not
> critical and all response windows have the same duration. (Sidenote:
> RT's on touch screens are not very accurate anyway.) Also, if there
> are several 'clickable' slides on a single procedure, things become
> more complicated if you wan't to log all responses. NB. Having lots of
> copies of similar slides within the same experiment is (in most cases)
> an indication of a less-optimal (already messy) script.
>
> cheers
> Paul
>
> 2011/8/3 Becky Clements <cobwebfa... at gmail.com>:
>
>
>
>
>
>
>
> > Hi All,
>
> > I am in the process of designing an experiment that will be run on a
> > touch screen tablet. I want an short audio file to play when
> > participants touch the screen. I know I am able to use the feedback
> > slide to do this but there are 10+ tasks each with many many slides
> > which would need feedback and as such it would be a very messy way of
> > doing it. I am on the hunt for a neater way. I am a coding novice but
> > have been programming conditional statements and hittests as part of
> > the experiment and was wondering if there was a bit of code I can use
> > that will play an audio clip if the mouse response > 0? I have been
> > playing around with trying to this but I am not sure if there are
> > things I need to define before I can do something like:
>
> > If mouse.RESP > "0" Then
>
> > AudioFile.Play
>
> > All and any help would be much appreciated.
>
> > Cheers,
>
> > Becky
>
> > --
> > 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 athttp://groups.google.com/group/e-prime?hl=en.
--
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