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_forwardMasking.m @ 31:c54a34161e4a

History | View | Annotate | Download (1.43 KB)

1
function paradigm_forwardMasking(handles)
2
global stimulusParameters experiment betweenRuns
3

    
4
paradigm_training(handles) % default
5

    
6
stimulusParameters.WRVname='targetLevel';
7
stimulusParameters.WRVstartValues=50;
8
stimulusParameters.WRVsteps= [10 2];
9
stimulusParameters.WRVlimits=[-30 110];
10

    
11
betweenRuns.variableName1='gapDuration';
12
betweenRuns.variableList1=[.005 0.01 0.02 0.04];
13
betweenRuns.variableName2='maskerLevel';
14
betweenRuns.variableList2=[80 60 40 20];
15

    
16
experiment.maskerInUse=1;
17
stimulusParameters.maskerType='tone';
18
stimulusParameters.maskerPhase='cos';
19
stimulusParameters.maskerDuration=0.108;
20
stimulusParameters.maskerLevel=20;
21
stimulusParameters.maskerRelativeFrequency=1;
22

    
23
stimulusParameters.gapDuration=betweenRuns.variableList1;
24

    
25
stimulusParameters.targetType='tone';
26
stimulusParameters.targetPhase='sin';
27
stimulusParameters.targetFrequency=1000;
28
stimulusParameters.targetDuration=0.02;
29
stimulusParameters.targetLevel=-stimulusParameters.WRVstartValues(1);
30

    
31
stimulusParameters.rampDuration=0.01;
32

    
33
% instructions to user
34
% single interval up/down no cue
35
stimulusParameters.instructions{1}=[{'YES if you hear the added click'}, { }, { 'NO if not (or you are uncertain'}];
36
% single interval up/down with cue
37
stimulusParameters.instructions{2}=[{'count how many distinct clicks you hear'},{'ignore the tones'},{' '},...
38
    {'The clicks must be **clearly distinct** to count'}];
39

    
40
experiment.maxTrials=10;
41
% catchTrials
42
experiment.allowCatchTrials= 1;
43

    
44