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_TMCmodel.m @ 30:1a502830d462

History | View | Annotate | Download (1.64 KB)

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

    
4
paradigm_training(handles) % default
5

    
6
stimulusParameters.WRVname='maskerLevel';
7
stimulusParameters.WRVstartValues=30;
8
stimulusParameters.WRVsteps= [-10 -4];
9
stimulusParameters.WRVlimits=[-30 110];
10

    
11
stimulusParameters.cueTestDifference = 10;
12
experiment.psyFunSlope = -1;
13
withinRuns.direction='up';
14

    
15
betweenRuns.variableName1='gapDuration';
16
betweenRuns.variableList1=[ 0.09 0.01:0.02:0.07 0.02:0.02:.08 0.005];
17
betweenRuns.variableName2='targetFrequency';
18
% retain existing targetFrequencies
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=1;
27
experiment.singleIntervalMaxTrials=10;
28

    
29
stimulusParameters.gapDuration=betweenRuns.variableList1;
30

    
31
stimulusParameters.targetType='tone';
32
stimulusParameters.targetPhase='sin';
33
stimulusParameters.targetFrequency=betweenRuns.variableList2(1);
34
stimulusParameters.targetDuration=0.016;
35
stimulusParameters.targetLevel=NaN;
36

    
37
stimulusParameters.rampDuration=0.004;
38

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