Commit ba929e71 authored by Markus Mueller-Trapet's avatar Markus Mueller-Trapet

remove impulse time constant (not correctly implemented, and obsolete anyway)

parent 88d00bc2
...@@ -73,8 +73,8 @@ runningFreqData = zeros(nBins-1,numel(recChannels)); ...@@ -73,8 +73,8 @@ runningFreqData = zeros(nBins-1,numel(recChannels));
weightingTypes = {' none',' A',' C'}; weightingTypes = {' none',' A',' C'};
weightingFilters = [flat,abs(weighting_filter(flat,octFreqVec(2:end),'A')).^2,abs(weighting_filter(flat,octFreqVec(2:end),'C')).^2]; weightingFilters = [flat,abs(weighting_filter(flat,octFreqVec(2:end),'A')).^2,abs(weighting_filter(flat,octFreqVec(2:end),'C')).^2];
weightingLabels = {'','(A)','(C)'}; weightingLabels = {'','(A)','(C)'};
timeConstantTypes = {' Slow (1.0s)',' Fast (0.125s)',' Impulse (35ms)'}; timeConstantTypes = {' Slow (1.0s)',' Fast (0.125s)'};
timeConstants = [1,0.125,0.035]; timeConstants = [1,0.125];
if isempty(sArgs.micEq) if isempty(sArgs.micEq)
micEq = flat; micEq = flat;
...@@ -157,7 +157,7 @@ tic; ...@@ -157,7 +157,7 @@ tic;
% frequency weighting % frequency weighting
currentWeightingType = 1; currentWeightingType = 1;
weightingFilt = weightingFilters(:,currentWeightingType); weightingFilt = weightingFilters(:,currentWeightingType);
yLabel = ['dB' upper(weightingLabels{currentWeightingType}) ' re 20uPa']; yLabel = ['SPL in dB' upper(weightingLabels{currentWeightingType}) ' re 20uPa'];
ylabel(h.ax, yLabel,'FontSize',16) ylabel(h.ax, yLabel,'FontSize',16)
% time weighting/smoothing % time weighting/smoothing
...@@ -173,7 +173,7 @@ while ~h.livePar.exit ...@@ -173,7 +173,7 @@ while ~h.livePar.exit
weightingFilt = weightingFilters(:,currentWeightingType); weightingFilt = weightingFilters(:,currentWeightingType);
lineHandleSelfNoise.YData = self_noise_plot + 10.*log10(weightingFilt); lineHandleSelfNoise.YData = self_noise_plot + 10.*log10(weightingFilt);
yLabel = ['dB' upper(weightingLabels{currentWeightingType}) ' re 20uPa']; yLabel = ['SPL in dB' upper(weightingLabels{currentWeightingType}) ' re 20uPa'];
ylabel(h.ax, yLabel,'FontSize',16) ylabel(h.ax, yLabel,'FontSize',16)
% time weighting/smoothing % time weighting/smoothing
currentTimeConstantType = get(h.timeConstantType, 'Value'); currentTimeConstantType = get(h.timeConstantType, 'Value');
......
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