Mercurial > hg > ape
diff aux/getLoudness.m @ 4:b28ffd29e6e1
Audio file preparation for listening test
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Wed, 19 Nov 2014 18:59:51 +0000 |
parents | 5e72201496c8 |
children |
line wrap: on
line diff
--- a/aux/getLoudness.m Mon Nov 17 23:01:09 2014 +0000 +++ b/aux/getLoudness.m Wed Nov 19 18:59:51 2014 +0000 @@ -1,4 +1,4 @@ -function result = getLoudness( vector, Fs, timescale, plotBOOL ) +function result = getloudness( vector, Fs, timescale, plotBOOL ) %GETLOUDNESS returns loudness levels according to EBU R 128 specification % Function getLoudness accepts an audio file vector (vector), a sampling % rate (Fs), a timescale ('M' - Momentary, 'S' - Short, 'I' - Integrated) @@ -29,7 +29,7 @@ rlbAcoeffs = [1, -1.98992552008493, 0.989976013945421]; % loudness prefilter function below this one (see Pestana 2013) - [prefilterBcoeffs, prefilterAcoeffs] = getLoudnessPreFilter(10, Fs); + [prefilterBcoeffs, prefilterAcoeffs] = getloudnessprefilter(10, Fs); % Weighting coefficients with channel format [L, R, C, Ls, Rs] @@ -229,7 +229,7 @@ -function [prefilterBcoeffs, prefilterAcoeffs] = getLoudnessPreFilter(gainIndB, fs) +function [prefilterBcoeffs, prefilterAcoeffs] = getloudnessprefilter(gainIndB, fs) % GET LOUDNESS calculates coefficients for prefilter with arbitrary gain as % specified in EBU R 128 and the modification proposed in Pestana 2013. %