function paradigm_training(handles)
global stimulusParameters experiment betweenRuns

paradigmBase(handles) % default

% rest may be unnecessary

% stimulusParameters.subjectSampleRate=128000; % compatible with file input

%  assessment method
% {'oneIntervalUpDown', 'MaxLikelihood', '2I2AFC++', '2I2AFC+++'}
experiment.threshEstMethod='oneIntervalUpDown';
% {'cued', 'noCue'};
stimulusParameters.includeCue=1;
stimulusParameters.cueTestDifference=10;

experiment.singleIntervalMaxTrials=10;
experiment.maxTrials=10;
experiment.allowCatchTrials= 1;

% {'tone','noise', 'pinkNoise','whiteNoise','OHIO'}
stimulusParameters.WRVname='targetLevel';
stimulusParameters.WRVstartValues=30 ;
stimulusParameters.WRVsteps=[10 2];
stimulusParameters.WRVlimits=[-30 110];

% target variable: slope=1, start going down.
experiment.psyFunSlope=1;
withinRuns.direction='down';

betweenRuns.variableName1='targetFrequency';
betweenRuns.variableList1=1000;
betweenRuns.variableName2='targetDuration';
betweenRuns.variableList2=0.1 ;
% 'randomize within blocks', 'fixed sequence', 'randomize across blocks'
betweenRuns.randomizeSequence='randomize within blocks'; 

% delay > masker > gap > target

stimulusParameters.stimulusDelay=0.3;

% maskerTypes={'tone','noise', 'pinkNoise','TEN','whiteNoise'};
experiment.maskerInUse=0;
stimulusParameters.maskerType='tone';
stimulusParameters.maskerPhase='cos';
stimulusParameters.maskerDuration=0.0;
stimulusParameters.maskerLevel= -50;
stimulusParameters.maskerRelativeFrequency= 1 ; 

stimulusParameters.gapDuration=0.0;

% targetTypes={'tone','noise', 'pinkNoise','whiteNoise','OHIO'};
stimulusParameters.targetType='tone';
stimulusParameters.targetPhase='cos'; %{'sin','cos','alt','rand'}
stimulusParameters.targetFrequency=1000;
stimulusParameters.targetDuration=0.1;
stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1);

stimulusParameters.rampDuration=0.004;

% forced choice window interval
stimulusParameters.AFCsilenceDuration=0.5;

% {'none','noise', 'pinkNoise', 'TEN','noiseDich', 'pinkNoiseDich','whiteNoise'}
stimulusParameters.backgroundType='none'; 
stimulusParameters.backgroundLevel=-100;

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

stimulusParameters.numOHIOtones=1;

