Revision 38:c2204b18f4a2 multiThreshold 1.46/paradigms
| multiThreshold 1.46/paradigms/paradigmBase.m | ||
|---|---|---|
| 1 |
function paradigmBase(handles) |
|
| 2 |
global stimulusParameters experiment betweenRuns |
|
| 3 |
|
|
| 4 |
stimulusParameters.subjectSampleRate=44100; % compatible with file input |
|
| 5 |
% stimulusParameters.subjectSampleRate=128000; % compatible with file input |
|
| 6 |
|
|
| 7 |
% assessment method |
|
| 8 |
% {'oneIntervalUpDown', 'MaxLikelihood', '2I2AFC++', '2I2AFC+++'}
|
|
| 9 |
experiment.threshEstMethod='oneIntervalUpDown'; |
|
| 10 |
% {'cued', 'noCue'};
|
|
| 11 |
stimulusParameters.includeCue=1; |
|
| 12 |
stimulusParameters.cueTestDifference=10; |
|
| 13 |
|
|
| 14 |
experiment.singleIntervalMaxTrials=10; |
|
| 15 |
experiment.maxTrials=10; |
|
| 16 |
experiment.allowCatchTrials= 1; |
|
| 17 |
|
|
| 18 |
% {'tone','noise', 'pinkNoise','whiteNoise','OHIO'}
|
|
| 19 |
stimulusParameters.WRVname='targetLevel'; |
|
| 20 |
stimulusParameters.WRVstartValues=30 ; |
|
| 21 |
stimulusParameters.WRVsteps=[10 2]; |
|
| 22 |
stimulusParameters.WRVlimits=[-30 110]; |
|
| 23 |
|
|
| 24 |
% target variable: slope=1, start going down. |
|
| 25 |
experiment.psyFunSlope=1; |
|
| 26 |
withinRuns.direction='down'; |
|
| 27 |
|
|
| 28 |
betweenRuns.variableName1='targetFrequency'; |
|
| 29 |
betweenRuns.variableList1=1000; |
|
| 30 |
betweenRuns.variableName2='targetDuration'; |
|
| 31 |
betweenRuns.variableList2=0.1 ; |
|
| 32 |
% 'randomize within blocks', 'fixed sequence', 'randomize across blocks' |
|
| 33 |
betweenRuns.randomizeSequence='randomize within blocks'; |
|
| 34 |
|
|
| 35 |
% delay > masker > gap > target |
|
| 36 |
|
|
| 37 |
stimulusParameters.stimulusDelay=0.3; |
|
| 38 |
|
|
| 39 |
% maskerTypes={'tone','noise', 'pinkNoise','TEN','whiteNoise'};
|
|
| 40 |
experiment.maskerInUse=0; |
|
| 41 |
stimulusParameters.maskerType='tone'; |
|
| 42 |
stimulusParameters.maskerPhase='cos'; |
|
| 43 |
stimulusParameters.maskerDuration=0.0; |
|
| 44 |
stimulusParameters.maskerLevel= -50; |
|
| 45 |
stimulusParameters.maskerRelativeFrequency= 1 ; |
|
| 46 |
|
|
| 47 |
stimulusParameters.gapDuration=0.0; |
|
| 48 |
|
|
| 49 |
% targetTypes={'tone','noise', 'pinkNoise','whiteNoise','OHIO'};
|
|
| 50 |
stimulusParameters.targetType='tone'; |
|
| 51 |
stimulusParameters.targetPhase='cos'; %{'sin','cos','alt','rand'}
|
|
| 52 |
stimulusParameters.targetFrequency=1000; |
|
| 53 |
stimulusParameters.targetDuration=0.1; |
|
| 54 |
stimulusParameters.OHIOnTones=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 |
|
|
| multiThreshold 1.46/paradigms/paradigm_OHIOabs.m | ||
|---|---|---|
| 1 |
function paradigm_OHIOabs(handles) |
|
| 2 |
global stimulusParameters experiment betweenRuns |
|
| 3 |
|
|
| 4 |
paradigmBase(handles) % default |
|
| 5 |
|
|
| 6 |
betweenRuns.variableName1='targetFrequency'; |
|
| 7 |
betweenRuns.variableList1=... |
|
| 8 |
[494, 663, 870, 1125, 1442, 1838, 2338, 2957, 3725, 4689, 5866, 7334]; |
|
| 9 |
betweenRuns.variableName2='targetDuration'; |
|
| 10 |
betweenRuns.variableList2= 0.01; |
|
| 11 |
|
|
| 12 |
experiment.maskerInUse=0; |
|
| 13 |
|
|
| 14 |
stimulusParameters.targetFrequency=betweenRuns.variableList1; |
|
| 15 |
stimulusParameters.targetDuration=betweenRuns.variableList2; |
|
| 16 |
stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1); |
|
| 17 |
|
|
| 18 |
stimulusParameters.WRVstartValues=30; |
|
| 19 |
experiment.singleIntervalMaxTrials=20; |
|
| 20 |
|
|
| 21 |
% forced choice window interval |
|
| 22 |
stimulusParameters.AFCsilenceDuration=0.5; |
|
| 23 |
|
|
| 24 |
|
|
| 25 |
% instructions to user |
|
| 26 |
% single interval up/down no cue |
|
| 27 |
stimulusParameters.instructions{1}=[{'YES if you hear the added click'}, { }, { 'NO if not (or you are uncertain'}];
|
|
| 28 |
% single interval up/down with cue |
|
| 29 |
stimulusParameters.instructions{2}=[{'count how many distinct clicks you hear'},{'ignore the tones'},{' '},...
|
|
| 30 |
{'The clicks must be **clearly distinct** to count'}];
|
|
| 31 |
|
|
| multiThreshold 1.46/paradigms/paradigm_OHIOrand.m | ||
|---|---|---|
| 1 |
function paradigm_OHIOrand(handles) |
|
| 2 |
global stimulusParameters experiment betweenRuns |
|
| 3 |
|
|
| 4 |
paradigmBase(handles) % default |
|
| 5 |
|
|
| 6 |
betweenRuns.variableName1='OHIOnTones'; |
|
| 7 |
betweenRuns.variableList1=... |
|
| 8 |
[2 4 8 12]; |
|
| 9 |
betweenRuns.variableName2='targetDuration'; |
|
| 10 |
betweenRuns.variableList2= 0.01; |
|
| 11 |
|
|
| 12 |
experiment.maskerInUse=0; |
|
| 13 |
|
|
| 14 |
stimulusParameters.OHIOnTones=betweenRuns.variableList1; |
|
| 15 |
stimulusParameters.targetDuration=betweenRuns.variableList2; |
|
| 16 |
stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1); |
|
| 17 |
|
|
| 18 |
|
|
| 19 |
stimulusParameters.WRVstartValues=30; |
|
| 20 |
experiment.singleIntervalMaxTrials=20; |
|
| 21 |
|
|
| 22 |
|
|
| 23 |
% forced choice window interval |
|
| 24 |
stimulusParameters.AFCsilenceDuration=0.5; |
|
| 25 |
|
|
| 26 |
|
|
| 27 |
% instructions to user |
|
| 28 |
% single interval up/down no cue |
|
| 29 |
stimulusParameters.instructions{1}=[{'YES if you hear the added click'}, { }, { 'NO if not (or you are uncertain'}];
|
|
| 30 |
% single interval up/down with cue |
|
| 31 |
stimulusParameters.instructions{2}=[{'count how many distinct clicks you hear'},{'ignore the tones'},{' '},...
|
|
| 32 |
{'The clicks must be **clearly distinct** to count'}];
|
|
| 33 |
|
|
| multiThreshold 1.46/paradigms/paradigm_OHIOspect.m | ||
|---|---|---|
| 1 |
function paradigm_OHIOspect(handles) |
|
| 2 |
global stimulusParameters experiment betweenRuns |
|
| 3 |
|
|
| 4 |
paradigmBase(handles) % default |
|
| 5 |
|
|
| 6 |
betweenRuns.variableName1='OHIOnTones'; |
|
| 7 |
betweenRuns.variableList1=... |
|
| 8 |
[2 4 8 12]; |
|
| 9 |
betweenRuns.variableName2='targetDuration'; |
|
| 10 |
betweenRuns.variableList2= 0.01; |
|
| 11 |
|
|
| 12 |
experiment.maskerInUse=0; |
|
| 13 |
|
|
| 14 |
stimulusParameters.OHIOnTones=betweenRuns.variableList1; |
|
| 15 |
stimulusParameters.targetDuration=betweenRuns.variableList2; |
|
| 16 |
stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1); |
|
| 17 |
|
|
| 18 |
|
|
| 19 |
stimulusParameters.WRVstartValues=30; |
|
| 20 |
experiment.singleIntervalMaxTrials=20; |
|
| 21 |
|
|
| 22 |
|
|
| 23 |
% forced choice window interval |
|
| 24 |
stimulusParameters.AFCsilenceDuration=0.5; |
|
| 25 |
|
|
| 26 |
|
|
| 27 |
% instructions to user |
|
| 28 |
% single interval up/down no cue |
|
| 29 |
stimulusParameters.instructions{1}=[{'YES if you hear the added click'}, { }, { 'NO if not (or you are uncertain'}];
|
|
| 30 |
% single interval up/down with cue |
|
| 31 |
stimulusParameters.instructions{2}=[{'count how many distinct clicks you hear'},{'ignore the tones'},{' '},...
|
|
| 32 |
{'The clicks must be **clearly distinct** to count'}];
|
|
| 33 |
|
|
| multiThreshold 1.46/paradigms/paradigm_OHIOspectemp.m | ||
|---|---|---|
| 1 |
function paradigm_OHIOspectemp(handles) |
|
| 2 |
global stimulusParameters experiment betweenRuns |
|
| 3 |
|
|
| 4 |
paradigmBase(handles) % default |
|
| 5 |
|
|
| 6 |
betweenRuns.variableName1='OHIOnTones'; |
|
| 7 |
betweenRuns.variableList1=... |
|
| 8 |
[2 4 8 12]; |
|
| 9 |
betweenRuns.variableName2='targetDuration'; |
|
| 10 |
betweenRuns.variableList2= 0.01; |
|
| 11 |
|
|
| 12 |
experiment.maskerInUse=0; |
|
| 13 |
|
|
| 14 |
stimulusParameters.OHIOnTones=betweenRuns.variableList1; |
|
| 15 |
stimulusParameters.targetDuration=betweenRuns.variableList2; |
|
| 16 |
stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1); |
|
| 17 |
|
|
| 18 |
|
|
| 19 |
stimulusParameters.WRVstartValues=30; |
|
| 20 |
experiment.singleIntervalMaxTrials=20; |
|
| 21 |
|
|
| 22 |
|
|
| 23 |
% forced choice window interval |
|
| 24 |
stimulusParameters.AFCsilenceDuration=0.5; |
|
| 25 |
|
|
| 26 |
|
|
| 27 |
% instructions to user |
|
| 28 |
% single interval up/down no cue |
|
| 29 |
stimulusParameters.instructions{1}=[{'YES if you hear the added click'}, { }, { 'NO if not (or you are uncertain'}];
|
|
| 30 |
% single interval up/down with cue |
|
| 31 |
stimulusParameters.instructions{2}=[{'count how many distinct clicks you hear'},{'ignore the tones'},{' '},...
|
|
| 32 |
{'The clicks must be **clearly distinct** to count'}];
|
|
| 33 |
|
|
| multiThreshold 1.46/paradigms/paradigm_OHIOtemp.m | ||
|---|---|---|
| 1 |
function paradigm_OHIOtemp(handles) |
|
| 2 |
global stimulusParameters experiment betweenRuns |
|
| 3 |
|
|
| 4 |
paradigmBase(handles) % default |
|
| 5 |
|
|
| 6 |
betweenRuns.variableName1='OHIOnTones'; |
|
| 7 |
betweenRuns.variableList1=... |
|
| 8 |
[2 4 8 12]; |
|
| 9 |
betweenRuns.variableName2='targetDuration'; |
|
| 10 |
betweenRuns.variableList2= 0.01; |
|
| 11 |
|
|
| 12 |
experiment.maskerInUse=0; |
|
| 13 |
|
|
| 14 |
stimulusParameters.OHIOnTones=betweenRuns.variableList1; |
|
| 15 |
stimulusParameters.targetDuration=betweenRuns.variableList2; |
|
| 16 |
stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1); |
|
| 17 |
|
|
| 18 |
|
|
| 19 |
stimulusParameters.WRVstartValues=30; |
|
| 20 |
experiment.singleIntervalMaxTrials=20; |
|
| 21 |
|
|
| 22 |
|
|
| 23 |
% forced choice window interval |
|
| 24 |
stimulusParameters.AFCsilenceDuration=0.5; |
|
| 25 |
|
|
| 26 |
|
|
| 27 |
% instructions to user |
|
| 28 |
% single interval up/down no cue |
|
| 29 |
stimulusParameters.instructions{1}=[{'YES if you hear the added click'}, { }, { 'NO if not (or you are uncertain'}];
|
|
| 30 |
% single interval up/down with cue |
|
| 31 |
stimulusParameters.instructions{2}=[{'count how many distinct clicks you hear'},{'ignore the tones'},{' '},...
|
|
| 32 |
{'The clicks must be **clearly distinct** to count'}];
|
|
| 33 |
|
|
Also available in: Unified diff