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 / Copy_of_multithreshold 1.46 / paradigms / reserve team / paradigm_OHIOrand.m @ 28:02aa9826efe0

History | View | Annotate | Download (1.65 KB)

1
function paradigm_OHIOrand(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
% fetch thresholds and frequencies
15
experiment=OHIOthresholds(experiment);
16

    
17
stimulusParameters.WRVname='targetLevel';
18
stimulusParameters.WRVstartValues=0 ;
19
stimulusParameters.WRVsteps=[10 2];
20
stimulusParameters.WRVlimits=[-30 110];
21

    
22
betweenRuns.variableName1='numOHIOtones';
23
betweenRuns.variableList1= [1 2 4 8 12];
24
betweenRuns.variableName2='stimulusDelay';
25
betweenRuns.variableList2=0.1;
26
betweenRuns.randomizeSequence=2; % not random sequence
27

    
28
stimulusParameters.targetType='OHIO';
29
stimulusParameters.targetPhase='sin';
30
stimulusParameters.targetFrequency=experiment.OHIOfrequencies;
31
stimulusParameters.targetDuration=betweenRuns.variableList2;
32
stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1);
33

    
34
stimulusParameters.rampDuration=0.005;
35

    
36
% instructions to user
37
%   single interval up/down no cue
38
stimulusParameters.instructions{1}= [{'YES if you hear the tone clearly'}, { }, { 'NO if not (or you are uncertain'}];
39
%   single interval up/down with cue
40
stimulusParameters.instructions{2}= [{'count the tones you hear clearly'}, { }, { 'ignore indistinct tones'}];
41