Ending Trial at when audio file finishes


Author
Message
Connorrr
Connorrr
Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)
Group: Forum Members
Posts: 28, Visits: 164
Hi,

  I'm very new to inquisit and I'm struggling to figure out how to end a trial without a response or timeout.  Essentially I want to play an audio file with no possible responses then when it has finished display some text which will appear on screen until the participant presses the spacebar.

Is it possible to fix the end time of a trial to the end of an audio file?

Thanks
Connorrr
Connorrr
Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)
Group: Forum Members
Posts: 28, Visits: 164
Also these are quite long audio files so is there a way to make sure that the participants computer doesn't fall asleep?
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
You simply set up a <trial> with a short /timeout or /trialduration, while simultaneously setting the <sound> (for WAV) or <video> (for any other audio formats) element's /playthrough attribute to 'true'. You then /branch to another <trial> that displays your message and accepts the spacebar as response:

<block someblock>
/ trials = [1-2=soundtrial]
</block>

<trial soundtrial>
/ stimulusframes = [1=somesound]
/ validresponse = (0)
/ trialduration = 50
/ branch = [trial.messagetrial]
</trial>

<video somesound>
/ items = ("30seconds.mp3", "60seconds.mp3")
/ playthrough = true
</video>

<trial messagetrial>
/ stimulusframes = [1=sometext]
/ validresponse = (57)
</trial>

<text sometext>
/ items = ("Your message here")
</text>

The audio will be played to completion (regardless of how long it is). Then the sound trial will automatically end and bring up the message trial.

Edited 9 Years Ago by Dave
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search