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

History | View | Annotate | Download (1.23 KB)

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

    
4
paradigm_training(handles) % default
5

    
6
stimulusParameters.WRVname='targetLevel';
7
stimulusParameters.WRVstartValues=40;
8
stimulusParameters.WRVsteps=[10 2];
9
stimulusParameters.WRVlimits=[-30 110];
10

    
11
betweenRuns.variableName1='targetDuration';
12
betweenRuns.variableList1=[ .016 .032 .064 .128 .256 .512];
13
betweenRuns.variableName2='targetFrequency';
14
betweenRuns.variableList2=1000;
15

    
16
experiment.maskerInUse=0;
17

    
18
stimulusParameters.targetType='tone';
19
stimulusParameters.targetPhase='sin';
20
% 		retain current target frequency
21
x=str2num(get(handles.edittargetFrequency,'string'));
22
stimulusParameters.targetFrequency=x(1);
23
stimulusParameters.targetDuration=betweenRuns.variableList2;
24
stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1);
25

    
26
stimulusParameters.rampDuration=0.004;
27

    
28
% instructions to user
29
%   single interval up/down no cue
30
stimulusParameters.instructions{1}=[{'YES if you hear the added click'}, { }, { 'NO if not (or you are uncertain'}];
31
%   single interval up/down with cue
32
stimulusParameters.instructions{2}=[{'count how many distinct clicks you hear'},{'ignore the tones'},{' '},...
33
    {'The clicks must be **clearly distinct** to count'}];
34