eduard
About
- Username
- eduard
- Joined
- Visits
- 1,402
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi, kb = keyboard(keylist=['z','m'])start_time = clock.time()k1 == Nonewhile clock.time()-start_time < 1600: if k1 == None: k1,t1 = kb.get_key() elif k1 != None: k2,t2 = kb.get_key() if k2 != None: break# comput…
-
There is no white screen for me. Neither with the expyriment, nor with the legacy backend. What system and version of Opensesame do you use? maybe someone else (@Sebastiaan) can reproduce the problem. Unfortunately, I can't. Eduard
-
Hi Oriane, As I said, you are sampling two key presses. Depending on what you want to accomplish you either remove your keyboard_response, or you set the duration of the last sketchpad to 0. I tried either, and the experiment seems to run very smoo…
-
The line k1,t1 = kb.get_key() waits for a keyboard response (unlimited). Once a response is done, k2,t2 = kb.get_key(timeout=1600) will wait for the second response, but only for 1600ms. Is this what you want?, or do both response have to occur wit…
-
Hi , (Quote) I've never seen/heard such a thing. No idea, what could be the reason. Could you upload your experiment so that we can have a look? (Quote) Irrespective of inter trial delay, if you have to press twice, that you are waiting for two ke…
-
Hi Carine, I took the liberty to change your script quite a bit. Your strategy had a few problems, which would have caused time of your 30 seconds to have used up by some overhead costs. Does that script do what you want? Feel free to ask if anyt…
-
Open the experiment directly from Opensesame. (File --> Open --> select experiment). DOes that solve it? If not please provide more detail. Eduard
-
Hi Sofia, Please don't open two discussions for the same questions. I will close this one, you can keep on posting in the other discussion
-
Please don't discuss the same issues in two separate threads. It will make the forum very messy!
-
Hi, Is this code what you want? kb = keyboard()# first responsestart_time1 = clock.time()k1,t1 = kb.get_key()if k1 != None: response_time1 = t1-start_time1k2,t2 = kb.get_key(timeout=1600)if k2 != None: response_time2 = t2-t1else: respon…
-
Hi, Is this code what you want? kb = keyboard()# first responsestart_time1 = clock.time()k1,t1 = kb.get_key()if k1 != None: response_time1 = t1-start_time1k2,t2 = kb.get_key(timeout=1600)if k2 != None: response_time2 = t2-t1else: respon…
-
To add on this discussion, you can accomplish this by drawing all letters separately. You just need to define the coordinates for every letter. I'm not sure how efficient this experiment will be (depending on the length of the words), but it is defi…
-
Hey, To get started, you can check out the examples in the links that I provided. If I have some time later this week, I'll try to fix a little script for you. Eduard
-
Hi Carine, Would you mind uploading the experiment? I'd like to have a quick look myself. Thanks, Eduard
-
Every item in Opensesame has a time stamp that is written to the logfile. Try to find the ones that you want to compare and see whether the difference between them is as expected. If you need other times that are stored by default, you can take soun…
-
Hi Tasha, Based on your information, you need a sequence that plays three sounds in a sequence, then plays one randomly chosen sound again, and finally asks participants to respond 1, 2 or 3. Quite straightforward, aye? Eduard
-
Hi esther, What are you using to present your words? sketchpads or inline_scripts? If it is inline_scripts, you can simply use the color keyword: canvas.text('this is some text', color= 'green'). If you use sketchpads you can adjust the color in th…
-
Hi Noa, You're welcome. Not sure whether users can delete questions. I could, but I think even "dummy" questions are useful. At least if people use the search function. Eduard
-
Hi Flippy, I don't know what your Python skills are, but I would solve this in inline_scripts accessing the sound and canvas functions directly. However, you can also consider trying to implement it with co-routines. They were designed to allow for…
-
Hi Noa, As long as there is no other visual information (sketchpad or whatever) in between your question and the keyboard_response, the solution is to set the duration of your sketchpad to 0. Then you will keep on seeing your question, but the keyb…
-
Hi Oriane, I see. Indeed, adding these characters to the loop table does not solve the issue. Instead you can modify the strings to include the manual line break characters, just before you present them. For example, you can add an inline_script be…
-
Hi, When you define your sentences, you can add hard coded linebreaks. Not sure whether this is still compatible with your design, but that's how I can deal with very long lines. See example: string1 = " This is a very long string that would …
-
Making a canvas function (a la canvas.save()) is also on our to-do list. However, it is not finished yet. Daniel started to implement this. Maybe the current version is already useful to you: https://github.com/smathot/OpenSesame/issues/318 Eduard
-
Hi, First, I haven't worked much with videos and not at all with OpenCV, so I can't help you with that. However, I think some of your questions are more general in nature. So, let's see whether I can help you. (Quote) This is rather simple. Basica…
-
Hi, Well, the code you provide was not really enough to reproduce the error. I had to add some bits. Anyway, the problem is that you do not execute the form before you check the response. Therefore, there is not response yet and your loop will neve…
-
Alright, Here is the new link: http://www.filedropper.com/timeexperiment2osexp I wrapped the Opensesame file first into an archive (.zip), so before you can use it, you have to unzip it. But I tested it now, and it works. Eduard
-
Hi, Would you mind providing a little more detail on what it is exactly that is the problem? Just from the info " it doesn't work", it is quite hard to suggest a solution. So, which version are you using, what is the error message, which …
-
Alternatively, you can also just add another sketchpad with a black screen right after the keyboard item. Alternative 2: Add an inline_script with the single line clock.sleep(1600). Eduard
-
Hi Armin, I can't really imagine what you mean. Would you mind providing some screenshot of it is happening? So, of the things you do just before it crashes. Some background information would also be nice (OS version,e tc). Thanks, Edaurd
-
Hi Srishti, The file was uploaded correctly. Just download it with the internet explorer and you should be good. No need to send it again. Eduard Edit: Oh, I just see that the link is down. http://www.filedropper.com/timeexperiment Here it is aga…