Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[open] Recording keyboard responses during and after an audio stimulus

edited April 2014 in OpenSesame

Hello all,

I apologize in advance if this has been brought up before, but would really appreciate if anyone could help with this!

I am running 2 perception tasks on my subjects: A) a forced-choice task, and B) an AXB discrimination task. The subjects are asked to make keyboard responses to indicate their judgement of the sound file played.

So for every trial in task A, an audio file will be played for approximately 1000ms, and 5000ms will be allowed for them to make any response (the keyboard response has a timeout of 5000ms). However, both the keyboard response and the response time will not be recorded if the subject hit the keyboard before the whole sound file is played (meaning that those are recorded only after the 1000ms audio file is done). This is not what I want. I want the onset of the stimulus to be the same as the onset of the keyboard response, so that responses will be collected even if the subject press the button before the sound file is done.

And for each and every trial in task B, I am having the subjects make keypress responses to say whether the second (X) is more similar to the first (A) or to the third (B), and they have a timeout of 5000ms. 3 stimuli with a duration of 1000ms each (A, X, & B) will be played in sequence with a 1000ms inter-stimulus interval, so the sum of the 3 stimuli plus the inter-stimulus intervals is 5000ms. Same as what happens in task A, the keyboard response and the response time will be recorded only after all the 3 sound files are played (after 5000ms from the onset of the trial). However, I want to collect both the keyboard response and the response time from the start of the trial.

I was wondering if there is any way to have the keyboard responses recorded even before the sound files are done (for example, like in the middle of the soundfile). Thanks in advance, any help will be appreciated!

Thank you,
Rachel

Comments

  • edited 10:41AM

    Hi Rachel,

    I was wondering if there is any way to have the keyboard responses recorded even before the sound files are done

    If you set the duration of the sampler item to 0, the sound will play in the background, and the experiment will advance right away to the next item. See also:

    Does that solve the issue?

    Cheers,
    Sebastian

  • edited April 2014

    Hi Sebastian,

    Thank you so much for the prompt response!
    It worked perfectly for my task A, but couldn't fix the problem I have in task B.

    So here is what my sequence looks like in task B:

    image

    I guess those Advanced_Delay items I have there blocked the 0-duration trick, so that didn't work quite well within this sequence. Is there any other way to fix this?

    Once again, thank you so much!

    Rachel

  • edited 10:41AM

    Hi Rachel,

    Your sequence looks fine to me, although the advanced_delay could be replaced by a duration in the sampler items. But that doesn't really matter.

    Is the problem that you want participants to be able to respond as soon as A starts playing? That is possible, although it would be slightly more tricky. But wouldn't it be better to have participants withhold their response until they have heard all sounds, given that they have to do similarity judgment?

    Cheers,
    Sebastiaan

  • edited April 2014

    Because I am worried that responses could not be registered if the subjects accidentally hit the keyboard without waiting for all the 3 sounds being played. It happens to me that sometimes subjects forget about what they were told to do when they are too concentrated on listening to the stimuli, and I want to avoid this unexpected events from happening.

    I am also hypothesizing that subjects could make a judgement as soon as the 2nd item is done if it is the 1st sound that is more similar to the 2nd sound, or they could identify the 3rd sound to be more similar to the 2nd one before the end of the 3rd sound.

    Because of the two reasons mentioned, I want the keyboard response function to run as soon as the onset of the 1st sound. I hope this makes sense!

    Thank you once again for the response!

    Best,
    Rachel

  • edited 10:41AM

    Hi Rachel,

    There are a few ways to do this. One way would be to create an inline_script that alternately plays sounds and polls for responses. There a few examples of how to do this here on the forum, although they generally concern visual stimuli (but the idea is the same). For example:

    A similar problem is also tackled in a workshop tutorial:

    However, this is quite a script-heavy approach. Perhaps you could first try whether you cannot simply use the parallel plug-in. Basically, you would split sequence1 into two different sequences, one of which does the sound playback, and the other one does the rest. Then you use a parallel item to run these two sequences in parallel. That would look something like this:

    image

    A word of caution: The parallel plug-in is known to crash or freeze on certain systems. If this happens for you then we need to find another solution, probably using an inline_script. But if it works smoothly then using the parallel plug-in is by far the easiest solution.

    Cheers!
    Sebastiaan

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games