To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

The primary repository for this project is hosted at git://github.com/rmeddis/MAP.git .
This repository is a read-only copy which is updated automatically every hour.

Statistics Download as Zip
| Branch: | Revision:

root / multithreshold 1.46 / paradigms / paradigm_trainingIFMC.m @ 33:161913b595ae

History | View | Annotate | Download (1.58 KB)

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

    
21
experiment.maskerInUse=1;
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'}];