Howdy, Stranger!

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

Supported by

Listening to keyboard response

Dear OpenSesame community,

It might be quite basic but I still can't figure it out myself (due to my limited programming abilities).

I want to run 2 canvases (one after another) and to play sound between them.
Now, I want the participants to be able to press the keyboard in any time, while if they press before the sound, the trial will be over. The second canvas (after the sound) must be shown to 2 seconds either way (regardless to pressing any key). Importantly, I would like to log the response time of the response and the key pressed identity (space, 'l' etc.) for any case.

I hope I'm somewhat clear enough. Can anyone help?

Thanks!

Comments

  • Hi,

    Your description is not entirely clear to me, but my first impression is that coroutines might be what you're looking for. Coroutines allow you to do multiple things, such as presenting stimuli and collecting key presses, in parallel.

    See also:

    Does that help at all?

    Cheers,
    Sebastiaan

  • Hi,

    We'll need some more information.

    Firstly, what do the participants respond to? What is their task? What is the purpose of Sketchpad 1, of the sound, and of Sketchpad 2?

    I want the participants to be able to press the keyboard in any time, while if they press before the sound, the trial will be over.

    • If participants do not press a key before the sound, what should be the timeout of the first sketchpad? For example, should the experiment advance to the sound when the first sketchpad has been shown for 2 seconds without a response?
    • Does "the trial will be over" mean that neither the sound nor the second sketcphad should be shown?

    The second canvas (after the sound) must be shown to 2 seconds either way (regardless to pressing any key)

    • Should any response be collected during the second sketchpad? If so, what is the participant responding to here? The same thing as during Sketchpad 1, or does Sketchpad 2 require a new response?

    Cheers,

    Lotje

  • Dear Lotje and Sebastiaan,

    Thank you so much for your comments! Please forgive me for not being fully clear.

    I'm working on sort of a go/no go task. in this specific case I'm working on the No-go trials.

    I'm presenting a letter (for 100 msec) and then play a no-go tone (and the letter is still on the screen after the tone, that's the second sketchpad). if the participant is very quick and responds to the letter before the tone (even mistakenly), then the trial must be over and the next trial must begin (no tone or second sketchpad will be presented). if the participant responds after the tone, then he must wait for a 2000 msec for the trial to be over. Either way the responses keys are the same along the trial.

    I tried to use the coroutines Sebastiaan kindly suggested. It seems like the right way to approach it but I'm not fully understands how the programming of this feature works...

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