...
 
Commits (3)
...@@ -3,3 +3,8 @@ afc/soundmexpro/bin/soundmexpro.mexw32 ...@@ -3,3 +3,8 @@ afc/soundmexpro/bin/soundmexpro.mexw32
afc/soundmexpro/bin/soundmexpro.mexw64 afc/soundmexpro/bin/soundmexpro.mexw64
afc/control_experimentDOA_subject_5deg_ollo_female_white.dat afc/control_experimentDOA_subject_5deg_ollo_female_white.dat
afc/control_experimentDOA_subject_10deg_ollo_female_white.dat afc/control_experimentDOA_subject_10deg_ollo_female_white.dat
afc/experimentDOA_user.asv
*.asv
afc/experimentDOA_protocol.pro
afc/experimentDOA_subject_5deg_ollo_female_white.dat
afc/control_experimentDOA_subject_5deg_ollo_male_white.dat
% autoexec_cfg generated by Configure AFC. Add your local preferences here. % autoexec_cfg generated by Configure AFC. Add your local preferences here.
def.externSoundCommand = 'soundmexprofree';
def.language = 'EN'; def.language = 'EN';
No preview for this file type
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
% Copyright (c) 1999-2013 Stephan Ewert. % Copyright (c) 1999-2013 Stephan Ewert.
% directory with hrir data base: % directory with hrir data base:
def.hrirdir='/media/joanna/daten/user/joanna/Data/HRIR_HendrikKayser/' def.hrirdir='d:/hendrikk/hrirdatabase/';
% directory with ollo data base: % directory with ollo data base:
def.ollodir='/media/joanna/daten/user/joanna/Data/my_OLLO/OLLO_data/OLLO2.0_NO/' def.ollodir='D:\hendrikk\Corpora\OLLO\OLLO2.0_NO\';
addpath d:/hendrikk/hrirdatabase/
% general measurement procedure % general measurement procedure
def.measurementProcedure = 'transformedUpDown'; % measurement procedure def.measurementProcedure = 'transformedUpDown'; % measurement procedure
def.intervalnum = 3; % number of intervals def.intervalnum = 3; % number of intervals
...@@ -38,12 +38,11 @@ def.expvardescription = 'signal level'; % description of the tracking variable ...@@ -38,12 +38,11 @@ def.expvardescription = 'signal level'; % description of the tracking variable
% limits for experimental variable % limits for experimental variable
def.minvar = -100; % minimum value of the tracking variable def.minvar = -100; % minimum value of the tracking variable
def.maxvar = 100; % maximum value of the tracking variable def.maxvar = 100; % maximum value of the tracking variable
def.terminate = 1; % terminate execution on min/maxvar hit: 0 = warning, 1 = terminate 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) def.endstop = 3; % Allows x nominal levels higher/lower than the limits before terminating (if def.terminate = 1)
% experimental parameter (independent variable) % experimental parameter (independent variable)
def.exppar1 = [0 45 90]; % vector containing experimental parameters for which the exp is performed
def.exppar1unit = 'deg'; % unit of experimental parameter def.exppar1unit = 'deg'; % unit of experimental parameter
def.exppar1description = 'reference angle';% description of the experimental parameter def.exppar1description = 'reference angle';% description of the experimental parameter
...@@ -64,8 +63,8 @@ def.savefcn = 'default'; % function which writes results to disk ...@@ -64,8 +63,8 @@ def.savefcn = 'default'; % function which writes results to disk
% samplerate and sound output % samplerate and sound output
def.samplerate = 48000; % sampling rate in Hz def.samplerate = 48000; % sampling rate in Hz
def.intervallen = 22050; % length of each signal-presentation interval in samples (might be overloaded in 'expname_set') def.intervallen = 24000; % length of each signal-presentation interval in samples (might be overloaded in 'expname_set')
def.pauselen = 22050; % length of pauses between signal-presentation intervals in samples (might be overloaded in 'expname_set') def.pauselen = 24000; % length of pauses between signal-presentation intervals in samples (might be overloaded in 'expname_set')
def.presiglen = 100; % length of signal leading the first presentation interval in samples (might be overloaded in 'expname_set') def.presiglen = 100; % length of signal leading the first presentation interval in samples (might be overloaded in 'expname_set')
def.postsiglen = 100; % length of signal following the last presentation interval in samples (might be overloaded in 'expname_set') def.postsiglen = 100; % length of signal following the last presentation interval in samples (might be overloaded in 'expname_set')
def.bits = 16; % output bit depth: 8 or 16 see def.externSoundCommand for 32 bits def.bits = 16; % output bit depth: 8 or 16 see def.externSoundCommand for 32 bits
...@@ -73,19 +72,9 @@ def.bits = 16; % output bit depth: 8 or 16 see def.externSoundCommand for 32 ...@@ -73,19 +72,9 @@ def.bits = 16; % output bit depth: 8 or 16 see def.externSoundCommand for 32
% computing % computing
def.allowpredict = 0; % if 1 generate new stimuli during sound output if def.markinterval disabled def.allowpredict = 0; % if 1 generate new stimuli during sound output if def.markinterval disabled
% tweaking % def.markIntervalDelay = 5; % tweak if audioplayer is used, default is 0
%def.keyboardResponseButtonMapping = {'a','s','d'};
%def.soundmexMark = 1;
%def.markinterval = 1;
%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; % soundmex audio interface to be used
%def.deviceID = 0; def.deviceID = 'EDIROL FA-101';
% eof % eof
...@@ -79,10 +79,10 @@ addpath(genpath(def.hrirdir)) ...@@ -79,10 +79,10 @@ addpath(genpath(def.hrirdir))
setup.HRIRs=cell(length(def.exppar1),1) % [0 45 90]; setup.HRIRs=cell(length(def.exppar1),1) % [0 45 90];
for k=1:length(setup.HRIRs) for k=1:length(setup.HRIRs)
%load the hrir for the reference angle %load the hrir for the reference angle
setup.HRIRs{k}.hrir_ref=loadHRIR('Anechoic', 80, 0, def.exppar1(k),'in-ear') setup.HRIRs{k}.hrir_ref=loadHRIR('Anechoic', 300, 0, def.exppar1(k),'in-ear');
%load the hrirs for the angle 5° away from the reference angle %load the hrirs for the angle 5° away from the reference angle
setup.HRIRs{k}.hrir_refplus=loadHRIR('Anechoic', 80, 0, def.exppar1(k)+setup.degdiff,'in-ear') setup.HRIRs{k}.hrir_refplus=loadHRIR('Anechoic', 300, 0, def.exppar1(k)+setup.degdiff,'in-ear');
setup.HRIRs{k}.hrir_refminus=loadHRIR('Anechoic', 80, 0, def.exppar1(k)-setup.degdiff,'in-ear') setup.HRIRs{k}.hrir_refminus=loadHRIR('Anechoic', 300, 0, def.exppar1(k)-setup.degdiff,'in-ear');
end end
% eof % eof
\ No newline at end of file
...@@ -93,6 +93,8 @@ tref22=(sig_ref(:,2)+noise2(:,2)).* setup.window; ...@@ -93,6 +93,8 @@ tref22=(sig_ref(:,2)+noise2(:,2)).* setup.window;
tuser1=(sig_targ(:,1)+noise3(:,1)).* setup.window; tuser1=(sig_targ(:,1)+noise3(:,1)).* setup.window;
tuser2=(sig_targ(:,2)+noise3(:,2)).* setup.window; tuser2=(sig_targ(:,2)+noise3(:,2)).* setup.window;
disp(['SNR: ' num2str(10.*log10(var(sig_targ(:)))-10.*log10(var(noise3(:)))) 'dB'])
% pre-, post- and pausesignals (all zeros) % pre-, post- and pausesignals (all zeros)
presig = zeros(def.presiglen,2); presig = zeros(def.presiglen,2);
postsig = zeros(def.postsiglen,2); postsig = zeros(def.postsiglen,2);
......