Mercurial > hg > map
comparison Copy_of_multithreshold 1.46/paradigms/paradigm_trainingIFMC.m @ 28:02aa9826efe0
mainly multiThreshold
author | Ray Meddis <rmeddis@essex.ac.uk> |
---|---|
date | Fri, 01 Jul 2011 12:59:47 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
27:d4a7675b0413 | 28:02aa9826efe0 |
---|---|
1 function paradigm_trainingIFMC(handles) | |
2 global stimulusParameters experiment betweenRuns | |
3 | |
4 paradigm_training(handles) % default | |
5 | |
6 stimulusParameters.WRVname='maskerLevel'; | |
7 stimulusParameters.WRVstartValues=-10; | |
8 stimulusParameters.WRVsteps= [-10 -2]; | |
9 stimulusParameters.WRVlimits=[-30 110]; | |
10 | |
11 stimulusParameters.cueTestDifference = 10; | |
12 experiment.psyFunSlope = -1; | |
13 withinRuns.direction='up'; | |
14 | |
15 betweenRuns.variableName1='maskerRelativeFrequency'; | |
16 betweenRuns.variableList1=[ 0.5 .9 .7 1.3 ]; | |
17 betweenRuns.variableName2='targetFrequency'; | |
18 % keep old list of target frequencies | |
19 betweenRuns.variableList2=str2num(get(handles.edittargetFrequency,'string')); | |
20 betweenRuns.randomizeSequence=1; % 'random sequence' | |
21 | |
22 stimulusParameters.maskerType='tone'; | |
23 stimulusParameters.maskerPhase='sin'; | |
24 stimulusParameters.maskerDuration=0.108; | |
25 stimulusParameters.maskerLevel=stimulusParameters.WRVstartValues(1); | |
26 stimulusParameters.maskerRelativeFrequency=betweenRuns.variableList1; | |
27 | |
28 stimulusParameters.gapDuration=0.03; | |
29 | |
30 stimulusParameters.targetType='tone'; | |
31 stimulusParameters.targetPhase='sin'; | |
32 stimulusParameters.targetFrequency=betweenRuns.variableList2(1); | |
33 stimulusParameters.targetDuration=0.016; | |
34 stimulusParameters.targetLevel= 30; | |
35 | |
36 stimulusParameters.rampDuration=0.004; | |
37 | |
38 % instructions to user | |
39 % single interval up/down no cue | |
40 stimulusParameters.instructions{1}=[{'YES if you hear the added click'}, { }, { 'NO if not (or you are uncertain'}]; | |
41 % single interval up/down with cue | |
42 stimulusParameters.instructions{2}=[{'count how many distinct clicks you hear'},{'ignore the tones'},{' '},... | |
43 {'The clicks must be **clearly distinct** to count'}]; |