Howdy, Stranger!

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

Supported by

[solved] record keyboard response time while audio file is running

edited November 2014 in OpenSesame

Hi -
I'm running an experiment in which a subject is presented with an image (two items side by side) and at the same time they hear an audio file "Now press the button for the please" . The subject is then supposed to press either "1" if is the left image or "0" if it's the right image. I have the experiment up and running and all seems well except for logging the response_time_left_right_response. What I'm interested in logging is the time from the onset of the target word to the listener's keyboard response (0 or 1). I want the image to stay on screen and the audio to finish playing, so keyboard_response shouldn't affect that.

Below I've given the scripts for the main part of my experiment as well as some lines of the logger output.

As far as I can tell the logger is logging the response_left_right_response correctly, but the response_time (column 7, see below) is almost always 0, which is definitely incorrect. It's unclear to me what it is logging, documentation suggests: "interval in ms between start of response interval and the last response".

Basically what I need to know is how to get opensesame to log the keyboard_response_time in relation to the audio file start time. Any advise how best to do this? I'm running opensesame on a Mac.

correct_left_right_response count_experiment    count_trialsequence cr  picture response_left_right_response    response_time_left_right_response   sound   time_left_right_response
1   0   0   1   2broom-sun.bmp  1   10  carr_broom_3.wav    1785607
1   0   1   1   2peach-bed.bmp  1   0   carr_peach_2.wav    1789694
1   0   2   0   2pear-sun.bmp   0   0   carr_sun_2_um_chef_3.wav    1793874
1   0   3   1   2pear-church.bmp    1   0   carr_pear_2_um_chef_3.wav   1798029
1   0   4   0   2tree-swan.bmp  0   0   carr_swan_3.wav 1802035
1   0   5   0   2rake-foot.bmp  0   0   carr_foot_3_um_chef_3.wav   1805913
1   0   6   1   2fish-broom.bmp 1   0   carr_fish_3.wav 1809791

The order of the sequence (within a loop):

run fixation_dot "always"
run picture_pair "always"
run audio_files "always"
run left_right_response "always"
run logger "always"

script for picture_pair:

set duration "0"
set description "Displays stimuli"
draw image 0 0 "[picture]" scale=1 center=1 show_if="always"

script for audio_files

set volume "1"
set description "Plays a sound file in .wav or .ogg format"
set sample "[sound]"
set pitch "1"
set duration "sound"
set stop_after "0"
set pan "0"
set fade_in "0"

script for left_right_response:

set correct_response "[cr]"
set allowed_responses "1;0"
set description "Collects keyboard responses"
set timeout "infinite"
set flush "yes"

Thank you for your help! Mirjam

Comments

  • edited 10:31AM

    After further searching the answer was here:

    http://forum.cogsci.nl/index.php?p=/discussion/161/open-word-sampler-and-keyboard-response-timing/p1

    "The duration of the sampler/ synth is perhaps a bit counter-intuitive.

    There is also 'duration = 0' which means that the sampler/ synth will not block at all, and simply have the sound playing in the background. This means that the experiment advances right to the keyboard_response, and your problem should be solved."

    And this did solve it for me. Maybe this could be added to the documentation? It would have saved me quite some time.

    Thanks,
    Mirjam

  • edited 10:31AM

    Love the problems that sort themselves out. Thanks for letting us know!

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