Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generated by OpenSesame 0.27 (Frisky Freud)
- # Fri Jul 05 15:26:53 2013 (nt)
- # <http://www.cogsci.nl/opensesame>
- set foreground "white"
- set subject_parity "even"
- set description "Default description"
- set title "New experiment"
- set sampler_backend "legacy"
- set coordinates "relative"
- set height "768"
- set mouse_backend "xpyriment"
- set width "1024"
- set compensation "0"
- set keyboard_backend "legacy"
- set background "black"
- set subject_nr "0"
- set canvas_backend "xpyriment"
- set start "experiment"
- set synth_backend "legacy"
- define inline_script prep_read_speak
- set _run ""
- ___prepare__
- path_list = exp.get_file("list4.txt")
- import numpy as np
- stimlist = np.loadtxt(path_list, dtype = str)
- import random
- random.shuffle(stimlist)
- global stimlist
- __end__
- set description "Executes Python code"
- define advanced_delay advanced_delay
- set duration "1250"
- set jitter "0"
- set description "Waits for a specified duration"
- set jitter_mode "Std. Dev."
- define sequence seq_listen_speak
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run wordpop "always"
- run display_word "always"
- run play_sound "always"
- run advanced_delay "always"
- run play_sound "always"
- run logger "always"
- define sketchpad sketchpad
- set duration "keypress"
- set description "Displays stimuli"
- draw image 0 0 "[wordpic]" scale=1 center=1 show_if="always"
- define inline_script prep_listen_write1
- set _run ""
- ___prepare__
- path_list = exp.get_file("list2.txt")
- import numpy as np
- stimlist = np.loadtxt(path_list, dtype = str)
- import random
- random.shuffle(stimlist)
- global stimlist
- __end__
- set description "Executes Python code"
- define inline_script prep_listen_write2
- set _run ""
- ___prepare__
- path_list = exp.get_file("list3.txt")
- import numpy as np
- stimlist = np.loadtxt(path_list, dtype = str)
- import random
- random.shuffle(stimlist)
- global stimlist
- __end__
- set description "Executes Python code"
- define sketchpad display_word
- set duration "keypress"
- set description "Displays stimuli"
- draw textline 0 0 "[wordx]" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
- define inline_script prep_listen_speak
- set _run ""
- ___prepare__
- path_list = exp.get_file("list1.txt")
- import numpy as np
- stimlist = np.loadtxt(path_list, dtype = str)
- import random
- random.shuffle(stimlist)
- global stimlist
- __end__
- set description "Executes Python code"
- define sequence experiment
- run randomize_conditions "always"
- define logger logger
- set ignore_missing "yes"
- set description "Logs experimental data"
- set auto_log "no"
- set use_quotes "no"
- log "word"
- define sequence conditions
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run prep_listen_speak "[condition] = listen_speak"
- run loop_listen_speak "[condition] = listen_speak"
- run prep_listen_write1 "[condition] = listen_write1"
- run loop_listen_write1 "[condition] = listen_write1"
- run prep_listen_write2 "[condition] = listen_write2"
- run loop_listen_write2 "[condition] = listen_write2"
- run prep_read_speak "[condition] = read_speak"
- run loop_read_speak "[condition] = read_speak"
- define loop randomize_conditions
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set offset "no"
- set item "conditions"
- set column_order "condition"
- set cycles "4"
- set order "random"
- setcycle 0 condition "listen_speak"
- setcycle 1 condition "listen_write1"
- setcycle 2 condition "listen_write2"
- setcycle 3 condition "read_speak"
- run conditions
- define sequence seq_read_speak
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run inline_script "always"
- run sketchpad "always"
- define loop loop_read_speak
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set offset "no"
- set item "seq_read_speak"
- set column_order ""
- set cycles "1"
- set order "random"
- run seq_read_speak
- define inline_script inline_script
- ___run__
- __end__
- ___prepare__
- word = stimlist.pop()
- exp.set("word", word)
- wordpic = word - "wav"
- wordpic = wordpic + ".bmp"
- path_pic = exp.get_file(wordpic)
- exp.set("wordpic",path_pic)
- __end__
- set description "Executes Python code"
- define loop loop_listen_speak
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set offset "no"
- set item "seq_listen_speak"
- set column_order ""
- set cycles "5"
- set order "random"
- run seq_listen_speak
- define loop loop_listen_write2
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set offset "no"
- set item "seq_listen_write2"
- set column_order ""
- set cycles "5"
- set order "random"
- run seq_listen_write2
- define loop loop_listen_write1
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set offset "no"
- set item "seq_listen_write1"
- set column_order ""
- set cycles "5"
- set order "random"
- run seq_listen_write1
- define sequence seq_listen_write2
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run wordpop "always"
- run display_word "always"
- run play_sound "always"
- define inline_script wordpop
- set _run ""
- ___prepare__
- word = stimlist.pop(1)
- exp.set("wordx", word)
- global wordx
- __end__
- set description "Executes Python code"
- define sequence seq_listen_write1
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run wordpop "always"
- run display_word "always"
- run play_sound "always"
- define sampler play_sound
- set volume "1"
- set description "Plays a sound file in .wav or .ogg format"
- set sample "[wordx]"
- set pitch "1"
- set duration "sound"
- set stop_after "0"
- set pan "0"
- set fade_in "0"
Advertisement
Add Comment
Please, Sign In to add comment