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
Comments
Hi Embodiment,
Welcome to the forum!
Yes, that's certainly possible to implement. It will require a moderately complex inline script (where the clock is drawn), but nothing too overwhelming. All the required functionality is available in the openexp.canvas and openexp.keyboard modules:
Hope this gets you started and don't hesitate to post any questions you might have!
Kindest regards,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thank you very Sebastian. So I may try to design such experiment with open sesame. Another question, important for my experiment, is about the millisecond precision of open sesame. If I use a USB keyboard, what would be the milliseconds delay?
Hi Embodiment,
I cannot really say, because that depends on the keyboard. OpenSesame reads the keyboard in pretty much the same way as all other software, so in that respect it wouldn't matter which software you use.
Here's a nice paper on the subject. Damian argues that the delays caused by keyboards is generally not a relevant source of noise:
Damian, M. F. (2010). Does variability in human performance outweigh imprecision in response devices such as computer keyboards? Behavior Research Methods, 42, 205-211. doi:10.3758/BRM.42.1.205
As an aside: The accuracy of the display presentation timestamp varies per back-end, as described at the end of the tutorial. For optimal results, you may want to consider using the opengl or psycho backend, although, like with a keyboard, it is doubtful whether it will make much of a difference in practice.
Kindest regards,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Ok Sebastian. You're been very clear and exhaustive. I've never used Open Sesame before, so I will ask for help if I were to have any problem.
Thanks again.
Andrea
Excuse me Sebastian. I'm trying to understand how can I create the moving clock hand. You wrote that the canvas module can be useful, but I see it allow only the drawing of shapes, not also the movement. What are the Python commands to use for producing a movement of an object (in this case a line)?
Hi Andrea,
You can create animations by showing static canvasses in succession. Since this is probably quite a common thing to do, I'll give a few examples. In order to fully understand these examples, you will need a basic understanding of Python. If you are not familiar with Python, you may want to walk through A Byte of Python.
Let's start simple, by drawing a static canvas with a simple clock:
Now, let's extend this to an animation of a rotating clock arm:
This works, but there's a drawback: The canvasses are created on the fly. If you have a slow computer or complex canvasses, this may cause timing problems. So we extend this example to prepare all canvasses, before showing them:
Pretty easy, right? Now all we have to do is poll the keyboard intermittently, to record when a key has been pressed:
Check out SigmundAI.eu for our OpenSesame AI assistant!
Perfect! I would like to thank you for your patience and clarity in explanation. Now I can start to programming the clock, after reading some Python documents.
Cheers,
Andrea
I've tested this codes. There is a problem that I don't be sure if derives from my machine or something else.
I've to set the revolution time to 2560 ms. To do this, one have to set the correct value of "delay". In my case, 2560/360 = 7.1: I've inserted 7, since the program accepts only integers. So:
delay = 7
Whit this value, the total time should be 2520, but it's not the case. The revolution is long more than 3 seconds. I've thought that one possible reason of that maybe concerns a poor precision of my computer with low milliseconds. So I've tried to increment the delay by reducing the number of canvas produced, from 360 to 180. To do this, I've added a step in the loop:
for time in range(0, 360, 2):
but nothing. The hand is still too slow.
Do you have any idea about that?
Hi Andrea,
One thing that is important to take into account is the restrictions imposed by the refresh rate of the monitor. Let's say the monitor is running at 100Hz, this means that a canvas can be shown at most every 10ms. If you try to show it more often (i.e, using a delay of 5ms), it will "round up" the delay and the animation will be slower than you intended. Another factor is that the real delay is always the delay you specify + some additional computational time (but very little if you prepare the canvases in advance).
So you may want to match the delay to the refresh rate of your monitor and then deduct something like 2ms (so there's some additional room for processing, and any left-over delay will be rounded up anyway). So, for example, if the monitor is 60Hz -> 16.67ms per refresh -> 14ms delay.
Does this make sense? Good luck!
Regards,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Ok, I'll try.
Thanks,
Andrea
Hi Sebastian. I'm continuing to test the code you provided me. To creating the compete clock, I thought that I can put the canvas rotation above a jpeg image of the clock face. So the canvasses appear above a background image. I've read the Python documentation but I didn't find the method to do this.
Another method to design the clock face, I think, is certainly to create a circle, the numbers and the minute markers by Python, but also in this case I don't know how one can make these images static despite of the other canvasses movement. In my trials, if I draw a line it appears either before the hand rotation or intermittently inside the flow of the other canvasses.
Do you have suggestions?
Thanks, best regards,
Andrea
Yes, that's possible. The easiest way to do this is to put your image in the file pool and use the following code to draw it:
For more option, see http://osdoc.cogsci.nl/python-inline-code/canvas-functions#canvas.image
Hope this helps!
Check out SigmundAI.eu for our OpenSesame AI assistant!
Yes, I've already tried with canvas.image command, but the problem is that I can't show at the same time both the background image (clock face) and the various canvasses of the hand. When I insert the command you wrote, the clock image appears always in a separate frame, before the beginning of the hand rotation.
Ah ok, yes, that's probably because you clear the canvas after every frame (otherwise you'd get lots of arms in your clock). So you need to redraw the image after every clear(), and before show(), and you should be good!
Check out SigmundAI.eu for our OpenSesame AI assistant!
In fact, now it works! Thank you so much.
Sadly, the paradigm I've to create is not so easy to implement, because there are various aspects to keep under control, as the duration of rotation, the hand movements smoothness, the timings etc. I hope OpenSesame can allows me to obtain a good result.
A curiosity: can OpenSesame read flash swf formats?
I'm not too familiar with flash, but swf format is the actual Flash program, right? No, OpenSesame cannot read that. The media player plug-in may be able to play Flash video content (.flv), but you'd have to try. In any case, you could convert a .flv video to .avi or another common format and play it that way for sure.
Check out SigmundAI.eu for our OpenSesame AI assistant!
I had already tried to play an avi movie in Open Sesame. I noticed that the player reproduce the movie too fast.
About swf clips, I think that Open Sesame can be able to reproduce such file format if one import a Python module that allow that. Are you agree? I ask this because I'm testing your code for generating clock hand rotation, but unfortunately there isn't a way to make rotation always of the same duration. Every time the revolution time changes. Since I've developed a flash file with the clock rotation, I would to insert it in Open Sesame. Now I check if Python can help me...
You might be able to play .swf files, if there is a Python module for that (you'd have to Google), but that might not be the best way to go. If the timing of the rotation is not constant, you could use the actual timestamp, rather than the number of steps, to determine the arm position. This way the number of frames might vary, but the overall timing will stay the same. Does this make sense? This would be only a minor modification of the script posted above:
As an aside, the task you're developing obviously requires some knowledge of Python. Perhaps you could take a look at A Byte of Python. It's a simple, but complete tutorial, and it might clear many things up for you.
(Btw, if you experience problems with the media_player plug-in, please open another topic and I'll refer to Daniel, who maintains that part of OpenSesame.)
Check out SigmundAI.eu for our OpenSesame AI assistant!
In fact, now it works like a charm! I've noticed that, for a greater timing precision, it is better to manually draw the clock face, rather than add a specific jpeg image in the canvas, like I was doing.
Thanks Sebastian, you have been very helpful!
Alright, great! I'll mark it as solved. But please don't hesitate to re-open or start another discussion if you run into more issues.
Check out SigmundAI.eu for our OpenSesame AI assistant!