Howdy, Stranger!

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

Supported by

Audios as Stimuli in IAT

Hey Guys, I'm very new to OS and try to implement an IAT that (atm) uses only audio files as stimuli. As my skills in OS still are very rudimentary, I'm currently struggling a lot with the implementation of audio files as stimuli. For the basic IAT structure, I use this template: OSF | An IAT Template for OpenSesame Wiki. As far as I know, audios are to include via a sampler item. And from this discussion post (Using audio stimuli for IAT on Open Sesame — Forum (cogsci.nl)) I take that the reference to my audios via the sampler could work by manipulating the filepath to be smth. like "__pool__/[sound].wav". Yet, I still am pretty lost on how to really implement this.

In the experiment structure, adapted from the template, I have a sketchpad ("first_chance_stim") via which the (usually visual) stimuli are presented to participants. I'd like my adaption to work a same way, meaning that participants can see the typical sketchpad interface, showing the categories and related key-symbols, but playing the audio stimuli (provided by the sampler- I guess).

Also, what would be important is that the count of reaction time per stimuli starts only after the audio has been played. Though that might be a bit much to ask here, without providing the inline code used to start and calculate the reaction time.

Thanks in advance for your help!

Comments

  • Hi,

    Could you share your experiment, I am not sure I am entirely following.

    You are right, sound is being played with the sampler . To specify the file that you want to be played, you just put the file name in the field soundfile (without the __pool__), or [sound].wav if you have a variable defined that is sound (note, whatever is stored in sound will be concatenated with .wav and that is then used as file name. So if in your loop table you have a column sound and one of the entries is cow , then your sampler would read [sound].wav which evaluated to cow.wav Now you need to make sure that you have that file in the file pool and you are set.

    Also, what would be important is that the count of reaction time per stimuli starts only after the audio has been played

    If you set the field duration to sound the experiment will halt on that sound until after it has played. If you then add a keyboard response to the sequence, response collection will only start after the sound is over.

    Hope this helps,

    Eduard

    Buy Me A Coffee

  • Hey, thanks for your response.

    I'll append my experiment to this comment. Yet how i try to access the stimuli is by creating a list of variables via inline python (mainly in the prepare_stimuli item) and then try to access the stimuli names in the sampler (audio_shuffle)...It is totally possible that thats completely wrong tbh. :D. As described above yet I only try to adapt the IAT template from OSF to work on audios (and shrunked).


  • Hi,

    The script is a bit too messy to really understand what is going on without more detail. What is definitely wrong is the input field to the sampler. As I said in my first post, you don't just put the variable name in their, but [sound_name].wav to make the sampler look for this file in the file pool.

    Also there is a syntax error in the run_if field in one of the loops. Probably there is more wrong, but going through the experiment line by line is quite a time investment that I can't do at the moment. For these kinds of help requests, it makes our life much easier, if you simplify the experiment as much as possible, such that all the unnecessary bits (unrelated to the problem) are not in the way. Usually this also helps you in better understanding the problem.

    Re-using an experiment that you find online is always tempting and can be quite useful, however, I wouldn't recommend jus using, as you have a harder time understanding what is going on and have to trust the creator blindly that the implementation works. I would rather use is as a source of inspiration when setting up the experiment by myself. Just my 2cents.

    Eduard

    Buy Me A Coffee

  • Hi,

    Would you be able to do this via a .csv file? I am doing the same kind of experiment, but I have created a .csv file and I am getting the error message that my sound is not recognized. I am first opening an Excel file and saving it as a .csv file with the first column having "foldername/audiofilename.ogg". Then, I put the .csv as a file into the Loop and Sampler within the loop. However, it says that it does not recognize the string "foldername/audiofilename.ogg". I even tried pasting the entire file path. The experiment is saved in the same place as the folder with all the audio stimuli. Here's a video of my process. Please help!!


  • Hi,

    better share your experiment, and not the video. Then, I can also try it out and maybe find out what is the problem. In any case, please just make a minimal example, maybe with only a single audio file, and with as few items as possible while still preserving the behavior you need help with.

    Eduard

    Buy Me A Coffee

  • @eduard

    Hi,

    I'm using the same template as lt_kn_char. Additionally, I have added a questionnaire sequence to the IAT sequence. It all works great and all variables are saved in a csv.file. The questionnaire data is stored in long fomat, but the IAT data is stored in wide format, so the data preparation for subsequent analysis is very circumstantial. My question now is if there is a way to save the data of the IAT maybe via a python code in an inline script item also directly in long format. If you have any idea, I would be very pleased.

    Best,

    Sabrina

  • Hi Sabrina,

    Can you share your experiment. What you describe should be possible. How exactly depends a bit on the data format.

    Eduard

    Buy Me A Coffee

  • @eduard

    Hi,

    thanks for looking at my experiment. I have modified the template so that from a pool of six IATs, two are randomly displayed to the subjects. Further, I have also attached a questionnaire.

    I have two more concerns. Currently the background of the experiment is black and the foreground is white. I know that the color is changeable via var.background = 'white' and var.foreground = 'black', so I tried to change the colors in the inline script items of the questionnaire sequence. But the colors for the whole experiment are set via this command. Is it possible to set the colors for the sequences separately?

    And my last question is about the two inline script items called ego and nfc in the IAT_sequence. I wanted to query these two questions between the two IATs using the run if statement [iteration] = 1, which didn't work. Also the attempt with the variable first_condition did not work. I have no idea what I am doing wrong here.

    Thanks in advance for your help.

    Sabrina

  • Hi Sabrina,

    messy log files

    Not much to do about it. You have three options (ordered according to required work and my recommendation):

    1) Split the experiment into IAT experimental bits (where you get the long format per default), and the questionnaire parts (where long format doesn't really make sense).

    2) Don't change anything, and sort things out during post-processing (after data collection)

    3) Build your own custom logger for one part of the experiment (the IAT probably). So that you essentially have to parallel loggers and can control which information goes where.

    wanted to query these two questions between the two IATs using the run if statement [iteration] = 1, which didn't work.

    Maybe I am missing something, but in your file you put

    [iteration] = 1 and [iteration] != 1

    Because the two conditions are opposites, the combined expression is never true, so it is not so surprising that the inline-script is skipped. Try only:

    [iteration] = 1

    Currently the background of the experiment is black and the foreground is white.

    Well, yes and no. A form (which is what your questionnaires is built with), is always using the background/foreground settings of the experiment, and is not customizable with that regard. So, you can only change the color for the entire experiment. For all other items (sketchpads and canvases in inline scripts), you can change colors, so you could change the back/foregroundcolors globally ) so that your form is correct), but then adapt them individually for all the sketchpads that you have. It is a bit tedious, but should do the trick.

    side note

    all these expressions,

    var.set("left_cat",cat2name)

    can simply be written as:

    var.left_cat = cat2name


    Hope this helps,

    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