Matlab:实现多频带音频压缩
function scopeHandles = multibandAudioCompressionExampleApp( ...
genCode,plotResults,numTSteps)
if nargin < 3
numTSteps = Inf;
end
if nargin < 2
plotResults = true;
end
if nargin == 0
genCode = false;
end
param = struct([]);
param(1).Name = 'Band 1 Compression Factor';
param(1).InitialValue = 5;
param(1).Limits = [1, 100];
param(2).Name = 'Band 1 Threshold (dB)';
param(2).InitialValue = -5;
param(2).Limits = [-80, 0];
param(3).Name = 'Band 1 Attack Time (s)';
param(3).InitialValue = 0.005;
param(3).Limits = [0, 4];
param(4).Name = 'Band 1 Release Time (s)';