eduard
About
- Username
- eduard
- Joined
- Visits
- 1,402
- Last Active
- Roles
- Member, Moderator
Comments
-
almost: var.stim=list(...) not var.stim[i]=list(...)
-
You are right. The last line of the loop is not working. This time we need to replace var.stim with var.stim[i]. I hope this was the last bug....
-
Ah, my bad. I meant to say: Instead of var.stim =[] it should be var.stim = list(range(len(var.randomization))) Sorry
-
Instead of var.stim =[] it should be list(range(len(var.randomization))). I think we are not on the same page with respect to a trial definition. I thought a trial is the repetition of the sequence "Fixation-Blank-Circle", so in the code…
-
Hi Elodie, Sounds great. I don't think a much better delay than that is possible. Did you also check the delay in between each trial? Those are the most important timings, right? To be able to do that, you probably have to change the code to some e…
-
Hi Nadam, If the presentation time of your sketchpad is defined as stim_duration, you have to put [stim_duration] in the field duration of the sketchpad. Before that, you have to define which value stim_duration has on a given trial. If you want it…
-
You can do two things. First, you can put the file into the same folder as your experiment. Second, you can add the file to the file pool (see the documentation of Opensesame online, if you don't know how). I think, the first option will be enough, …
-
Hi Elodie, the inline_scripts replaces the entire loop. You can delete it, and just put the inline_script in between start and stop recording. Ok. The empty canvas is no problem. You just add it to the inline_script (see below). I'm not sure wheth…
-
Hi, As promised, here a piece of code to play a sound (example sound) from within an inline_script. import pygame# feedback sound initializationpygame.mixer.init()sound_path = 'sound.wav'soundF = pool[sound_path]sound = pygame.mixer.Sound(soundF)s…
-
Hi, (Quote) Not in another column, but in another row. So, if you repeated your 12 trials again, the proper times would appear in the following row (which is number 14). However, I don't understand why the time for the start recording item does not…
-
Hey, A little while ago, I had a similar error when I tried to run an older version of OpenSesame. If I remember correctly, it has to do with the version of PyQt that Opensesame is using and/or some dependencies PyQt is using itself. Not sure wheth…
-
Hi Elodie, I didn't expect that. Are there only NAs in the entire column of both start and stop recording? If they are outside the a sequenceit can happen that the start and stopping time are shifted down in the logfile (as the current value is onl…
-
Hi Ellen, Just to be clear, is this form in the dummy experiment the same as you use in your real experiment, or just the default form? Maybe you could share the code for this form, or even your experiment with us? Thanks, Eduard
-
Hi Asaf, What exactly is the problem or your question? Just describing your design is not enough to help us helping you. Well, I just take a guess here. Is it possible that your loop "Feedback_Screen" shows always, even if correct equals…
-
Hi Shruti, You can put your sequence into a loop that is repeated a very high number of time (often enough, so that you are sure the loop is never finished during on experimental session). Then, you can check the box Show advanced options in the lo…
-
Hi Grusha, If you use Opensesame 3.0, you can simply try print pool.files() in an inline_script to check whether a file is in the file pool. Hope this helps. Eduard
-
Thanks for this suggestions. In your case, what was the issue is that Opensesame interpreted 01_verb_0.wav as a variable, not as a string. So that it threw the error, because it could not find the variable anywhere. Once you changed it to "01..…
-
That was actually not what I suggested, but if it works, it works. Eduard
-
Hi Hanna, This sounds odd. I just tried the set up you are describing and it works as it should. How much longer does the image stay on screen after the sound stopped? Btw. you don't even have to specify the duration of the image to 5ms. If you s…
-
Hi Elodie, As far as I know, it is quite hard to get very accurate timing with the sound_recorder plugin. If the issue is related to that, I won't be able to help you. But as a first check, to make sure that at least your trial_loop is doing what …
-
Hi Russel, Unfortunately, they don't. However, it is not too hard to implement a gaze-contingent paradigm with some inline_scripting. What it basically boils down to, is that you repeatedly sample the current eye positions (exp.pygaze_eyetracker.sa…
-
Hi, I don't have the time to answer all your questions, so I hope it is okay, if I give you my opinion only on your last question. An explicit strategy like the one you show, is not available in Opensesame, in particular, keeping your task design …
-
Hi Reiko, Sorry for the late reply. Regarding your question, there is no nice an clean way of specifying the default coordinates where to present the window. However, if you are willing to tweak the source code of Opensesame a bit, you might be abl…
-
Hi, As you have probably already seen, here the current workaround for this bug: http://forum.cogsci.nl/index.php?p=/discussion/1860/problem-with-sound-sampler#Item_4 Will be fixed in the next maintenance release. Eduard
-
Hi, Do I understand correctly, the first time you are calling kb.get_key(), does work (so, it proceeds to my.canvas.clear()right away), but the second time with `question_response.get_key(), it needs two keypresses? Eduard
-
Mh, this is weird. I just tried to reproduce the error, but succeeded so only in a few cases. I am quite sure, there is a bug somewhere. I will file a report on Github, but first I need to do some more testing to figure out, what exactly it is that …
-
Hi Grusha, This doesn't sound like an obvious programming error. One question, does the experiment crash during the same sound files each time? Or does it crash sometimes when trying to play a file, that you know worked in a previous experimental r…
-
Hi, Sorry for the last response, I was quite busy recently... (Quote) Again sorry. This package needs to be imported before you can use it. Just add import math in the beginning of your inline_script. Regarding your first question, the code I pro…
-
And on top of that, you should change practice to [practice]. So to wrap everything up: break if [count_trial_sequence] > 4 and [practice] = "yes" Eduard
-
Hi, I don't know whether you can do what you want just with the GUI. I personally, am using mostly inline_scripts. However, you don't need to worry. The script you would have to write is rather simple. It basically boils down to sampling eye positi…