Example #1
0
from tools import sound_freq_sweep,compound_sound
import numpy as np
from psychopy.sound import Sound
from psychopy import visual

p = dict(
    check_eye_movements=True, #False,
    # Display:
    monitor = 'CRT_NEC_FE992',
    full_screen = True,
    screen_number = 1,
    # Sounds:
    correct_sound = Sound(value='G', secs=0.1, octave=5, sampleRate=44100, bits=16),
    incorrect_sound = Sound(value='G', secs=0.1, octave=4, sampleRate=44100, bits=16),
    eye_movement_sound = Sound(sound_freq_sweep(8000, 100, .2)),
    # General:
    n_trials = 150,
    fixation_size = 0.1,
    rgb = np.array([1.,1.,1.]),
    # Element array:
    sf = 4,
    elems_per_row = 30,
    elem_size = 2.5,
    elem_spacing = 1,
    jitter = 0.08,
    res = 128,
    # Cue:
    cue_size = [2,2],
    line_width = 5,
    # Timing: 
    cue_dur = 0.2,
Example #2
0
from tools import sound_freq_sweep, compound_sound
import numpy as np
from psychopy.sound import Sound
from psychopy import visual

p = dict(
    # Display:
    monitor='CRT_NEC_FE992',
    full_screen=True,
    screen_number=1,
    # Sounds:
    correct_sound=Sound(sound_freq_sweep(2000, 2000, .1)),
    incorrect_sound=Sound(sound_freq_sweep(8000, 200, .1)),
    # General:
    n_trials=150,
    fixation_size=0.1,
    rgb=np.array([1., 1., 1.]),
    # Element array:
    sf=4,
    elems_per_row=30,
    elem_size=2.5,
    elem_spacing=1,
    jitter=0.08,
    res=128,
    # Cue:
    cue_size=[2, 2],
    line_width=5,
    # Timing:
    cue_dur=0.2,
    cue_to_ea=0.6,
    #texture_dur =  0.05,
Example #3
0
from tools import sound_freq_sweep, compound_sound

from psychopy.sound import Sound

p = dict(
    color_target=True,
    monitor='SportsMedicineLab',
    screen_number=0,
    scanner=False,
    eye_motion=True,
    full_screen=False,
    save_fig=True,
    #Feedback sounds
    incorrect_sound=Sound(sound_freq_sweep(8000, 200, .1)),
    correct_sound=Sound(sound_freq_sweep(2000, 2000, .1)),
    no_response_sound=Sound(sound_freq_sweep(500, 700, .1)),
    eye_motion_sound=Sound(compound_sound([200, 400, 800], .2)),
    fixation_size=3.0,
    target_dur=0.1,
    response_dur=1.5,
    feedback_dur=0.3,
    iti=0.24,
    isi=0.3,
    interblock_interval=0.54,
    # block_duration = 12, Enforce this!
    n_trials=5,
    n_blocks=12,
    target_size=4,
    target_x=4,
    target_y=4,
    sf_base=1,
Example #4
0
import numpy as np
from tools import sound_freq_sweep
from psychopy.sound import Sound

p = dict(
    # Display:
    monitor = 'ESI_psychophys',
    full_screen = False,
    screen_number = 0, #1,
    refresh_rate = 60, # Hz
    # Sounds:
    correct_sound = Sound(sound_freq_sweep(2000,2000,.1)),
    incorrect_sound = Sound(sound_freq_sweep(8000, 200, .1)),
    # General:
    fixation_size = 0.25,
    rgb = np.array([1.,1.,1.]),
    # Stimuli:
    res = 128,
    temporal_freq = 4, # 0 for no flicker
    sf = 2, # cycles/deg
    ecc = 6, # dva 
    center_size = 3,
    surr_size = 8,
    center_contrast = np.array([0.3]),
    center_comparison = np.array( [-0.29, -0.2, -0.1, 0., 0.1, 0.2,
                                   0.25, 0.3, 0.35, 0.4, 0.6]),
    surr_contrast = 1,
    div_color = -1,
    # Timing: 
    cue_dur = 0.5,
    cue_to_stim = 0.3,
Example #5
0
from tools import sound_freq_sweep,compound_sound

from psychopy.sound import Sound 

p = dict(
    color_target=True,
    monitor='SportsMedicineLab',
    screen_number = 0,
    scanner = False,
    eye_motion = True,
    full_screen = False,
    save_fig=True,
    #Feedback sounds
    incorrect_sound = Sound(sound_freq_sweep(8000, 200, .1)),
    correct_sound = Sound(sound_freq_sweep(2000,2000,.1)),
    no_response_sound = Sound(sound_freq_sweep(500, 700, .1)),
    eye_motion_sound = Sound(compound_sound([200,400,800], .2)),
    fixation_size = 3.0,
    target_dur = 0.1,
    response_dur = 1.5,
    feedback_dur = 0.3,
    iti = 0.24,
    isi = 0.3,
    interblock_interval=0.54,
    # block_duration = 12, Enforce this!
    n_trials = 5,
    n_blocks = 12,
    target_size = 4,
    target_x = 4,
    target_y = 4,
    sf_base = 1,