c

parent bf0c4616
......@@ -243,11 +243,11 @@
<CodeComponent name="code_4">
<Param name="Before Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Before JS Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin Experiment" updates="constant" val="def numtosec(n):&amp;#10; return float(0.250 * n-0.05)&amp;#10;&amp;#10;vslist=[[2,2,4,1,3,0.7],[2,2,4,1,3,0.7],[2,2,4,3,1,0.7]]&amp;#10;z=0&amp;#10;x=0&amp;#10;start=[1.5,0.05,0.05,0.05,0.05,0.05]&amp;#10;" valType="extendedCode"/>
<Param name="Begin JS Experiment" updates="constant" val="const numtosec = function (n) {&amp;#10; return Number.parseFloat(((0.25 * n) - 0.05));&amp;#10;}&amp;#10;vslist = [[2, 2, 4, 1, 3, 0.7], [2, 2, 4, 1, 3, 0.7], [2, 2, 4, 3, 1, 0.7]];&amp;#10;z = 0;&amp;#10;x = 0;&amp;#10;start = [1.5, 0.05, 0.05, 0.05, 0.05, 0.05];&amp;#10;" valType="extendedCode"/>
<Param name="Begin Experiment" updates="constant" val="def numtosec(n):&amp;#10; return float(0.250 * n-0.05)&amp;#10;&amp;#10;vslist=[[2,2,4,1,3,0.7],[2,2,4,1,3,0.7],[2,2,4,3,1,0.7]]&amp;#10;z=0&amp;#10;x=0&amp;#10;start=[1.5,0.05,0.05,0.05,0.05,0.05]&amp;#10;def vsstop():&amp;#10; return numtosec(vslist[z][x])&amp;#10;vsvar=vsstop()&amp;#10;" valType="extendedCode"/>
<Param name="Begin JS Experiment" updates="constant" val="function numtosec(n) {&amp;#10; return Number.parseFloat(((0.25 * n) - 0.05));&amp;#10;}&amp;#10;vslist = [[2, 2, 4, 1, 3, 0.7], [2, 2, 4, 1, 3, 0.7], [2, 2, 4, 3, 1, 0.7]];&amp;#10;z = 0;&amp;#10;x = 0;&amp;#10;start = [1.5, 0.05, 0.05, 0.05, 0.05, 0.05];&amp;#10;function vsstop() {&amp;#10; return numtosec(vslist[z][x]);&amp;#10;}&amp;#10;vsvar = vsstop();&amp;#10;" valType="extendedCode"/>
<Param name="Begin JS Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="Code Type" updates="None" val="Both" valType="str"/>
<Param name="Code Type" updates="None" val="Auto-&gt;JS" valType="str"/>
<Param name="Each Frame" updates="constant" val="" valType="extendedCode"/>
<Param name="Each JS Frame" updates="constant" val="" valType="extendedCode"/>
<Param name="End Experiment" updates="constant" val="" valType="extendedCode"/>
......@@ -270,7 +270,7 @@
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="$start[x]" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="$numtosec(vslist[z][x])" valType="code"/>
<Param name="stopVal" updates="constant" val="$vsvar" valType="code"/>
<Param name="syncScreenRefresh" updates="constant" val="False" valType="bool"/>
<Param name="volume" updates="constant" val="1" valType="code"/>
</SoundComponent>
......@@ -288,8 +288,8 @@
<Param name="Each JS Frame" updates="constant" val="" valType="extendedCode"/>
<Param name="End Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="End JS Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="End JS Routine" updates="constant" val="x += 1;&amp;#10;if ((x &gt; 5)) {&amp;#10; x = 0;&amp;#10; z += 1;&amp;#10;}&amp;#10;" valType="extendedCode"/>
<Param name="End Routine" updates="constant" val="x+=1&amp;#10;if x&gt;5:&amp;#10; x=0&amp;#10; z+=1" valType="extendedCode"/>
<Param name="End JS Routine" updates="constant" val="x += 1;&amp;#10;vsvar = vsstop();&amp;#10;if ((x &gt; 5)) {&amp;#10; x = 0;&amp;#10; z += 1;&amp;#10; vsvar = vsstop();&amp;#10;}&amp;#10;" valType="extendedCode"/>
<Param name="End Routine" updates="constant" val="x+=1&amp;#10;vsvar=vsstop()&amp;#10;if x&gt;5:&amp;#10; x=0&amp;#10; z+=1&amp;#10; vsvar=vsstop()" valType="extendedCode"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="name" updates="None" val="code_5" valType="code"/>
</CodeComponent>
......
......@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy3 Experiment Builder (v2020.2.10),
on February 15, 2021, at 18:19
on February 15, 2021, at 18:30
If you publish work using this script the most relevant publication is:
Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Lindeløv JK. (2019)
......@@ -104,6 +104,9 @@ vslist=[[2,2,4,1,3,0.7],[2,2,4,1,3,0.7],[2,2,4,3,1,0.7]]
z=0
x=0
start=[1.5,0.05,0.05,0.05,0.05,0.05]
def vsstop():
return numtosec(vslist[z][x])
vsvar=vsstop()
# Initialize components for Routine "vssound"
......@@ -479,7 +482,7 @@ for thisTrial_3 in trials_3:
# ------Prepare to start Routine "vssound"-------
continueRoutine = True
# update component parameters for each repeat
sound_2.setSound('A', secs=numtosec(vslist[z][x]), hamming=True)
sound_2.setSound('A', secs=vsvar, hamming=True)
sound_2.setVolume(1, log=False)
# keep track of which components have finished
vssoundComponents = [sound_2]
......@@ -513,7 +516,7 @@ for thisTrial_3 in trials_3:
sound_2.play() # start the sound (it finishes automatically)
if sound_2.status == STARTED:
# is it time to stop? (based on global clock, using actual start)
if tThisFlipGlobal > sound_2.tStartRefresh + numtosec(vslist[z][x])-frameTolerance:
if tThisFlipGlobal > sound_2.tStartRefresh + vsvar-frameTolerance:
# keep track of stop time/frame for later
sound_2.tStop = t # not accounting for scr refresh
sound_2.frameNStop = frameN # exact frame index
......@@ -596,9 +599,11 @@ for thisTrial_3 in trials_3:
if hasattr(thisComponent, "setAutoDraw"):
thisComponent.setAutoDraw(False)
x+=1
vsvar=vsstop()
if x>5:
x=0
z+=1
vsvar=vsstop()
# the Routine "vscode2" was not non-slip safe, so reset the non-slip timer
routineTimer.reset()
thisExp.nextEntry()
......
trials_3.thisRepN,trials_3.thisTrialN,trials_3.thisN,trials_3.thisIndex,text_3.started,text_3.stopped,key_resp_3.keys,key_resp_3.rt,key_resp_3.started,key_resp_3.stopped,participant,session,date,expName,psychopyVersion,frameRate,
,,,,9.0161721999757,None,space,1.1538239999790676,9.0161721999757,None,,001,2021_Feb_15_1823,audioseqq,2020.2.10,29.920053617534464,
7.8225 EXP Created window1 = Window(allowGUI=False, allowStencil=False, args=UNKNOWN, autoLog=True, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0., 0., 0.]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x000001E1D9066588>, gamma=None, gammaErrorPolicy='raise', kwargs=UNKNOWN, lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x000001E1D90A7D30>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1680, 1050]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
7.8229 EXP window1: mouseVisible = True
7.8229 EXP window1: recordFrameIntervals = False
8.1543 EXP window1: recordFrameIntervals = True
8.5221 EXP window1: recordFrameIntervals = False
8.7376 EXP Created text_3 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.05, italic=False, languageStyle='LTR', name='text_3', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
8.8260 EXP Sound sound_2 set volume 1.000
8.8693 EXP Created text_2 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.04, italic=False, languageStyle='LTR', name='text_2', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
8.8915 EXP Sound sound_1 set volume 1.000
8.9369 EXP Created text = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.07, italic=False, languageStyle='LTR', name='text', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
9.0162 EXP text_3: autoDraw = True
10.1932 EXP Created sequence: random, trialTypes=1, nReps=18, seed=None
10.1940 EXP New trial (rep=0, index=0): None
10.4180 EXP window1: mouseVisible = True
trials_3.thisRepN,trials_3.thisTrialN,trials_3.thisN,trials_3.thisIndex,text_3.started,text_3.stopped,key_resp_3.keys,key_resp_3.rt,key_resp_3.started,key_resp_3.stopped,participant,session,date,expName,psychopyVersion,frameRate,
,,,,10.134747299947776,None,space,0.4915225000004284,10.134747299947776,None,,001,2021_Feb_15_1825,audioseqq,2020.2.10,29.922363433370922,
8.4980 EXP Created window1 = Window(allowGUI=False, allowStencil=False, args=UNKNOWN, autoLog=True, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0., 0., 0.]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x000002621A2A5588>, gamma=None, gammaErrorPolicy='raise', kwargs=UNKNOWN, lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x000002621A2E8D30>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1680, 1050]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
8.4983 EXP window1: mouseVisible = True
8.4984 EXP window1: recordFrameIntervals = False
8.8313 EXP window1: recordFrameIntervals = True
9.0939 WARNING t of last frame was 55.98ms (=1/17)
9.1605 WARNING t of last frame was 55.92ms (=1/17)
9.2270 WARNING t of last frame was 55.72ms (=1/17)
9.2937 WARNING t of last frame was 55.80ms (=1/17)
9.3625 WARNING Multiple dropped frames have occurred - I'll stop bothering you about them!
9.6972 EXP window1: recordFrameIntervals = False
9.8837 EXP Created text_3 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.05, italic=False, languageStyle='LTR', name='text_3', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
9.9722 EXP Sound sound_2 set volume 1.000
10.0159 EXP Created text_2 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.04, italic=False, languageStyle='LTR', name='text_2', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
10.0374 EXP Sound sound_1 set volume 1.000
10.0814 EXP Created text = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.07, italic=False, languageStyle='LTR', name='text', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
10.1347 EXP text_3: autoDraw = True
10.6362 EXP Created sequence: random, trialTypes=1, nReps=18, seed=None
10.6370 EXP New trial (rep=0, index=0): None
10.8579 EXP window1: mouseVisible = True
trials_3.thisRepN,trials_3.thisTrialN,trials_3.thisN,trials_3.thisIndex,text_3.started,text_3.stopped,key_resp_3.keys,key_resp_3.rt,key_resp_3.started,key_resp_3.stopped,sound_2.started,sound_2.stopped,participant,session,date,expName,psychopyVersion,frameRate,
,,,,8.686022399982903,None,space,0.5844541999977082,8.686022399982903,None,,,,001,2021_Feb_15_1826,audioseqq,2020.2.10,30.04407766445309,
0,0,0,0,,,,,,,1.5275724800303578,None,,001,2021_Feb_15_1826,audioseqq,2020.2.10,30.04407766445309,
1,0,1,0,,,,,,,0.057134080037940294,None,,001,2021_Feb_15_1826,audioseqq,2020.2.10,30.04407766445309,
2,0,2,0,,,,,,,0.08188238000730053,None,,001,2021_Feb_15_1826,audioseqq,2020.2.10,30.04407766445309,
3,0,3,0,,,,,,,0.051991079992149025,None,,001,2021_Feb_15_1826,audioseqq,2020.2.10,30.04407766445309,
4,0,4,0,,,,,,,0.05554777994984761,None,,001,2021_Feb_15_1826,audioseqq,2020.2.10,30.04407766445309,
5,0,5,0,,,,,,,0.05325468006776646,None,,001,2021_Feb_15_1826,audioseqq,2020.2.10,30.04407766445309,
6,0,6,0,,,,,,,1.5171438800753094,None,,001,2021_Feb_15_1826,audioseqq,2020.2.10,30.04407766445309,
7,0,7,0,,,,,,,0.053563280089292675,None,,001,2021_Feb_15_1826,audioseqq,2020.2.10,30.04407766445309,
8,0,8,0,,,,,,,0.05490018002456054,None,,001,2021_Feb_15_1826,audioseqq,2020.2.10,30.04407766445309,
9,0,9,0,,,,,,,0.0735211800201796,None,,001,2021_Feb_15_1826,audioseqq,2020.2.10,30.04407766445309,
7.5211 EXP Created window1 = Window(allowGUI=False, allowStencil=False, args=UNKNOWN, autoLog=True, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0., 0., 0.]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x0000022B2F573588>, gamma=None, gammaErrorPolicy='raise', kwargs=UNKNOWN, lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x0000022B2F5B7D30>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1680, 1050]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
7.5215 EXP window1: mouseVisible = True
7.5215 EXP window1: recordFrameIntervals = False
7.8530 EXP window1: recordFrameIntervals = True
8.2194 EXP window1: recordFrameIntervals = False
8.3949 EXP Created text_3 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.05, italic=False, languageStyle='LTR', name='text_3', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
8.4837 EXP Sound sound_2 set volume 1.000
8.5273 EXP Created text_2 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.04, italic=False, languageStyle='LTR', name='text_2', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
8.5487 EXP Sound sound_1 set volume 1.000
8.6000 EXP Created text = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.07, italic=False, languageStyle='LTR', name='text', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
8.6860 EXP text_3: autoDraw = True
9.2750 DATA Keypress: space
9.3095 EXP Created sequence: random, trialTypes=1, nReps=18, seed=None
9.3103 EXP New trial (rep=0, index=0): None
9.3653 EXP text_3: autoDraw = False
10.8193 EXP Sound sound_2 started
11.2810 EXP Sound sound_2 reached end of file
11.2864 EXP New trial (rep=1, index=0): None
11.3337 EXP Sound sound_2 started
11.8013 EXP Sound sound_2 reached end of file
11.8069 EXP New trial (rep=2, index=0): None
11.8665 EXP Sound sound_2 started
12.3331 EXP Sound sound_2 reached end of file
12.3376 EXP New trial (rep=3, index=0): None
12.3648 EXP Sound sound_2 started
12.8579 EXP Sound sound_2 reached end of file
12.8622 EXP New trial (rep=4, index=0): None
12.8908 EXP Sound sound_2 started
13.3618 EXP Sound sound_2 reached end of file
13.3664 EXP New trial (rep=5, index=0): None
13.3949 EXP Sound sound_2 started
13.8611 EXP Sound sound_2 reached end of file
13.8651 EXP New trial (rep=6, index=0): None
15.3587 EXP Sound sound_2 started
15.8251 EXP Sound sound_2 reached end of file
15.8294 EXP New trial (rep=7, index=0): None
15.8580 EXP Sound sound_2 started
16.3241 EXP Sound sound_2 reached end of file
16.3286 EXP New trial (rep=8, index=0): None
16.3585 EXP Sound sound_2 started
16.8217 EXP Sound sound_2 reached end of file
16.8259 EXP New trial (rep=9, index=0): None
16.8734 EXP Sound sound_2 started
17.3410 EXP Sound sound_2 reached end of file
17.3463 EXP New trial (rep=10, index=0): None
17.3508 DATA Keypress: escape
17.3740 EXP Sound sound_2 started
17.6559 EXP window1: mouseVisible = True
trials_3.thisRepN,trials_3.thisTrialN,trials_3.thisN,trials_3.thisIndex,text_3.started,text_3.stopped,key_resp_3.keys,key_resp_3.rt,key_resp_3.started,key_resp_3.stopped,sound_2.started,sound_2.stopped,participant,session,date,expName,psychopyVersion,frameRate,
,,,,7.679435099998955,None,space,0.7359288000152446,7.679435099998955,None,,,,001,2021_Feb_15_1829,audioseqq,2020.2.10,30.035838766469524,
0,0,0,0,,,,,,,1.507254539988935,None,,001,2021_Feb_15_1829,audioseqq,2020.2.10,30.035838766469524,
1,0,1,0,,,,,,,0.05032104003475979,None,,001,2021_Feb_15_1829,audioseqq,2020.2.10,30.035838766469524,
2,0,2,0,,,,,,,0.07897624000906944,None,,001,2021_Feb_15_1829,audioseqq,2020.2.10,30.035838766469524,
3,0,3,0,,,,,,,0.05175053997663781,None,,001,2021_Feb_15_1829,audioseqq,2020.2.10,30.035838766469524,
4,0,4,0,,,,,,,0.09149523999076337,None,,001,2021_Feb_15_1829,audioseqq,2020.2.10,30.035838766469524,
,,,,,,,,,,0.08759743993869051,None,,,,,,,
6.5200 EXP Created window1 = Window(allowGUI=False, allowStencil=False, args=UNKNOWN, autoLog=True, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0., 0., 0.]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x000001A216812588>, gamma=None, gammaErrorPolicy='raise', kwargs=UNKNOWN, lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x000001A216857D30>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1680, 1050]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
6.5203 EXP window1: mouseVisible = True
6.5204 EXP window1: recordFrameIntervals = False
6.8519 EXP window1: recordFrameIntervals = True
7.2184 EXP window1: recordFrameIntervals = False
7.3984 EXP Created text_3 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.05, italic=False, languageStyle='LTR', name='text_3', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
7.4869 EXP Sound sound_2 set volume 1.000
7.5297 EXP Created text_2 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.04, italic=False, languageStyle='LTR', name='text_2', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
7.5508 EXP Sound sound_1 set volume 1.000
7.5981 EXP Created text = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.07, italic=False, languageStyle='LTR', name='text', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
7.6794 EXP text_3: autoDraw = True
8.4179 DATA Keypress: space
8.4561 EXP Created sequence: random, trialTypes=1, nReps=18, seed=None
8.4568 EXP New trial (rep=0, index=0): None
8.4829 EXP text_3: autoDraw = False
9.9453 EXP Sound sound_2 started
10.4154 EXP Sound sound_2 reached end of file
10.4193 EXP New trial (rep=1, index=0): None
10.4469 EXP Sound sound_2 started
10.9151 EXP Sound sound_2 reached end of file
10.9208 EXP New trial (rep=2, index=0): None
10.9809 EXP Sound sound_2 started
11.9468 EXP Sound sound_2 reached end of file
11.9530 EXP New trial (rep=3, index=0): None
11.9803 EXP Sound sound_2 started
12.1954 EXP Sound sound_2 reached end of file
12.1990 EXP New trial (rep=4, index=0): None
12.2731 EXP Sound sound_2 started
12.9852 EXP Sound sound_2 reached end of file
12.9899 EXP New trial (rep=5, index=0): None
13.0596 EXP Sound sound_2 started
13.2003 EXP Sound sound_2 reached end of file
13.4223 EXP window1: mouseVisible = True
trials_3.thisRepN,trials_3.thisTrialN,trials_3.thisN,trials_3.thisIndex,text_3.started,text_3.stopped,key_resp_3.keys,key_resp_3.rt,key_resp_3.started,key_resp_3.stopped,sound_2.started,sound_2.stopped,participant,session,date,expName,psychopyVersion,frameRate,
,,,,8.063483399979305,None,space,0.3859764999942854,8.063483399979305,None,,,,001,2021_Feb_15_1830,audioseqq,2020.2.10,30.02716256660185,
0,0,0,0,,,,,,,1.5094331400468946,None,,001,2021_Feb_15_1830,audioseqq,2020.2.10,30.02716256660185,
1,0,1,0,,,,,,,0.05091813998296857,None,,001,2021_Feb_15_1830,audioseqq,2020.2.10,30.02716256660185,
2,0,2,0,,,,,,,0.07974174001719803,None,,001,2021_Feb_15_1830,audioseqq,2020.2.10,30.02716256660185,
3,0,3,0,,,,,,,0.0548311400343664,None,,001,2021_Feb_15_1830,audioseqq,2020.2.10,30.02716256660185,
4,0,4,0,,,,,,,0.07829593995120376,None,,001,2021_Feb_15_1830,audioseqq,2020.2.10,30.02716256660185,
,,,,,,,,,,0.05719164002221078,None,,,,,,,
6.8996 EXP Created window1 = Window(allowGUI=False, allowStencil=False, args=UNKNOWN, autoLog=True, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0., 0., 0.]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x000001DE5F843588>, gamma=None, gammaErrorPolicy='raise', kwargs=UNKNOWN, lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x000001DE5F887D30>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1680, 1050]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
6.9000 EXP window1: mouseVisible = True
6.9000 EXP window1: recordFrameIntervals = False
7.2313 EXP window1: recordFrameIntervals = True
7.5980 EXP window1: recordFrameIntervals = False
7.7874 EXP Created text_3 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.05, italic=False, languageStyle='LTR', name='text_3', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
7.8770 EXP Sound sound_2 set volume 1.000
7.9255 EXP Created text_2 = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.04, italic=False, languageStyle='LTR', name='text_2', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
7.9463 EXP Sound sound_1 set volume 1.000
7.9987 EXP Created text = TextStim(__class__=<class 'psychopy.visual.text.TextStim'>, alignHoriz=method-wrapper(...), alignText='center', alignVert=method-wrapper(...), anchorHoriz='center', anchorVert='center', antialias=True, autoLog=True, bold=False, color='white', colorSpace='named', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, font='Arial', fontFiles=[], height=0.07, italic=False, languageStyle='LTR', name='text', opacity=1.0, ori=0, pos=array([0., 0.]), rgb=array([255., 255., 255.]), text=str(...), units='height', win=Window(...), wrapWidth=1)
8.0635 EXP text_3: autoDraw = True
8.4704 EXP Created sequence: random, trialTypes=1, nReps=18, seed=None
8.4711 EXP New trial (rep=0, index=0): None
8.4774 DATA Keypress: space
8.5294 EXP text_3: autoDraw = False
9.9618 EXP Sound sound_2 started
10.4285 EXP Sound sound_2 reached end of file
10.4339 EXP New trial (rep=1, index=0): None
10.4613 EXP Sound sound_2 started
10.9274 EXP Sound sound_2 reached end of file
10.9335 EXP New trial (rep=2, index=0): None
10.9940 EXP Sound sound_2 started
11.9599 EXP Sound sound_2 reached end of file
11.9643 EXP New trial (rep=3, index=0): None
11.9928 EXP Sound sound_2 started
12.2047 EXP Sound sound_2 reached end of file
12.2095 EXP New trial (rep=4, index=0): None
12.2763 EXP Sound sound_2 started
13.0191 EXP Sound sound_2 reached end of file
13.0230 EXP New trial (rep=5, index=0): None
13.0522 EXP Sound sound_2 started
13.1900 EXP Sound sound_2 reached end of file
13.4291 EXP window1: mouseVisible = True
......@@ -105,6 +105,7 @@ var vslist;
var z;
var x;
var start;
var vsvar;
var vssoundClock;
var sound_2;
var vscode2Clock;
......@@ -158,13 +159,17 @@ function experimentInit() {
// Initialize components for Routine "vscode1"
vscode1Clock = new util.Clock();
const numtosec = function (n) {
function numtosec(n) {
return Number.parseFloat(((0.25 * n) - 0.05));
}
vslist = [[2, 2, 4, 1, 3, 0.7], [2, 2, 4, 1, 3, 0.7], [2, 2, 4, 3, 1, 0.7]];
z = 0;
x = 0;
start = [1.5, 0.05, 0.05, 0.05, 0.05, 0.05];
function vsstop() {
return numtosec(vslist[z][x]);
}
vsvar = vsstop();
// Initialize components for Routine "vssound"
vssoundClock = new util.Clock();
......@@ -703,7 +708,7 @@ function vssoundRoutineBegin(snapshot) {
frameN = -1;
continueRoutine = true; // until we're told otherwise
// update component parameters for each repeat
sound_2.secs=numtosec(vslist[z][x]);
sound_2.secs=vsvar;
sound_2.setVolume(1);
// keep track of which components have finished
vssoundComponents = [];
......@@ -735,9 +740,9 @@ function vssoundRoutineEachFrame(snapshot) {
sound_2.play(); // start the sound (it finishes automatically)
sound_2.status = PsychoJS.Status.STARTED;
}
frameRemains = start[x] + numtosec(vslist[z][x]) - psychoJS.window.monitorFramePeriod * 0.75; // most of one frame period left
frameRemains = start[x] + vsvar - psychoJS.window.monitorFramePeriod * 0.75; // most of one frame period left
if ((sound_2.status === PsychoJS.Status.STARTED || sound_2.status === PsychoJS.Status.FINISHED) && t >= frameRemains) {
if (numtosec(vslist[z][x]) > 0.5) { sound_2.stop(); // stop the sound (if longer than duration)
if (vsvar > 0.5) { sound_2.stop(); // stop the sound (if longer than duration)
sound_2.status = PsychoJS.Status.FINISHED;
}
}
......@@ -849,9 +854,11 @@ function vscode2RoutineEnd(snapshot) {
}
});
x += 1;
vsvar = vsstop();
if ((x > 5)) {
x = 0;
z += 1;
vsvar = vsstop();
}
// the Routine "vscode2" was not non-slip safe, so reset the non-slip timer
......
......@@ -116,6 +116,7 @@ var vslist;
var z;
var x;
var start;
var vsvar;
var vssoundClock;
var sound_2;
var vscode2Clock;
......@@ -169,13 +170,17 @@ function experimentInit() {
// Initialize components for Routine "vscode1"
vscode1Clock = new util.Clock();
const numtosec = function (n) {
function numtosec(n) {
return Number.parseFloat(((0.25 * n) - 0.05));
}
vslist = [[2, 2, 4, 1, 3, 0.7], [2, 2, 4, 1, 3, 0.7], [2, 2, 4, 3, 1, 0.7]];
z = 0;
x = 0;
start = [1.5, 0.05, 0.05, 0.05, 0.05, 0.05];
function vsstop() {
return numtosec(vslist[z][x]);
}
vsvar = vsstop();
// Initialize components for Routine "vssound"
vssoundClock = new util.Clock();
......@@ -708,7 +713,7 @@ function vssoundRoutineBegin(snapshot) {
frameN = -1;
continueRoutine = true; // until we're told otherwise
// update component parameters for each repeat
sound_2.secs=numtosec(vslist[z][x]);
sound_2.secs=vsvar;
sound_2.setVolume(1);
// keep track of which components have finished
vssoundComponents = [];
......@@ -739,9 +744,9 @@ function vssoundRoutineEachFrame(snapshot) {
sound_2.play(); // start the sound (it finishes automatically)
sound_2.status = PsychoJS.Status.STARTED;
}
frameRemains = start[x] + numtosec(vslist[z][x]) - psychoJS.window.monitorFramePeriod * 0.75; // most of one frame period left
frameRemains = start[x] + vsvar - psychoJS.window.monitorFramePeriod * 0.75; // most of one frame period left
if ((sound_2.status === PsychoJS.Status.STARTED || sound_2.status === PsychoJS.Status.FINISHED) && t >= frameRemains) {
if (numtosec(vslist[z][x]) > 0.5) { sound_2.stop(); // stop the sound (if longer than duration)
if (vsvar > 0.5) { sound_2.stop(); // stop the sound (if longer than duration)
sound_2.status = PsychoJS.Status.FINISHED;
}
}
......@@ -852,9 +857,11 @@ function vscode2RoutineEnd(snapshot) {
}
}
x += 1;
vsvar = vsstop();
if ((x > 5)) {
x = 0;
z += 1;
vsvar = vsstop();
}
// the Routine "vscode2" was not non-slip safe, so reset the non-slip timer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment