![]() REP 3 Then create your stimuli object containing your audio files, like we did before: stimuli 'dog.wav', 'cat. Min phí khi ng ký và chào giá cho công vic. First create a variable that contains the amount of times you want each sound wave to be repeated. The rest of the logic above (checking in a list of start/stops) should still work just the same though. Tìm kim các công vic liên quan n Random xml quiz timer score flash hoc thuê ngi trên th trng vic làm freelance ln nht th gii vi hn 22 triu công vic. In the code above the 0.18 will effectively get rounded up to the next frame and the stimulus will appear at 183ms (11 frames into the block). 1 Answer Sorted by: 2 Your existing code breaks Builder's drawing cycle: Builder fundamentally operates on a continuous cycle that updates stimuli, collects keypresses and so on, at the same rate as the screen refreshes (e.g. For example 0.18 (180ms) which isn't possible with a 60Hz monitor. As a cheeky example in the code above I've added some impossible times. ![]() Jonas is also right though that you should use frame numbers instead of clock time if you have brief stimuli and care about them being precisely timed. In parallel to the analysis of Spoken responses in Chapter 2, EMG activ- ity from SCM and lip muscles, lip kinematics, and reaction times at different kinematic. Return False #if we got here there was no valid windowĪnd then in my script I'd have: targetTimes =, ] I'd naturally handle this with a function like def checkTimes(t, listOfPermissible): To be genuinely 'aysnchronous' would need threads and, as Jonas suggests, these aren't safe for use with OpenGL (your graphics card doesn't know which thread a command is coming from and if its commands are executed out of order because of two interleaved threads then the results are unpredictable and could lead to a crash).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |