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

History | View | Annotate | Download (2.45 KB)

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