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 / paradigmBase.m @ 38:c2204b18f4a2

History | View | Annotate | Download (2.49 KB)

1 38:c2204b18f4a2 rmeddis
function paradigmBase(handles)
2
global stimulusParameters experiment betweenRuns
3
4
stimulusParameters.subjectSampleRate=44100; % compatible with file input
5
% stimulusParameters.subjectSampleRate=128000; % compatible with file input
6
7
%  assessment method
8
% {'oneIntervalUpDown', 'MaxLikelihood', '2I2AFC++', '2I2AFC+++'}
9
experiment.threshEstMethod='oneIntervalUpDown';
10
% {'cued', 'noCue'};
11
stimulusParameters.includeCue=1;
12
stimulusParameters.cueTestDifference=10;
13
14
experiment.singleIntervalMaxTrials=10;
15
experiment.maxTrials=10;
16
experiment.allowCatchTrials= 1;
17
18
% {'tone','noise', 'pinkNoise','whiteNoise','OHIO'}
19
stimulusParameters.WRVname='targetLevel';
20
stimulusParameters.WRVstartValues=30 ;
21
stimulusParameters.WRVsteps=[10 2];
22
stimulusParameters.WRVlimits=[-30 110];
23
24
% target variable: slope=1, start going down.
25
experiment.psyFunSlope=1;
26
withinRuns.direction='down';
27
28
betweenRuns.variableName1='targetFrequency';
29
betweenRuns.variableList1=1000;
30
betweenRuns.variableName2='targetDuration';
31
betweenRuns.variableList2=0.1 ;
32
% 'randomize within blocks', 'fixed sequence', 'randomize across blocks'
33
betweenRuns.randomizeSequence='randomize within blocks';
34
35
% delay > masker > gap > target
36
37
stimulusParameters.stimulusDelay=0.3;
38
39
% maskerTypes={'tone','noise', 'pinkNoise','TEN','whiteNoise'};
40
experiment.maskerInUse=0;
41
stimulusParameters.maskerType='tone';
42
stimulusParameters.maskerPhase='cos';
43
stimulusParameters.maskerDuration=0.0;
44
stimulusParameters.maskerLevel= -50;
45
stimulusParameters.maskerRelativeFrequency= 1 ;
46
47
stimulusParameters.gapDuration=0.0;
48
49
% targetTypes={'tone','noise', 'pinkNoise','whiteNoise','OHIO'};
50
stimulusParameters.targetType='tone';
51
stimulusParameters.targetPhase='cos'; %{'sin','cos','alt','rand'}
52
stimulusParameters.targetFrequency=1000;
53
stimulusParameters.targetDuration=0.1;
54
stimulusParameters.OHIOnTones=1;
55
stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1);
56
57
stimulusParameters.rampDuration=0.004;
58
59
% forced choice window interval
60
stimulusParameters.AFCsilenceDuration=0.5;
61
62
% {'none','noise', 'pinkNoise', 'TEN','noiseDich', 'pinkNoiseDich','whiteNoise'}
63
stimulusParameters.backgroundType='none';
64
stimulusParameters.backgroundLevel=-100;
65
66
% instructions to user
67
%   single interval up/down no cue
68
stimulusParameters.instructions{1}= [{'YES if you hear the tone clearly'}, { }, { 'NO if not (or you are uncertain'}];
69
%   single interval up/down with cue
70
stimulusParameters.instructions{2}= [{'count the tones you hear clearly'}, { }, { 'ignore indistinct tones'}];
71
72
stimulusParameters.numOHIOtones=1;