Commit c431687a authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter

test: added output equlization filter to playbackrecord and mstf

parent 9b96001a
......@@ -531,6 +531,12 @@ classdef itaMSTF < itaMSPlaybackRecord
res = ita_dither(res,'type',this.ditherType,'nBits',this.nBits(1),'quiet',false);
end
% if an outputequalization filter is set, convolve it with the
% excitation
if ~isempty(this.outputEqualizationFilters)
res = ita_convolve(res,this.outputEqualizationFilters,'cyclic',true);
end
end
function set.compensation(this,value)
......
......@@ -15,6 +15,8 @@ classdef itaMSPlaybackRecord < itaMSRecord
mExcitation = [];
mOutputChannels = [];
mOutputMeasurementChain = itaMeasuringStation.loadCurrentOutputMC; %itaMeasurementChain('output');
mOutputEqualizationFilters = [];
end
properties(Dependent = true, Hidden = false, Transient = true)
......@@ -448,6 +450,12 @@ classdef itaMSPlaybackRecord < itaMSRecord
function res = get_final_excitation(this)
% get the corrected excitation (outputamplification)
res = this.raw_excitation * this.outputamplification_lin ;
% if an outputequalization filter is set, convolve it with the
% excitation
if ~isempty(this.outputEqualizationFilters)
res = ita_convolve(res,this.outputEqualizationFilters,'cyclic',true);
end
end
function set.outputChannels(this,value)
......@@ -503,6 +511,16 @@ classdef itaMSPlaybackRecord < itaMSRecord
res = this.mOutputMeasurementChain;
end
function res = set.outputEqualizationFilters(this,value)
this.mOutputEqualizationFilters = value;
end
function res = get.outputEqualizationFilters(this)
res = this.mOutputEqualizationFilters;
end
%% commandline
function str = commandline(this)
% commandline - Generate comandline string.
......
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