Howdy, Stranger!

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

Supported by

[open] Stop Signal Task

edited November 2015 in OpenSesame

Hi, everyone.

I'm trying to use Open Sesame to make a Stop Signal Task, but I'm very new to this. I want a picture to be shown and then after a certain time, a sound to be played randomly in some trials, while the picture is still visible. My problem is that the sound plays in all the trials instead of playing randomly. Also, I have no idea how to define the sound variable so that it only plays in 25% trials.

Please help. :(

Thank you.

Comments

  • edited 1:43PM

    Hey Maryam,

    In general, I can only recommend you to check out some of the tutorials. They are a great way to get familiar with OpenSesame.

    There are different solutions for the issue you have. The most straightforward one (in my opinion) is almost entirely based on python scripting within an inline_script, but it's also feasible with some OpenSesame items. So, what you need is a loop with a sequence containing (at least) an inline_script, a sketchpad and a sampler item. For logging and such, you will need more of course.

    In the loop table you should have a variable sound_presence, which is True in one case, and False in three cases, that is, there won't be a sound on 75% of all trials. Next, you go to the inline_script and here you have to do two things. First, sample a random number that represents the time point, at which the sound is played, in case it is a sound - present trial. Second, you'll have to retrieve the name of your sound file from somewhere (there are various options, if you browse through the documentation and the forum, you should be able to find descriptions of how this works). Lastly, you have to store these variables, so that OpenSesame can use them in its items. You can do it, by saving them as var.sound_name = 'filename'. But again, checkout the documentation for details. Importantly, what you need to do to have a sound only on those 25% of all trials, is to set the duration of the sound to the random value you computed before, only if the current trial is a sound - present trial. If it is not, you'll set the duration to 0, e.g. var.sound_duration = 0.

    Finally, you have to add the image_name to the sketchpad item, so that it knows which image to present, and the sound duration to the sampler item, so that it knows for how long the sound should be played.

    That's the general idea. Like I said, you can do it in different ways, but with this description, you should be able to think of some tweaks that will make it work even better. So, check out the tutorials to see how to implement this idea. It really isn't too complicated, just give it a try.

    If you run into more issues, don't hesitate to ask here, though.

    Good luck,

    Eduard

    Buy Me A Coffee

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