%% Specify Nondefault Channel Weights
% Read in a four-channel audio signal. Specify a nondefault weighting vector with four elements.

[signal,fs] = audioread('AudioArray-16-16-4channels-20secs.wav');
weightingVector = [1,0.8,0.8,1.2];

%
% Calculate the integrated loudness with the default channel weighting and the nondefault channel weighting vector.

standardLoudness    = integratedLoudness(signal,fs,weightingVector)
nonStandardLoudness = integratedLoudness(signal,fs)

% Copyright 2012 The MathWorks, Inc.