Commit a1de8c35 authored by Michael Kohnen's avatar Michael Kohnen

Revert "developing"

This reverts commit 561ad46c.
parent 561ad46c
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -56,11 +56,6 @@ else
[~,~,N2] = ita_loudness_timevariant(input2);
end
N1.value=sum(N1.value);
N2.value=sum(N2.value);
currentAmp = 0;
% start with stepsize of 10 dB
......@@ -77,6 +72,7 @@ whileCounter = 0;
whileLimit = sArgs.whileLimit;
while (abs(N1.value-N2.value) / N1.value > errorThreshold)
if lastStatus ~= ( N1.value > N2.value) % if status change => decrease and invert stepsize
ampStep = ampStep / -10;
lastStatus = N1.value > N2.value;
......@@ -89,9 +85,7 @@ while (abs(N1.value-N2.value) / N1.value > errorThreshold)
else
[~,~,N2] = ita_loudness_timevariant(ita_amplify(input2, currentAmp, 'dB'));
end
N2.value=sum(N2.value);
ita_verbose_info( sprintf('CurrentAmp: %2.2f -- Error: %2.2f\n', currentAmp, abs(N1.value-N2.value) / N1.value),2);
whileCounter = whileCounter +1;
......
......@@ -40,7 +40,7 @@ if (H.nChannels<4)
end
if ~strcmpi(H.signalType,'energy')
warning('HRTFs are not energy signals! Changing them to energy...');
warning('HRTFs are not energy signals! Changing them to energy');
H.signalType='energy';
end
opts=ita_parse_arguments(opts,varargin(2:end));
......
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