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.
root / multithreshold 1.46 / paradigms / paradigm_SRT.m @ 33:161913b595ae
History | View | Annotate | Download (1.92 KB)
| 1 |
function paradigm_SRT(handles) |
|---|---|
| 2 |
global stimulusParameters experiment betweenRuns |
| 3 |
|
| 4 |
stimulusParameters.subjectSampleRate=44100; |
| 5 |
|
| 6 |
% assessment method |
| 7 |
% {'oneIntervalUpDown', 'MaxLikelihood', '2I2AFC++', '2I2AFC+++'}
|
| 8 |
experiment.threshEstMethod='oneIntervalUpDown'; |
| 9 |
% {'cued', 'noCue'};
|
| 10 |
stimulusParameters.includeCue=0; |
| 11 |
stimulusParameters.cueTestDifference=10; |
| 12 |
|
| 13 |
experiment.singleIntervalMaxTrials=10; |
| 14 |
experiment.maxTrials=10; |
| 15 |
experiment.allowCatchTrials= 0; |
| 16 |
|
| 17 |
% {'tone','noise', 'pinkNoise','whiteNoise','OHIO'}
|
| 18 |
stimulusParameters.WRVname='targetLevel'; |
| 19 |
stimulusParameters.WRVstartValues=60 ; |
| 20 |
stimulusParameters.WRVsteps=[5 2]; |
| 21 |
stimulusParameters.WRVlimits=[-30 110]; |
| 22 |
|
| 23 |
% target variable: slope=1, start going down. |
| 24 |
experiment.psyFunSlope=1; |
| 25 |
withinRuns.direction='down'; |
| 26 |
|
| 27 |
betweenRuns.variableName1='targetFrequency'; |
| 28 |
betweenRuns.variableList1=1000; |
| 29 |
betweenRuns.variableName2='maskerDuration'; |
| 30 |
betweenRuns.variableList2=0.1 ; |
| 31 |
|
| 32 |
% delay > masker > gap > target |
| 33 |
stimulusParameters.stimulusDelay=0.3; |
| 34 |
|
| 35 |
% maskerTypes={'tone','noise', 'pinkNoise','TEN','whiteNoise'};
|
| 36 |
experiment.maskerInUse=0; |
| 37 |
|
| 38 |
stimulusParameters.gapDuration=0.0; |
| 39 |
|
| 40 |
% targetTypes={'tone','noise', 'pinkNoise','whiteNoise','OHIO'};
|
| 41 |
stimulusParameters.targetType='digitStrings'; |
| 42 |
stimulusParameters.targetPhase='sin'; |
| 43 |
stimulusParameters.targetFrequency=1000; |
| 44 |
stimulusParameters.targetDuration=2; |
| 45 |
stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1); |
| 46 |
|
| 47 |
stimulusParameters.rampDuration=0.004; |
| 48 |
stimulusParameters.stimulusDelay=1; |
| 49 |
|
| 50 |
% forced choice window interval |
| 51 |
stimulusParameters.AFCsilenceDuration=0.5; |
| 52 |
|
| 53 |
% {'none','noise', 'pinkNoise', 'TEN','noiseDich', 'pinkNoiseDich','whiteNoise'}
|
| 54 |
stimulusParameters.backgroundType='24TalkerBabble'; |
| 55 |
stimulusParameters.backgroundLevel= 60; |
| 56 |
|
| 57 |
% instructions to user |
| 58 |
% single interval up/down no cue |
| 59 |
stimulusParameters.instructions{1}= ...
|
| 60 |
[{'Type three digits in the box (top left)'}, { }, ...
|
| 61 |
{'then hit return'}];
|
| 62 |
|
| 63 |
stimulusParameters.numOHIOtones=1; |
| 64 |
|