Skip to content

Instantly share code, notes, and snippets.

@smathot
Created November 17, 2014 18:35
Show Gist options
  • Save smathot/e73bad4a37d424613c9f to your computer and use it in GitHub Desktop.
Save smathot/e73bad4a37d424613c9f to your computer and use it in GitHub Desktop.
OpenSesame flicker example
# Generated by OpenSesame 2.9.1 (Hesitant Heisenberg)
# Mon Nov 17 19:35:08 2014 (posix)
# <http://www.cogsci.nl/opensesame>
set mouse_backend "xpyriment"
set subject_parity "even"
set height "768"
set font_italic "no"
set canvas_backend "xpyriment"
set synth_backend "legacy"
set start "experiment"
set title "Change blindness flicker paradigm example"
set coordinates "relative"
set width "1024"
set sampler_backend "legacy"
set transparent_variables "no"
set foreground "white"
set font_bold "no"
set description "Default description"
set background "black"
set font_size "18"
set keyboard_backend "legacy"
set font_family "mono"
set compensation "0"
set bidi "no"
set subject_nr "0"
define sketchpad blank
set duration "0"
define sequence experiment
run reset_response "always"
run flicker_loop "always"
define loop flicker_loop
set repeat "10"
set item "flicker_sequence"
set break_if "[response] = space"
set column_order ""
set cycles "1"
set order "random"
run flicker_sequence
define sequence flicker_sequence
run img1 "always"
run keyboard_response "[response] != space"
run blank "[response] != space"
run keyboard_response "[response] != space"
run img2 "[response] != space"
run keyboard_response "[response] != space"
run blank "[response] != space"
run keyboard_response "[response] != space"
define sketchpad img1
set duration "0"
draw textline 0 0 "one" center=1 color="white" font_family="mono" font_size=18 font_bold="no" font_italic="no" html="yes" z_index=0 show_if="always"
define sketchpad img2
set duration "0"
draw textline 0 0 "two" center=1 color="white" font_family="mono" font_size=18 font_bold="no" font_italic="no" html="yes" z_index=0 show_if="always"
define keyboard_response keyboard_response
set timeout "500"
set flush "yes"
define inline_script reset_response
___run__
exp.set('response', None)
__end__
set _prepare ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment