Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generated by OpenSesame 0.27.1 (Frisky Freud)
- # Mon Mar 11 22:44:48 2013 (posix)
- # <http://www.cogsci.nl/opensesame>
- set foreground "white"
- set subject_parity "even"
- set description "A template containing a practice and an experimental phase"
- set title "Extended template"
- set compensation "0"
- set coordinates "relative"
- set height "768"
- set mouse_backend "xpyriment"
- set width "1024"
- set sampler_backend "legacy"
- set keyboard_backend "legacy"
- set background "black"
- set subject_nr "0"
- set canvas_backend "xpyriment"
- set start "experiment"
- set synth_backend "legacy"
- define sketchpad sketchpad
- set duration "keypress"
- set description "Displays stimuli"
- 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"
- define loop Bigloop
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set offset "no"
- set item "sequence"
- set column_order ""
- set cycles "1"
- set order "random"
- run trial_sequence
- define notepad about_this_template
- __note__
- Hi,
- This template already contains the basic structure
- needed for a typical experiment, consisting of a
- practice phase, followed by an experimental phase.
- For more information, please refer to the website:
- <http://www.cogsci.nl/opensesame>
- Have fun with OpenSesame!
- --
- Sebastiaan
- __end__
- set description "Some pointers to help you gest started!"
- define sketchpad sketchpad3
- set duration "keypress"
- set description "Displays stimuli"
- 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"
- define sequence s2
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run sketchpad2 "always"
- define sequence s1
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run sketchpad1 "always"
- define sequence s4
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run sketchpad "always"
- define sequence experiment
- set flush_keyboard "yes"
- set description "The main sequence of the experiment"
- run about_this_template "always"
- run practice_sequence "always"
- define sequence trial_sequence
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run inline_script "always"
- run s1 "never"
- run s2 "never"
- run s3 "never"
- run s4 "never"
- define loop practice_sequence
- set repeat "1"
- set description "A loop containing one or more experimental blocks"
- set skip "0"
- set offset "no"
- set item "Bigloop"
- set column_order "practice"
- set cycles "1"
- set order "random"
- setcycle 0 practice "no"
- run Bigloop
- define inline_script inline_script
- set _run ""
- ___prepare__
- import random
- # Make a list containing the four names of the small sequence items:
- l = ['s1', 's2', 's3', 's4']
- # Randomise the list by using the random.shuffle() function:
- random.shuffle(l)
- # Walk through the (randomised) list:
- for sequence in l:
- # Prepare the sequence item:
- exp.items[sequence].prepare()
- # Run the sequence item:
- exp.items[sequence].run()
- __end__
- set description "Executes Python code"
- define sequence s3
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run sketchpad3 "always"
- define sketchpad sketchpad2
- set duration "keypress"
- set description "Displays stimuli"
- 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"
- define sketchpad sketchpad1
- set duration "keypress"
- set description "Displays stimuli"
- 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