--- API: 2.1 OpenSesame: 3.3.9a3 Platform: posix --- set width 1024 set uniform_coordinates yes set title "Extended template" set subject_parity even set subject_nr 0 set start experiment set sound_sample_size -16 set sound_freq 48000 set sound_channels 2 set sound_buf_size 1024 set round_decimals 2 set height 768 set fullscreen no set form_clicks no set foreground white set font_underline no set font_size 18 set font_italic no set font_family mono set font_bold no set experiment_path "/home/lotje/Documents/Research, teaching and programming/OpenSesame/Scripts/Forum" set disable_garbage_collection yes set description "A template containing a practice and an experimental phase" set coordinates uniform set compensation 0 set canvas_backend psycho set bidi yes set background black define loop block_loop_1 set source_file "" set source table set skip 0 set repeat 1 set order random set offset no set item trial_sequence set description "A single block of trials" set cycles 3 set continuous no set column_order "" set break_if_on_first yes set break_if never setcycle 0 trial_number 1 setcycle 1 trial_number 2 setcycle 2 trial_number 3 run trial_sequence define loop block_loop_2 set source_file "" set source table set repeat 1 set order random set description "Repeatedly runs another item" set cycles 3 set continuous no set break_if_on_first yes set break_if never setcycle 0 trial_number 1 setcycle 1 trial_number 2 setcycle 2 trial_number 3 run trial_sequence define sequence block_sequence set flush_keyboard yes set description "A sequence containing a single block of trials followed by feedback to the participant" run block_loop_1 "[block_number] = 1" run block_loop_2 "[block_number] = 2" define sequence experiment set flush_keyboard yes set description "The main sequence of the experiment" run experimental_loop always define loop experimental_loop set source_file "" set source table set skip 0 set repeat 1 set order random set offset no set item block_sequence set description "A loop containing one or more experimental blocks" set cycles 2 set continuous no set column_order practice set break_if_on_first yes set break_if never setcycle 0 block_number 1 setcycle 1 block_number 2 run block_sequence define keyboard_response keyboard_response set timeout infinite set flush yes set event_type keypress set duration keypress set description "Collects keyboard responses" define logger logger set description "Logs experimental data" set auto_log yes define sketchpad sketchpad set start_response_interval no set duration 0 set description "Displays stimuli" draw fixdot color=white show_if=always style=default x=0 y=0 z_index=0 draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="This is trial [trial_number] of block [block_number]" x=32 y=-192 z_index=0 define sequence trial_sequence set flush_keyboard yes set description "A single trial" run sketchpad always run keyboard_response always run logger always