Advertisement
Guest User

Untitled

a guest
Mar 11th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. # Generated by OpenSesame 0.27.1 (Frisky Freud)
  2. # Mon Mar 11 22:44:48 2013 (posix)
  3. # <http://www.cogsci.nl/opensesame>
  4.  
  5. set foreground "white"
  6. set subject_parity "even"
  7. set description "A template containing a practice and an experimental phase"
  8. set title "Extended template"
  9. set compensation "0"
  10. set coordinates "relative"
  11. set height "768"
  12. set mouse_backend "xpyriment"
  13. set width "1024"
  14. set sampler_backend "legacy"
  15. set keyboard_backend "legacy"
  16. set background "black"
  17. set subject_nr "0"
  18. set canvas_backend "xpyriment"
  19. set start "experiment"
  20. set synth_backend "legacy"
  21.  
  22. define sketchpad sketchpad
  23. set duration "keypress"
  24. set description "Displays stimuli"
  25. draw textline 0.0 -288.0 "s4" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
  26.  
  27. define loop Bigloop
  28. set repeat "1"
  29. set description "Repeatedly runs another item"
  30. set skip "0"
  31. set offset "no"
  32. set item "sequence"
  33. set column_order ""
  34. set cycles "1"
  35. set order "random"
  36. run trial_sequence
  37.  
  38. define notepad about_this_template
  39. __note__
  40. Hi,
  41.  
  42. This template already contains the basic structure
  43. needed for a typical experiment, consisting of a
  44. practice phase, followed by an experimental phase.
  45.  
  46. For more information, please refer to the website:
  47. <http://www.cogsci.nl/opensesame>
  48.  
  49. Have fun with OpenSesame!
  50.  
  51. --
  52.  
  53. Sebastiaan
  54. __end__
  55. set description "Some pointers to help you gest started!"
  56.  
  57. define sketchpad sketchpad3
  58. set duration "keypress"
  59. set description "Displays stimuli"
  60. draw textline 0.0 -256.0 "s3" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
  61.  
  62. define sequence s2
  63. set flush_keyboard "yes"
  64. set description "Runs a number of items in sequence"
  65. run sketchpad2 "always"
  66.  
  67. define sequence s1
  68. set flush_keyboard "yes"
  69. set description "Runs a number of items in sequence"
  70. run sketchpad1 "always"
  71.  
  72. define sequence s4
  73. set flush_keyboard "yes"
  74. set description "Runs a number of items in sequence"
  75. run sketchpad "always"
  76.  
  77. define sequence experiment
  78. set flush_keyboard "yes"
  79. set description "The main sequence of the experiment"
  80. run about_this_template "always"
  81. run practice_sequence "always"
  82.  
  83. define sequence trial_sequence
  84. set flush_keyboard "yes"
  85. set description "Runs a number of items in sequence"
  86. run inline_script "always"
  87. run s1 "never"
  88. run s2 "never"
  89. run s3 "never"
  90. run s4 "never"
  91.  
  92. define loop practice_sequence
  93. set repeat "1"
  94. set description "A loop containing one or more experimental blocks"
  95. set skip "0"
  96. set offset "no"
  97. set item "Bigloop"
  98. set column_order "practice"
  99. set cycles "1"
  100. set order "random"
  101. setcycle 0 practice "no"
  102. run Bigloop
  103.  
  104. define inline_script inline_script
  105. set _run ""
  106. ___prepare__
  107. import random
  108.  
  109. # Make a list containing the four names of the small sequence items:
  110. l = ['s1', 's2', 's3', 's4']
  111.  
  112. # Randomise the list by using the random.shuffle() function:
  113. random.shuffle(l)
  114.  
  115. # Walk through the (randomised) list:
  116. for sequence in l:
  117.  
  118. # Prepare the sequence item:
  119. exp.items[sequence].prepare()
  120.  
  121. # Run the sequence item:
  122. exp.items[sequence].run()
  123. __end__
  124. set description "Executes Python code"
  125.  
  126. define sequence s3
  127. set flush_keyboard "yes"
  128. set description "Runs a number of items in sequence"
  129. run sketchpad3 "always"
  130.  
  131. define sketchpad sketchpad2
  132. set duration "keypress"
  133. set description "Displays stimuli"
  134. draw textline 0.0 -256.0 "s2" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
  135.  
  136. define sketchpad sketchpad1
  137. set duration "keypress"
  138. set description "Displays stimuli"
  139. draw textline 0.0 -256.0 "s1" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement