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 @ 0:f233164f4c86

History | View | Annotate | Download (2.42 KB)

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

    
4
stimulusParameters.subjectSampleRate=44100; % compatible with file input
5
stimulusParameters.subjectSampleRate=50000; % 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=20 ;
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
% 1='fixed sequence', 2='randomize within blocks', 3='randomize across
33
% blocks'
34
betweenRuns.randomizeSequence=1; % 'random sequence'
35

    
36
% delay > masker > gap > target
37

    
38
stimulusParameters.stimulusDelay=0.3;
39

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

    
47
stimulusParameters.gapDuration=0.0;
48

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

    
56
stimulusParameters.rampDuration=0.004;
57

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

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

    
65
% instructions to user
66
%   single interval up/down no cue
67
stimulusParameters.instructions{1}= [{'YES if you hear the tone clearly'}, { }, { 'NO if not (or you are uncertain'}];
68
%   single interval up/down with cue
69
stimulusParameters.instructions{2}= [{'count the tones you hear clearly'}, { }, { 'ignore indistinct tones'}];
70

    
71
stimulusParameters.numOHIOtones=1;
72