experimentDOA_cfg.m 4.31 KB
Newer Older
1
% experimentDOAMHA_cfg - example measurement configuration file -
2 3
%
% This matlab skript is called by afc_main when starting
4
% the experiment 'experimentDOA_cfg'.
Joanna Luberadzka's avatar
Joanna Luberadzka committed
5
%
6
% afc('main','experimentDOA','joa',90,5,'ollo_male','noproc','white');
Joanna Luberadzka's avatar
Joanna Luberadzka committed
7
%
8
% experimentDOA_cfg constructs a structure 'def' containing the complete
9 10 11 12 13
% configuration for the experiment.
% To design an own experiment, e.g., 'myexperiment'
% make changes in this file and save it as 'myexperiment_cfg.m'.
% The default values of all parameters are defined in 'default_cfg.m'
%
14
% See also help experimentDOA_set, experimentDOA_user, afc_main
15 16 17 18 19 20 21 22
%

% Copyright (c) 1999-2013 Stephan Ewert.

% general measurement procedure
def.measurementProcedure = 'transformedUpDown';	% measurement procedure
def.intervalnum = 3;				% number of intervals
def.rule = [1 2];				% [up down]-rule: [1 2] = 1-up 2-down
23
def.varstep = [6 5 1];				% [starting stepsize ... minimum stepsize] of the tracking variable
24 25 26 27 28
def.steprule = -1;				% stepsize is changed after each upper (-1) or lower (1) reversal
def.reversalnum = 6;				% number of reversals in measurement phase
def.repeatnum = 1;				% number of repeatitions of the experiment

% experimental variable (result of procedure yields dependent variable)
29 30

def.startvar = 40;				% starting value of the tracking variable
31
def.expvarunit = 'dB';				% unit of the tracking variable
32
def.expvardescription = 'signal level';	% description of the tracking variable
33 34

% limits for experimental variable
35
def.minvar = -100;				% minimum value of the tracking variable
36
def.maxvar = 60;				% maximum value of the tracking variable
37 38 39 40
def.terminate = 1;				% terminate execution on min/maxvar hit: 0 = warning, 1 = terminate
def.endstop = 3;				% Allows x nominal levels higher/lower than the limits before terminating (if def.terminate = 1) 

% experimental parameter (independent variable)
41 42 43
%def.exppar1 = [0 45 90];				% vector containing experimental parameters for which the exp is performed
%def.exppar1unit = 'deg';				% unit of experimental parameter
%def.exppar1description = 'reference angle';% description of the experimental parameter
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

% experimental parameter 2...N (independent variable)
% add here if required

% interface, feedback and messages 
def.mouse = 1;					% enables mouse/touch screen control (1), or disables (0) 
def.markinterval = 1;				% toggles visual interval marking on (1), off(0)
def.feedback = 1;				% visual feedback after response: 0 = no feedback, 1 = correct/false/measurement phase
def.messages = 'default';			% message configuration file, if 'autoSelect' AFC automatically selects depending on expname and language setting, fallback is 'default'. If 'default' or any arbitrary string, the respectively named _msg file is used.
def.language = 'EN';				% EN = english, DE = german, FR = french, DA = danish

% save paths and save function
def.result_path = '';				% where to save results
def.control_path = '';				% where to save control files
def.savefcn = 'default';			% function which writes results to disk

% samplerate and sound output
61 62 63 64 65
def.samplerate = 44100;				% sampling rate in Hz
def.intervallen = 1.1.*def.samplerate;	% length of each signal-presentation interval in samples (might be overloaded in 'expname_set')
def.pauselen = def.samplerate/2;				% length of pauses between signal-presentation intervals in samples (might be overloaded in 'expname_set')
def.presiglen = round(.002 * def.samplerate);				% length of signal leading the first presentation interval in samples (might be overloaded in 'expname_set')
def.postsiglen = def.presiglen;				% length of signal following the last presentation interval in samples (might be overloaded in 'expname_set')
66 67 68 69
def.bits = 16;					% output bit depth: 8 or 16 see def.externSoundCommand for 32 bits

% computing
def.allowpredict = 0;				% if 1 generate new stimuli during sound output if def.markinterval disabled
70
% def.markIntervalDelay = 0;
71 72 73
% tweaking
%def.keyboardResponseButtonMapping = {'a','s','d'};
%def.soundmexMark = 1;
74
def.markinterval = 0;
75 76 77 78 79 80 81 82 83 84 85 86

%def.internSoundCommand = 'sound';
%def.internSoundCommand = 'wavplay';
%def.internSoundCommand = 'audioplayer'; % 'sound' or 'audioplayer'
%def.markIntervalDelay = 0.5;        % tweak if audioplayer is used, default is 0

%def.externSoundCommand = '';%'soundmexprofree';

%def.bits = 16;
%def.deviceID = 0;

% eof