Mercurial > hg > map
annotate Copy_of_multithreshold 1.46/paradigms/paradigm_threshold_duration.m @ 28:02aa9826efe0
mainly multiThreshold
author | Ray Meddis <rmeddis@essex.ac.uk> |
---|---|
date | Fri, 01 Jul 2011 12:59:47 +0100 |
parents | |
children |
rev | line source |
---|---|
rmeddis@28 | 1 function paradigm_threshold_duration(handles) |
rmeddis@28 | 2 global stimulusParameters experiment betweenRuns |
rmeddis@28 | 3 |
rmeddis@28 | 4 paradigm_training(handles) % default |
rmeddis@28 | 5 |
rmeddis@28 | 6 stimulusParameters.WRVname='targetLevel'; |
rmeddis@28 | 7 stimulusParameters.WRVstartValues=40; |
rmeddis@28 | 8 stimulusParameters.WRVsteps=[10 2]; |
rmeddis@28 | 9 stimulusParameters.WRVlimits=[-30 110]; |
rmeddis@28 | 10 |
rmeddis@28 | 11 betweenRuns.variableName1='targetDuration'; |
rmeddis@28 | 12 betweenRuns.variableList1=[ .016 .032 .064 .128 .256 .512]; |
rmeddis@28 | 13 betweenRuns.variableName2='targetFrequency'; |
rmeddis@28 | 14 betweenRuns.variableList2=1000; |
rmeddis@28 | 15 betweenRuns.randomizeSequence=1; % 'random sequence' |
rmeddis@28 | 16 |
rmeddis@28 | 17 stimulusParameters.targetType='tone'; |
rmeddis@28 | 18 stimulusParameters.targetPhase='sin'; |
rmeddis@28 | 19 % retain current target frequency |
rmeddis@28 | 20 x=str2num(get(handles.edittargetFrequency,'string')); |
rmeddis@28 | 21 stimulusParameters.targetFrequency=x(1); |
rmeddis@28 | 22 stimulusParameters.targetDuration=betweenRuns.variableList2; |
rmeddis@28 | 23 stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1); |
rmeddis@28 | 24 |
rmeddis@28 | 25 stimulusParameters.rampDuration=0.004; |
rmeddis@28 | 26 |
rmeddis@28 | 27 % instructions to user |
rmeddis@28 | 28 % single interval up/down no cue |
rmeddis@28 | 29 stimulusParameters.instructions{1}=[{'YES if you hear the added click'}, { }, { 'NO if not (or you are uncertain'}]; |
rmeddis@28 | 30 % single interval up/down with cue |
rmeddis@28 | 31 stimulusParameters.instructions{2}=[{'count how many distinct clicks you hear'},{'ignore the tones'},{' '},... |
rmeddis@28 | 32 {'The clicks must be **clearly distinct** to count'}]; |
rmeddis@28 | 33 |