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 @ 33:161913b595ae

History | View | Annotate | Download (2.54 KB)

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

    
4
stimulusParameters.subjectSampleRate=44100; % compatible with file input
5
% stimulusParameters.subjectSampleRate=64000; % compatible with file input
6
% stimulusParameters.subjectSampleRate=128000; % compatible with file input
7

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

    
15
experiment.singleIntervalMaxTrials=10;
16
experiment.maxTrials=10;
17
experiment.allowCatchTrials= 1;
18

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

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

    
29
betweenRuns.variableName1='targetFrequency';
30
betweenRuns.variableList1=1000;
31
betweenRuns.variableName2='targetDuration';
32
betweenRuns.variableList2=0.1 ;
33
% 'randomize within blocks', 'fixed sequence', 'randomize across blocks'
34
betweenRuns.randomizeSequence='randomize within blocks'; 
35

    
36
% delay > masker > gap > target
37

    
38
stimulusParameters.stimulusDelay=0.3;
39

    
40
% maskerTypes={'tone','noise', 'pinkNoise','TEN','whiteNoise'};
41
experiment.maskerInUse=0;
42
stimulusParameters.maskerType='tone';
43
stimulusParameters.maskerPhase='cos';
44
stimulusParameters.maskerDuration=0.0;
45
stimulusParameters.maskerLevel= -50;
46
stimulusParameters.maskerRelativeFrequency= 1 ; 
47

    
48
stimulusParameters.gapDuration=0.0;
49

    
50
% targetTypes={'tone','noise', 'pinkNoise','whiteNoise','OHIO'};
51
stimulusParameters.targetType='tone';
52
stimulusParameters.targetPhase='cos'; %{'sin','cos','alt','rand'}
53
stimulusParameters.targetFrequency=1000;
54
stimulusParameters.targetDuration=0.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;
73