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_SRT.m @ 29:b51bf546ca3f

History | View | Annotate | Download (2.23 KB)

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

    
4
stimulusParameters.subjectSampleRate=44100;
5

    
6
%  assessment method
7
% {'oneIntervalUpDown', 'MaxLikelihood', '2I2AFC++', '2I2AFC+++'}
8
experiment.threshEstMethod='oneIntervalUpDown';
9
% {'cued', 'noCue'};
10
stimulusParameters.includeCue=0;
11
stimulusParameters.cueTestDifference=10;
12

    
13
experiment.singleIntervalMaxTrials=10;
14
experiment.maxTrials=10;
15
experiment.allowCatchTrials= 0;
16

    
17
% {'tone','noise', 'pinkNoise','whiteNoise','OHIO'}
18
stimulusParameters.WRVname='targetLevel';
19
stimulusParameters.WRVstartValues=60 ;
20
stimulusParameters.WRVsteps=[5 2];
21
stimulusParameters.WRVlimits=[-30 110];
22

    
23
% target variable: slope=1, start going down.
24
experiment.psyFunSlope=1;
25
withinRuns.direction='down';
26

    
27
betweenRuns.variableName1='targetFrequency';
28
betweenRuns.variableList1=1000;
29
betweenRuns.variableName2='maskerDuration';
30
betweenRuns.variableList2=0.1 ;
31
% 1='fixed sequence', 2='randomize within blocks', 3='randomize across
32
% blocks'
33
betweenRuns.randomizeSequence=1; % 'random sequence'
34

    
35
% delay > masker > gap > target
36

    
37
stimulusParameters.stimulusDelay=0.3;
38

    
39
% maskerTypes={'tone','noise', 'pinkNoise','TEN','whiteNoise'};
40
stimulusParameters.maskerType='tone';
41
stimulusParameters.maskerPhase='sin';
42
stimulusParameters.maskerDuration=0.0;
43
stimulusParameters.maskerLevel= -50;
44
stimulusParameters.maskerRelativeFrequency= 1 ;  % not used
45

    
46
stimulusParameters.gapDuration=0.0;
47

    
48
% targetTypes={'tone','noise', 'pinkNoise','whiteNoise','OHIO'};
49
stimulusParameters.targetType='digitStrings';
50
stimulusParameters.targetPhase='sin';
51
stimulusParameters.targetFrequency=1000;
52
stimulusParameters.targetDuration=2;
53
stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1);
54

    
55
stimulusParameters.rampDuration=0.004;
56
stimulusParameters.stimulusDelay=1;
57

    
58
% forced choice window interval
59
stimulusParameters.AFCsilenceDuration=0.5;
60

    
61
% {'none','noise', 'pinkNoise', 'TEN','noiseDich', 'pinkNoiseDich','whiteNoise'}
62
stimulusParameters.backgroundType='24TalkerBabble'; 
63
stimulusParameters.backgroundLevel= 60;
64

    
65
% instructions to user
66
%   single interval up/down no cue
67
stimulusParameters.instructions{1}= ...
68
    [{'Type three digits in the box (top left)'}, { }, ...
69
    {'then hit return'}];
70

    
71
stimulusParameters.numOHIOtones=1;
72