Commit 70e13409 by Zhaleh Mohammad Alipour

### t

parent 3023870a
This diff is collapsed.
 ... ... @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v2020.2.10), on February 15, 2021, at 21:09 on February 17, 2021, at 15:36 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) ... ... @@ -119,8 +119,6 @@ vscode2Clock = core.Clock() # Initialize components for Routine "code1" code1Clock = core.Clock() import random def num1_to_sec(n): return float(0.220 * n-0.05) ... ... @@ -141,9 +139,9 @@ def num6_to_sec(n): def shuffle_list(list): random.shuffle(list) shuffle(list) for ii in list: random.shuffle(ii) shuffle(ii) return list total=[[[2,2,4,1,3,0.5],[2,2,4,1,3,0.5],[2,2,4,3,1,0.5]], ... ... @@ -207,7 +205,7 @@ def durationn(intervall): #write lists inside of function! #durationvar=durationn(intervall) #[1.5,0,0,0,0] ran=random.randint(1,6) ran=randint(1,6) def stop(ran): if ran==1: return num1_to_sec(list[a][b][c]) ... ... @@ -933,12 +931,12 @@ for thisTrial_2 in trials_2: b=0 if a<29: a+=1 ran=random.randint(1,6) ran=randint(1,6) stop(ran) intervall=len(list[a][b]) repetitionn(intervall) durationn(intervall) intervall=len(list[a][b]) #c+=1 #if c>len(list[a][b])-1: ... ... @@ -957,7 +955,7 @@ for thisTrial_2 in trials_2: #if a>29: # break intervall=len(list[a][b]) # the Routine "code2" 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,trials_2.thisRepN,trials_2.thisTrialN,trials_2.thisN,trials_2.thisIndex,trials.thisRepN,trials.thisTrialN,trials.thisN,trials.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,text_2.started,text_2.stopped,key_resp_2.keys,key_resp_2.rt,key_resp_2.started,key_resp_2.stopped,sound_1.started,sound_1.stopped,sequence_1,Pattern,sequence_3,Speed,NumberOfIntervals,text.started,text.stopped,key_resp.keys,key_resp.rt,key_resp.started,key_resp.stopped,participant,session,date,expName,psychopyVersion,frameRate, ,,,,,,,,,,,,11.407017600000472,None,space,1.0201500000002852,11.407017600000472,None,,,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 0,0,0,0,,,,,,,,,,,,,,,1.5059563666673057,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 1,0,1,0,,,,,,,,,,,,,,,0.058831066664424725,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 2,0,2,0,,,,,,,,,,,,,,,0.058397466666065156,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 3,0,3,0,,,,,,,,,,,,,,,0.06538796666791313,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 4,0,4,0,,,,,,,,,,,,,,,0.08912213333314867,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 5,0,5,0,,,,,,,,,,,,,,,0.052540566666721134,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 6,0,6,0,,,,,,,,,,,,,,,1.529191533332778,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 7,0,7,0,,,,,,,,,,,,,,,0.07199556666637363,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 8,0,8,0,,,,,,,,,,,,,,,0.07304866666527232,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 9,0,9,0,,,,,,,,,,,,,,,0.07316666666520177,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 10,0,10,0,,,,,,,,,,,,,,,0.06296393333468586,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 11,0,11,0,,,,,,,,,,,,,,,0.05350973333224829,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 12,0,12,0,,,,,,,,,,,,,,,1.5177423666646064,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 13,0,13,0,,,,,,,,,,,,,,,0.07062816666621075,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 14,0,14,0,,,,,,,,,,,,,,,0.06988706666561484,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 15,0,15,0,,,,,,,,,,,,,,,0.0497007666654099,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 16,0,16,0,,,,,,,,,,,,,,,0.056050966666589375,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, 17,0,17,0,,,,,,,,,,,,,,,0.07552856666552543,None,,,,,,,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,,,,,,,,,,,,,,,,,26.91490950000116,None,space,1.624175799999648,26.91490950000116,None,,,,,,,,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,0,0,0,0,,,,,,,,,,,,,,,1.4997679666666954,None,4,"[4, 1, 3, 3, 1, 0.5]",0.9099999999999999,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,1,0,1,0,,,,,,,,,,,,,,,0.0655911666672182,None,1,"[4, 1, 3, 3, 1, 0.5]",0.19,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,2,0,2,0,,,,,,,,,,,,,,,0.05007546666456619,None,3,"[4, 1, 3, 3, 1, 0.5]",0.6699999999999999,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,3,0,3,0,,,,,,,,,,,,,,,0.08699783333213418,None,3,"[4, 1, 3, 3, 1, 0.5]",0.6699999999999999,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,4,0,4,0,,,,,,,,,,,,,,,0.0634227666650986,None,1,"[4, 1, 3, 3, 1, 0.5]",0.19,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,5,0,5,0,,,,,,,,,,,,,,,0.05853476666561619,None,0.5,"[4, 1, 3, 3, 1, 0.5]",0.06999999999999999,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,6,0,6,0,,,,,,,,,,,,,,,1.5108095666673762,None,4,"[4, 3, 1, 3, 1, 0.5]",0.9099999999999999,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,7,0,7,0,,,,,,,,,,,,,,,0.06659866666814196,None,3,"[4, 3, 1, 3, 1, 0.5]",0.6699999999999999,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,8,0,8,0,,,,,,,,,,,,,,,0.08341943333289237,None,1,"[4, 3, 1, 3, 1, 0.5]",0.19,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,9,0,9,0,,,,,,,,,,,,,,,0.061003866667306283,None,3,"[4, 3, 1, 3, 1, 0.5]",0.6699999999999999,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,10,0,10,0,,,,,,,,,,,,,,,0.07385396666722954,None,1,"[4, 3, 1, 3, 1, 0.5]",0.19,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,11,0,11,0,,,,,,,,,,,,,,,0.05487336666737974,None,0.5,"[4, 3, 1, 3, 1, 0.5]",0.06999999999999999,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,12,0,12,0,,,,,,,,,,,,,,,1.50445473333275,None,4,"[4, 1, 3, 3, 1, 0.5]",0.9099999999999999,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,13,0,13,0,,,,,,,,,,,,,,,0.10120683333479974,None,1,"[4, 1, 3, 3, 1, 0.5]",0.19,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,14,0,14,0,,,,,,,,,,,,,,,0.07427066666787141,None,3,"[4, 1, 3, 3, 1, 0.5]",0.6699999999999999,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,15,0,15,0,,,,,,,,,,,,,,,0.07006896666644025,None,3,"[4, 1, 3, 3, 1, 0.5]",0.6699999999999999,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,16,0,16,0,,,,,,,,,,,,,,,0.05487343333152239,None,1,"[4, 1, 3, 3, 1, 0.5]",0.19,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,17,0,17,0,,,,,,,,,,,,,,,0.05093043333181413,None,0.5,"[4, 1, 3, 3, 1, 0.5]",0.06999999999999999,3,5,,,,,,,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384, ,,,,0,0,0,0,,,,,,,,,,,,,,,,,,,,,,,,,,42.56226919999972,None,2,0.9284733000004053,42.56226919999972,None,,001,2021_Feb_17_1536,audioseqq,2020.2.10,30.146206084848384,
 9.9334 WARNING Couldn't measure a consistent frame rate. - Is your graphics card set to sync to vertical blank? - Are you running other processes on your computer? 9.9338 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=, gamma=None, gammaErrorPolicy='raise', kwargs=UNKNOWN, lms=UNKNOWN, monitor=, 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') 9.9340 EXP window1: mouseVisible = True 9.9341 EXP window1: recordFrameIntervals = False 10.2667 EXP window1: recordFrameIntervals = True 10.3916 WARNING t of last frame was 58.69ms (=1/17) 10.4222 WARNING t of last frame was 30.68ms (=1/32) 10.4604 WARNING t of last frame was 27.00ms (=1/37) 10.4887 WARNING t of last frame was 28.31ms (=1/35) 10.5279 WARNING Multiple dropped frames have occurred - I'll stop bothering you about them! 10.9405 EXP window1: recordFrameIntervals = True 11.1171 EXP Created text_3 = TextStim(__class__=, 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) 11.2203 EXP Sound sound_2 set volume 1.000 11.2712 EXP Created text_2 = TextStim(__class__=, 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) 11.2938 EXP Sound sound_1 set volume 1.000 11.3494 EXP Created text = TextStim(__class__=, 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) 11.4070 EXP text_3: autoDraw = True 12.4451 EXP Created sequence: random, trialTypes=1, nReps=18, seed=None 12.4455 EXP New trial (rep=0, index=0): None 12.4502 DATA Keypress: space 12.4723 EXP text_3: autoDraw = False 13.9452 EXP Sound sound_2 started 14.4081 EXP Sound sound_2 reached end of file 14.4135 EXP New trial (rep=1, index=0): None 14.4699 EXP Sound sound_2 started 14.9384 EXP Sound sound_2 reached end of file 14.9427 EXP New trial (rep=2, index=0): None 14.9990 EXP Sound sound_2 started 15.9681 EXP Sound sound_2 reached end of file 15.9724 EXP New trial (rep=3, index=0): None 16.0309 EXP Sound sound_2 started 16.2481 EXP Sound sound_2 reached end of file 16.2522 EXP New trial (rep=4, index=0): None 16.3331 EXP Sound sound_2 started 17.0624 EXP Sound sound_2 reached end of file 17.0666 EXP New trial (rep=5, index=0): None 17.1081 EXP Sound sound_2 started 17.2432 EXP Sound sound_2 reached end of file 17.2473 EXP New trial (rep=6, index=0): None 18.7640 EXP Sound sound_2 started 19.2278 EXP Sound sound_2 reached end of file 19.2324 EXP New trial (rep=7, index=0): None 19.2963 EXP Sound sound_2 started 19.7589 EXP Sound sound_2 reached end of file 19.7634 EXP New trial (rep=8, index=0): None 19.8289 EXP Sound sound_2 started 20.8074 EXP Sound sound_2 reached end of file 20.8114 EXP New trial (rep=9, index=0): None 20.8739 EXP Sound sound_2 started 21.0880 EXP Sound sound_2 reached end of file 21.0924 EXP New trial (rep=10, index=0): None 21.1413 EXP Sound sound_2 started 21.8583 EXP Sound sound_2 reached end of file 21.8631 EXP New trial (rep=11, index=0): None 21.9055 EXP Sound sound_2 started 22.0427 EXP Sound sound_2 reached end of file 22.0470 EXP New trial (rep=12, index=0): None 23.5569 EXP Sound sound_2 started 24.0228 EXP Sound sound_2 reached end of file 24.0272 EXP New trial (rep=13, index=0): None 24.0895 EXP Sound sound_2 started 24.5688 EXP Sound sound_2 reached end of file 24.5730 EXP New trial (rep=14, index=0): None 24.6351 EXP Sound sound_2 started 25.6003 EXP Sound sound_2 reached end of file 25.6043 EXP New trial (rep=15, index=0): None 25.6449 EXP Sound sound_2 started 26.3578 EXP Sound sound_2 reached end of file 26.3617 EXP New trial (rep=16, index=0): None 26.4156 EXP Sound sound_2 started 26.6486 EXP Sound sound_2 reached end of file 26.6537 EXP New trial (rep=17, index=0): None 26.7197 EXP Sound sound_2 started 26.8819 EXP Sound sound_2 reached end of file 26.9149 EXP text_2: autoDraw = True 28.5557 EXP Created sequence: random, trialTypes=1, nReps=60, seed=None 28.5572 EXP New trial (rep=0, index=0): None 28.5584 EXP Created sequence: random, trialTypes=1, nReps=18, seed=None 28.5592 EXP New trial (rep=0, index=0): None 28.5657 DATA Keypress: space 28.5993 EXP text_2: autoDraw = False 30.0606 EXP Sound sound_1 started 30.9962 EXP Sound sound_1 reached end of file 31.0038 EXP New trial (rep=1, index=0): None 31.0628 EXP Sound sound_1 started 31.2685 EXP Sound sound_1 reached end of file 31.2740 EXP New trial (rep=2, index=0): None 31.3256 EXP Sound sound_1 started 32.0081 EXP Sound sound_1 reached end of file 32.0143 EXP New trial (rep=3, index=0): None 32.0927 EXP Sound sound_1 started 32.7779 EXP Sound sound_1 reached end of file 32.7840 EXP New trial (rep=4, index=0): None 32.8436 EXP Sound sound_1 started 33.0480 EXP Sound sound_1 reached end of file 33.0529 EXP New trial (rep=5, index=0): None 33.1097 EXP Sound sound_1 started 33.2063 EXP Sound sound_1 reached end of file 33.2116 EXP New trial (rep=6, index=0): None 34.7153 EXP Sound sound_1 started 35.6376 EXP Sound sound_1 reached end of file 35.6425 EXP New trial (rep=7, index=0): None 35.7022 EXP Sound sound_1 started 36.3876 EXP Sound sound_1 reached end of file 36.3925 EXP New trial (rep=8, index=0): None 36.4682 EXP Sound sound_1 started 36.6780 EXP Sound sound_1 reached end of file 36.6845 EXP New trial (rep=9, index=0): None 36.7466 EXP Sound sound_1 started 37.4336 EXP Sound sound_1 reached end of file 37.4393 EXP New trial (rep=10, index=0): None 37.5037 EXP Sound sound_1 started 37.7078 EXP Sound sound_1 reached end of file 37.7125 EXP New trial (rep=11, index=0): None 37.7651 EXP Sound sound_1 started 37.8479 EXP Sound sound_1 reached end of file 37.8545 EXP New trial (rep=12, index=0): None 39.3505 EXP Sound sound_1 started 40.2781 EXP Sound sound_1 reached end of file 40.2838 EXP New trial (rep=13, index=0): None 40.3791 EXP Sound sound_1 started 40.6116 EXP Sound sound_1 reached end of file 40.6166 EXP New trial (rep=14, index=0): None 40.6822 EXP Sound sound_1 started 41.3778 EXP Sound sound_1 reached end of file 41.3827 EXP New trial (rep=15, index=0): None 41.4443 EXP Sound sound_1 started 42.1284 EXP Sound sound_1 reached end of file 42.1347 EXP New trial (rep=16, index=0): None 42.1799 EXP Sound sound_1 started 42.3877 EXP Sound sound_1 reached end of file 42.3937 EXP New trial (rep=17, index=0): None 42.4295 EXP Sound sound_1 started 42.5263 EXP Sound sound_1 reached end of file 42.5623 EXP text: autoDraw = True 43.5000 EXP New trial (rep=1, index=0): None 43.5008 EXP Created sequence: random, trialTypes=1, nReps=24, seed=None 43.5013 EXP New trial (rep=0, index=0): None 43.5048 DATA Keypress: 2 43.5276 EXP text: autoDraw = False 44.0761 DATA Keypress: escape 44.4453 EXP window1: mouseVisible = True
 ... ... @@ -206,14 +206,14 @@ function experimentInit() { return Number.parseFloat(((0.27 * n) - 0.05)); } function shuffle_list(list) { util.shuffle(list); shuffle(list); for (var ii, _pj_c = 0, _pj_a = list, _pj_b = _pj_a.length; (_pj_c < _pj_b); _pj_c += 1) { ii = _pj_a[_pj_c]; util.shuffle(ii); shuffle(ii); } return list; } total = [[[2, 2, 4, 1, 3, 0.4], [2, 2, 4, 1, 3, 0.4], [2, 2, 4, 3, 1, 0.4]], [[3, 1, 4, 1, 3, 0.4], [3, 1, 4, 1, 3, 0.4], [3, 1, 4, 3, 1, 0.4]], [[3, 1, 4, 2, 2, 0.4], [3, 1, 4, 2, 2, 0.4], [1, 3, 4, 2, 2, 0.4]], [[4, 1, 3, 3, 1, 0.4], [4, 1, 3, 3, 1, 0.4], [4, 3, 1, 3, 1, 0.4]], [[4, 3, 1, 1, 3, 0.4], [4, 3, 1, 1, 3, 0.4], [4, 1, 3, 1, 3, 0.4]], [[4, 3, 1, 2, 2, 0.4], [4, 3, 1, 2, 2, 0.4], [4, 1, 3, 2, 2, 0.4]], [[1, 1, 2, 3, 1, 4, 0.4], [1, 1, 2, 3, 1, 4, 0.4], [1, 1, 2, 1, 3, 4, 0.4]], [[1, 1, 2, 4, 2, 2, 0.4], [1, 1, 2, 4, 2, 2, 0.4], [2, 1, 1, 4, 2, 2, 0.4]], [[2, 1, 1, 1, 3, 4, 0.4], [2, 1, 1, 1, 3, 4, 0.4], [2, 1, 1, 3, 1, 4, 0.4]], [[2, 2, 2, 1, 1, 4, 0.4], [2, 2, 2, 1, 1, 4, 0.4], [2, 2, 1, 1, 2, 4, 0.4]], [[2, 2, 3, 1, 1, 3, 0.4], [2, 2, 3, 1, 1, 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, 1, 1, 3, 1, 0.5], [4, 1, 1, 1, 1, 1, 3, 0.5]], [[4, 2, 2, 1, 1, 1, 1, 0.5], [4, 2, 2, 1, 1, 1, 1, 0.5], [4, 2, 1, 1, 2, 1, 1, 0.5]], [[1, 1, 1, 1, 4, 3, 1, 0.5], [1, 1, 1, 1, 4, 3, 1, 0.5], [1, 1, 1, 1, 4, 1, 3, 0.5]], [[1, 1, 2, 2, 1, 1, 4, 0.5], [1, 1, 2, 2, 1, 1, 4, 0.5], [1, 1, 2, 1, 1, 2, 4, 0.5]], [[1, 1, 2, 3, 1, 1, 3, 0.5], [1, 1, 2, 3, 1, 1, 3, 0.5], [1, 1, 2, 3, 1, 3, 1, 0.5]], [[2, 2, 1, 1, 1, 1, 4, 0.5], [2, 2, 1, 1, 1, 1, 4, 0.5], [2, 1, 1, 2, 1, 1, 4, 0.5]], [[3, 1, 2, 1, 1, 1, 3, 0.5], [3, 1, 2, 1, 1, 1, 3, 0.5], [3, 1, 2, 1, 1, 3, 1, 0.5]], [[3, 1, 2, 2, 1, 1, 2, 0.5], [3, 1, 2, 2, 1, 1, 2, 0.5], [1, 3, 2, 2, 1, 1, 2, 0.5]]]; a = 0; b = 0; c = 0; ... ... @@ -249,7 +249,7 @@ function experimentInit() { } } } ran = (Math.floor((Math.random() * ((6 - 1) + 1))) + 1); ran = randint(1, 6); stop=function(ran) { if ((ran === 1)) { return num1_to_sec(list[a][b][c]); ... ... @@ -1231,7 +1231,7 @@ function code2RoutineEnd(snapshot) { b = 0; if ((a < 29)) { a += 1; ran = random.randint(1, 6); ran = randint(1, 6); stop(ran); intervall = list[a][b].length; repetitionn(intervall); ... ...
 ... ... @@ -217,14 +217,14 @@ function experimentInit() { return Number.parseFloat(((0.27 * n) - 0.05)); } function shuffle_list(list) { util.shuffle(list); shuffle(list); for (var ii, _pj_c = 0, _pj_a = list, _pj_b = _pj_a.length; (_pj_c < _pj_b); _pj_c += 1) { ii = _pj_a[_pj_c]; util.shuffle(ii); shuffle(ii); } return list; } total = [[[2, 2, 4, 1, 3, 0.4], [2, 2, 4, 1, 3, 0.4], [2, 2, 4, 3, 1, 0.4]], [[3, 1, 4, 1, 3, 0.4], [3, 1, 4, 1, 3, 0.4], [3, 1, 4, 3, 1, 0.4]], [[3, 1, 4, 2, 2, 0.4], [3, 1, 4, 2, 2, 0.4], [1, 3, 4, 2, 2, 0.4]], [[4, 1, 3, 3, 1, 0.4], [4, 1, 3, 3, 1, 0.4], [4, 3, 1, 3, 1, 0.4]], [[4, 3, 1, 1, 3, 0.4], [4, 3, 1, 1, 3, 0.4], [4, 1, 3, 1, 3, 0.4]], [[4, 3, 1, 2, 2, 0.4], [4, 3, 1, 2, 2, 0.4], [4, 1, 3, 2, 2, 0.4]], [[1, 1, 2, 3, 1, 4, 0.4], [1, 1, 2, 3, 1, 4, 0.4], [1, 1, 2, 1, 3, 4, 0.4]], [[1, 1, 2, 4, 2, 2, 0.4], [1, 1, 2, 4, 2, 2, 0.4], [2, 1, 1, 4, 2, 2, 0.4]], [[2, 1, 1, 1, 3, 4, 0.4], [2, 1, 1, 1, 3, 4, 0.4], [2, 1, 1, 3, 1, 4, 0.4]], [[2, 2, 2, 1, 1, 4, 0.4], [2, 2, 2, 1, 1, 4, 0.4], [2, 2, 1, 1, 2, 4, 0.4]], [[2, 2, 3, 1, 1, 3, 0.4], [2, 2, 3, 1, 1, 3, 0.4], [2, 2, 3, 1, 3, 1, 0.4]], [[3, 1, 1, 3, 2, 2, 0.4], [3, 1, 1, 3, 2, 2, 0.4], [3, 1, 3, 1, 2, 2, 0.4]], [[2, 1, 1, 2, 2, 4, 0.4], [2, 1, 1, 2, 2, 4, 0.4], [1, 1, 2, 2, 2, 4, 0.4]], [[2, 1, 1, 4, 1, 3, 0.4], [2, 1, 1, 4, 1, 3, 0.4], [2, 1, 1, 4, 3, 1, 0.4]], [[2, 2, 1, 3, 3, 1, 0.4], [2, 2, 1, 3, 3, 1, 0.4], [2, 2, 1, 3, 1, 3, 0.4]], [[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, 2, 3, 1, 1, 3, 0.5], [1, 1, 2, 3, 1, 3, 1, 0.5]], [[2, 2, 1, 1, 1, 1, 4, 0.5], [2, 2, 1, 1, 1, 1, 4, 0.5], [2, 1, 1, 2, 1, 1, 4, 0.5]], [[3, 1, 2, 1, 1, 1, 3, 0.5], [3, 1, 2, 1, 1, 1, 3, 0.5], [3, 1, 2, 1, 1, 3, 1, 0.5]], [[3, 1, 2, 2, 1, 1, 2, 0.5], [3, 1, 2, 2, 1, 1, 2, 0.5], [1, 3, 2, 2, 1, 1, 2, 0.5]]]; a = 0; b = 0; c = 0; ... ... @@ -260,7 +260,7 @@ function experimentInit() { } } } ran = (Math.floor((Math.random() * ((6 - 1) + 1))) + 1); ran = randint(1, 6); stop=function(ran) { if ((ran === 1)) { return num1_to_sec(list[a][b][c]); ... ... @@ -735,7 +735,6 @@ var frameRemains; function vssoundRoutineEachFrame(snapshot) { return function () { //------Loop for each frame of Routine 'vssound'------- let continueRoutine = true; // until we're told otherwise // get current time t = vssoundClock.getTime(); frameN = frameN + 1;// number of completed frames (so 0 is the first frame) ... ... @@ -746,15 +745,14 @@ function vssoundRoutineEachFrame(snapshot) { sound_2.tStart = t; // (not accounting for frame time here) sound_2.frameNStart = frameN; // exact frame index psychoJS.window.callOnFlip(function(){ sound_2.play(); }); // screen flip 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 if (sound_2.status === PsychoJS.Status.STARTED && t >= frameRemains) { //if (numtosec(vslist[z][x]) > 0.5) { sound_2.stop(); // stop the sound (if longer than duration) 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) sound_2.status = PsychoJS.Status.FINISHED; //} } } // check for quit (typically the Esc key) if (psychoJS.experiment.experimentEnded || psychoJS.eventManager.getKeys({keyList:['escape']}).length > 0) { ... ... @@ -1089,7 +1087,6 @@ function SOUNDRoutineBegin(snapshot) { function SOUNDRoutineEachFrame(snapshot) { return function () { //------Loop for each frame of Routine 'SOUND'------- let continueRoutine = true; // until we're told otherwise // get current time t = SOUNDClock.getTime(); frameN = frameN + 1;// number of completed frames (so 0 is the first frame) ... ... @@ -1100,15 +1097,14 @@ function SOUNDRoutineEachFrame(snapshot) { sound_1.tStart = t; // (not accounting for frame time here) sound_1.frameNStart = frameN; // exact frame index psychoJS.window.callOnFlip(function(){ sound_1.play(); }); // screen flip sound_1.play(); // start the sound (it finishes automatically) sound_1.status = PsychoJS.Status.STARTED; } frameRemains = durationn(intervall)[c] + stop(ran) - psychoJS.window.monitorFramePeriod * 0.75; // most of one frame period left if (sound_1.status === PsychoJS.Status.STARTED && t >= frameRemains) { //if (stop(ran) > 0.5) { sound_1.stop(); // stop the sound (if longer than duration) if ((sound_1.status === PsychoJS.Status.STARTED || sound_1.status === PsychoJS.Status.FINISHED) && t >= frameRemains) { if (stop(ran) > 0.5) { sound_1.stop(); // stop the sound (if longer than duration) sound_1.status = PsychoJS.Status.FINISHED; //} } } // check for quit (typically the Esc key) if (psychoJS.experiment.experimentEnded || psychoJS.eventManager.getKeys({keyList:['escape']}).length > 0) { ... ... @@ -1234,7 +1230,7 @@ function code2RoutineEnd(snapshot) { b = 0; if ((a < 29)) { a += 1; ran = random.randint(1, 6); ran = randint(1, 6); stop(ran); intervall = list[a][b].length; repetitionn(intervall); ... ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!