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 / reserve team / paradigm_OHIOabs.m @ 0:f233164f4c86

History | View | Annotate | Download (1.99 KB)

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

    
4
paradigm_training(handles) % default
5

    
6
% find the  threshold for a tonecomplex  consisting of a sequence of 10-ms tones
7
%   whose frequencies are chosen at random from a list (OHIOfrequencies)
8
% All tones are presented at the same level (SL) computed using absolute
9
%   threshols specified in OHIOthresholds;
10
% The duration of the complex is increased across runs and the number of tones is
11
%   controlled by OHIOdurations, (for each 20 ms a further tone is added.
12
% The frequency of the tones is changed on each trial
13

    
14
experiment.OHIOfrequencies=[494, 663, 870, 1125, 1442, 1838, 2338, 2957, 3725, 4680, 5866,  7334]; %Hz.
15
% User must specify abs thresholds (dB SPL) of each tone frequency
16
% experiment.OHIOthresholds= [18	16	16	19	20	22	24	26	27	30	32	35];
17

    
18
%  assessment method
19
% {'oneIntervalUpDown', 'MaxLikelihood', '2I2AFC++', '2I2AFC+++'}
20
experiment.threshEstMethod='oneIntervalUpDown';
21
% {'cued', 'noCue'};
22

    
23
stimulusParameters.WRVname='targetLevel';
24
stimulusParameters.WRVstartValues=20 ;
25
stimulusParameters.WRVsteps=[10 2];
26
stimulusParameters.WRVlimits=[-30 110];
27

    
28
betweenRuns.variableName1='numOHIOtones';
29
betweenRuns.variableList1= 1:12; % i.e. the frequency to be used
30
betweenRuns.variableName2='stimulusDelay';
31
betweenRuns.variableList2=0.05;
32
betweenRuns.randomizeSequence=2; % not random sequence
33

    
34
stimulusParameters.targetType='OHIO';
35
stimulusParameters.targetPhase='sin';
36
stimulusParameters.targetFrequency=experiment.OHIOfrequencies;
37
stimulusParameters.targetDuration=0.01; % overruled by OHIO program
38
stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1);
39

    
40
stimulusParameters.rampDuration=0.005;
41

    
42
% instructions to user
43
%   single interval up/down no cue
44
stimulusParameters.instructions{1}= [{'YES if you hear the tone clearly'}, { }, { 'NO if not (or you are uncertain'}];
45
%   single interval up/down with cue
46
stimulusParameters.instructions{2}= [{'count the tones you hear clearly'}, { }, { 'ignore indistinct tones'}];
47