Commit f853a46a authored by dualberger's avatar dualberger

revise example file calibration

parent 3274cc4b
......@@ -5,7 +5,7 @@
% quality ratings.
% Some notes on the Overall quality measure:
% - it should be avoided to use the case where Reference Signal = Test signal (which gives an overall quality of 0.78) as
% the fitting procedure did not not considered in the fitting procedure, and thus
% is it was not considered in the original fitting procedure, and thus not reflected by the back end parameters
% - any other (perceptual relevant) distortions in the Test signal result in an overall quality < 0.78
......@@ -45,10 +45,10 @@ end
% - low values indicate large differences between Test and Reference signal
% adjust presentation level, e.g. 65 dB SPL rms
RefSig(:,1)=RefSig(:,1)./rms(RefSig(:,1)).*10^((65-100)/20); % Ref. signal, left ch.
RefSig(:,2)=RefSig(:,2)/rms(RefSig(:,2)).*10^((65-100)/20); % Ref. signal, right ch.
TestSig(:,1)=TestSig(:,1)./rms(TestSig(:,1)).*10^((65-100)/20); % Test. signal, left ch.
TestSig(:,2)=TestSig(:,2)/rms(TestSig(:,2)).*10^((65-100)/20); % Test. signal, right ch.
RefSig(:,1)=RefSig(:,1).*10^((8)/20); % Ref. signal, left ch.
RefSig(:,2)=RefSig(:,2).*10^((8)/20); % Ref. signal, right ch.
TestSig(:,1)=TestSig(:,1).*10^((8)/20); % Test. signal, left ch.
TestSig(:,2)=TestSig(:,2).*10^((8)/20); % Test. signal, right ch.
stOut = GPSMqBin(RefSig, TestSig, fs); % monaural model output
......@@ -68,10 +68,10 @@ stOut = GPSMqBin(RefSig, TestSig, fs); % monaural model output
% -X ... even larger difference
% adjust presentation level, e.g. 65 dB SPL rms
RefSig(:,1)=RefSig(:,1)./rms(RefSig(:,1)).*10^((65-115)/20); % Ref. signal, left ch.
RefSig(:,2)=RefSig(:,2)/rms(RefSig(:,2)).*10^((65-115)/20); % Ref. signal, right ch.
TestSig(:,1)=TestSig(:,1)./rms(TestSig(:,1)).*10^((65-115)/20); % Test. signal, left ch.
TestSig(:,2)=TestSig(:,2)/rms(TestSig(:,2)).*10^((65-115)/20); % Test. signal, right ch.
RefSig(:,1)=RefSig(:,1).*10^((-15)/20); % Ref. signal, left ch.
RefSig(:,2)=RefSig(:,2).*10^((-15)/20); % Ref. signal, right ch.
TestSig(:,1)=TestSig(:,1).*10^((-15)/20); % Test. signal, left ch.
TestSig(:,2)=TestSig(:,2).*10^((-15)/20); % Test. signal, right ch.
[binQ, ILDdiff, ITDdiff, IVSdiff] = BAMQpc(RefSig, TestSig, fs);
......@@ -83,9 +83,9 @@ disp('***********************')
disp('****monaural measures**')
disp('***********************')
disp(stOut)
% SNR_dc: 3.7852 % mainly represents linear, spectral distortions, see Biberger et al. (2018)
% SNR_ac: 2.8843 % mainly represents nonlinear distortions, see Biberger et al. (2018)
% SNR_dc_fix: 3.7852 % includes binaural extension to reduce the sensitivity for IPDs
% SNR_dc: 3.4546 % mainly represents linear, spectral distortions, see Biberger et al. (2018)
% SNR_ac: 2.8818 % mainly represents nonlinear distortions, see Biberger et al. (2018)
% SNR_dc_fix: 3.4545 % includes binaural extension to reduce the sensitivity for IPDs
% SNR_ac_fix: 2.4026 % includes binaural extension to reduce the sensitivity for IPDs
% OPM: 41.9663 % OPM, see Eq. (15) in Flener et al. (2019)
% OPM_fix: 41.8715 % OPM, see Eq. (16) in Flener et al. (2019); with binaural extension
......@@ -100,11 +100,11 @@ disp(['ITDdiff: ', num2str(ITDdiff)])
disp(['IVSdiff: ', num2str(IVSdiff)])
% binQ: 47 % binaural overall measure based on ILDs, ITD/IPDs and the IVS
% binQ IS USED FOR THE OVERALL MEASURE!!!
% ILDdiff: 5.7629e+03 % interaural level differences (ILD)
% ITDdiff: 1.5393e-04 % interaural time/phase differences (ITD)
% IVSdiff: 0.0248 % interaural vector strength (IVS)
% ILDdiff: 5.9312+03 % interaural level differences (ILD)
% ITDdiff: 1.5621-04 % interaural time/phase differences (ITD)
% IVSdiff: 0.0227 % interaural vector strength (IVS)
disp('***********************')
disp('****overall measure***')
disp('***********************')
disp(['overall_measure: ',num2str(obj_meas)])
% overall measure: 0.34455
\ No newline at end of file
% overall measure: 0.3548
\ No newline at end of file
......@@ -45,10 +45,10 @@ end
% - low values indicate large differences between Test and Reference signal
% adjust presentation level, e.g. 65 dB SPL rms
RefSig(:,1)=RefSig(:,1)./rms(RefSig(:,1)).*10^((65-100)/20); % Ref. signal, left ch.
RefSig(:,2)=RefSig(:,2)/rms(RefSig(:,2)).*10^((65-100)/20); % Ref. signal, right ch.
TestSig(:,1)=TestSig(:,1)./rms(TestSig(:,1)).*10^((65-100)/20); % Test. signal, left ch.
TestSig(:,2)=TestSig(:,2)/rms(TestSig(:,2)).*10^((65-100)/20); % Test. signal, right ch.
RefSig(:,1)=RefSig(:,1).*10^((8)/20); % Ref. signal, left ch.
RefSig(:,2)=RefSig(:,2).*10^((8)/20); % Ref. signal, right ch.
TestSig(:,1)=TestSig(:,1).*10^((8)/20); % Test. signal, left ch.
TestSig(:,2)=TestSig(:,2).*10^((8)/20); % Test. signal, right ch.
stOut = GPSMqBin(RefSig, TestSig, fs); % monaural model output
......@@ -68,10 +68,10 @@ stOut = GPSMqBin(RefSig, TestSig, fs); % monaural model output
% -X ... even larger difference
% adjust presentation level, e.g. 65 dB SPL rms
RefSig(:,1)=RefSig(:,1)./rms(RefSig(:,1)).*10^((65-115)/20); % Ref. signal, left ch.
RefSig(:,2)=RefSig(:,2)/rms(RefSig(:,2)).*10^((65-115)/20); % Ref. signal, right ch.
TestSig(:,1)=TestSig(:,1)./rms(TestSig(:,1)).*10^((65-115)/20); % Test. signal, left ch.
TestSig(:,2)=TestSig(:,2)/rms(TestSig(:,2)).*10^((65-115)/20); % Test. signal, right ch.
RefSig(:,1)=RefSig(:,1).*10^((-15)/20); % Ref. signal, left ch.
RefSig(:,2)=RefSig(:,2).*10^((-15)/20); % Ref. signal, right ch.
TestSig(:,1)=TestSig(:,1).*10^((-15)/20); % Test. signal, left ch.
TestSig(:,2)=TestSig(:,2).*10^((-15)/20); % Test. signal, right ch.
[binQ, ILDdiff, ITDdiff, IVSdiff] = BAMQpc(RefSig, TestSig, fs);
......@@ -83,12 +83,12 @@ disp('***********************')
disp('****monaural measures**')
disp('***********************')
disp(stOut)
% SNR_dc: 3.7852 % mainly represents linear, spectral distortions, see Biberger et al. (2018)
% SNR_ac: 2.8843 % mainly represents nonlinear distortions, see Biberger et al. (2018)
% SNR_dc_fix: 3.7852 % includes binaural extension to reduce the sensitivity for IPDs
% SNR_dc: 3.4546 % mainly represents linear, spectral distortions, see Biberger et al. (2018)
% SNR_ac: 2.8818 % mainly represents nonlinear distortions, see Biberger et al. (2018)
% SNR_dc_fix: 3.4546 % includes binaural extension to reduce the sensitivity for IPDs
% SNR_ac_fix: 2.4026 % includes binaural extension to reduce the sensitivity for IPDs
% OPM: 41.9663 % OPM, see Eq. (15) in Flener et al. (2019)
% OPM_fix: 41.8715 % OPM, see Eq. (16) in Flener et al. (2019); with binaural extension
% OPM: 42.8757 % OPM, see Eq. (15) in Flener et al. (2019)
% OPM_fix: 42.8675 % OPM, see Eq. (16) in Flener et al. (2019); with binaural extension
% to reduce the sensitivity for IPDs;
% OPM_fix IS USED FOR THE OVERALL MEASURE!
disp('***********************')
......@@ -100,11 +100,11 @@ disp(['ITDdiff: ', num2str(ITDdiff)])
disp(['IVSdiff: ', num2str(IVSdiff)])
% binQ: 47 % binaural overall measure based on ILDs, ITD/IPDs and the IVS
% binQ IS USED FOR THE OVERALL MEASURE!!!
% ILDdiff: 5.7629e+03 % interaural level differences (ILD)
% ITDdiff: 1.5393e-04 % interaural time/phase differences (ITD)
% IVSdiff: 0.0248 % interaural vector strength (IVS)
% ILDdiff: 5.9312+03 % interaural level differences (ILD)
% ITDdiff: 1.5621-04 % interaural time/phase differences (ITD)
% IVSdiff: 0.0227 % interaural vector strength (IVS)
disp('***********************')
disp('****overall measure***')
disp('***********************')
disp(['overall_measure: ',num2str(obj_meas)])
% overall measure: 0.34455
\ No newline at end of file
% overall measure: 0.3548
\ No newline at end of file
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