Commit 2dc70e54 authored by Hendrik Kayser's avatar Hendrik Kayser

audio setup with soundmexpro

parent 52bad89d
......@@ -3,3 +3,5 @@ afc/soundmexpro/bin/soundmexpro.mexw32
afc/soundmexpro/bin/soundmexpro.mexw64
afc/control_experimentDOA_subject_5deg_ollo_female_white.dat
afc/control_experimentDOA_subject_10deg_ollo_female_white.dat
afc/experimentDOA_user.asv
*.asv
% autoexec_cfg generated by Configure AFC. Add your local preferences here.
def.externSoundCommand = 'soundmexprofree';
def.language = 'EN';
No preview for this file type
......@@ -17,10 +17,10 @@
% Copyright (c) 1999-2013 Stephan Ewert.
% 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:
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
def.measurementProcedure = 'transformedUpDown'; % measurement procedure
def.intervalnum = 3; % number of intervals
......@@ -38,7 +38,7 @@ def.expvardescription = 'signal level'; % description of the tracking variable
% limits for experimental 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.endstop = 3; % Allows x nominal levels higher/lower than the limits before terminating (if def.terminate = 1)
......@@ -64,8 +64,8 @@ def.savefcn = 'default'; % function which writes results to disk
% samplerate and sound output
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.pauselen = 22050; % length of pauses between signal-presentation intervals 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 = 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.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
......@@ -73,19 +73,9 @@ def.bits = 16; % output bit depth: 8 or 16 see def.externSoundCommand for 32
% computing
def.allowpredict = 0; % if 1 generate new stimuli during sound output if def.markinterval disabled
% tweaking
%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.markIntervalDelay = 5; % tweak if audioplayer is used, default is 0
%def.bits = 16;
%def.deviceID = 0;
% soundmex audio interface to be used
def.deviceID = 'EDIROL FA-101';
% eof
......@@ -93,6 +93,8 @@ tref22=(sig_ref(:,2)+noise2(:,2)).* setup.window;
tuser1=(sig_targ(:,1)+noise3(:,1)).* 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)
presig = zeros(def.presiglen,2);
postsig = zeros(def.postsiglen,2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment