HydrogenAudio

Hydrogenaudio Forum => Scientific Discussion => Topic started by: Porcus on 2012-07-21 15:52:11

Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: Porcus on 2012-07-21 15:52:11
I am not asking for a utility that computes some average loudness measure (like ReplayGain). (Edit: Argh, thought I was clever to avoid the quotation marks " and ', in order to keep the board from cropping the subject. Forgot about the slash.)


Rather, I am asking whether there have been developed reasonably good measurements -- and utilities implementing such -- for scanning for “loudness war victims”. E.g., criteria like
- dispersion of amplitude (e.g. standard deviation), over some (moving?) average
- distribution of signals near the digital 1.0000 to identify brickwalling (hard or not-very-soft limiting)
- every track on an album boosted to about the same maximum


Of course it will vary over musical genres, but a model that could scan a batch of subjectively “similar” music and with a reasonable accuracy (i.e. sensitivity/specificity) detect those “bad remasters”, would be a good start.


Anything? Anyone?
Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: Rollin on 2012-07-21 17:12:03
Maybe something like this: http://www.hydrogenaudio.org/forums/index....showtopic=88373 (http://www.hydrogenaudio.org/forums/index.php?showtopic=88373)
http://www.jokhan.demon.nl/DynamicRange/index.htm (http://www.jokhan.demon.nl/DynamicRange/index.htm)
Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: Porcus on 2012-07-21 23:41:52
Well, even without documented measurement method (I mean, is it known what is the relevant one for the purposes?), then a dynamic range analyzer is certainly a start.
Especially when I happen to have two releases of the same album in my collection. Thank you. (... and a foobar2k component, that means it is very likely to be used.)

(And thanks to whomever moderator fixed the subject.)
Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: gb24 on 2012-07-27 16:02:18
How about:
http://r128gain.sourceforge.net/ (http://r128gain.sourceforge.net/)
http://www.hydrogenaudio.org/forums/index....showtopic=85978 (http://www.hydrogenaudio.org/forums/index.php?showtopic=85978)
Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: db1989 on 2012-07-27 16:20:47
I am not asking for a utility that computes some average loudness measure (like ReplayGain).
Would you like to qualify your suggestion so that it doesn’t directly contradict the first sentence in the thread, or should I just send it to the Recycle Bin as evidence of how not to read?
Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: Notat on 2012-07-27 20:17:31
I see it, there are actually two ways the loudness war affects recordings:
1/ Short term limiting removes transients
2/ Long-term compression or gain control reduces dynamics

Are you interested in (1) the signal processing tricks that make recordings louder while attempting to minimally degrade their subjective quality? Or are you interested in (2) the production aesthetic of unrelenting sound?

For (1) I think you want to measure peak to average ratio. Since it is safe to assume that the peak level for all modern tracks and albums is now invariably the same (0 dBFS) measuring average level alone gives you the answer. Those who suggested an LRU measurement are not wrong.

For (2) the EBU 128 standard introduces a concept of loudness range (LRA) which is a measure of the long-term dynamics.
Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: Notat on 2012-07-27 21:07:12
Just ran across this (http://www.uaudio.com/blog/sos-feature-loudness-war) today. Maybe the measurement you're looking for has already been done.
Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: godrick on 2012-07-27 21:26:36
These researchers looked at loudness as well as other music characteristics...

http://www.nature.com/srep/2012/120726/sre.../srep00521.html (http://www.nature.com/srep/2012/120726/srep00521/full/srep00521.html)
Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: Porcus on 2012-07-30 11:51:33
I am not asking for a utility that computes some average loudness measure (like ReplayGain).
Would you like to qualify your suggestion so that it doesn’t directly contradict the first sentence in the thread, or should I just send it to the Recycle Bin as evidence of how not to read?


I am not sure what you mean here (... sure you read the 'not'?), so please ask again if I do not answer to your question.

The 'your suggestion', is that those three points I suggested? For example, the first part of my suggestion (the 'dispersion' measure) is kind of suggesting a loudness measure, then it isn't. They are related as standard deviation is related to mean. I am not asking about a measure of average, affirming (not contradicting, directly nor indirectly) the first sentence (which says that I am not asking for a anything like ReplayGain).
Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: db1989 on 2012-07-30 11:57:34
I was talking to gb24 with reference to his recommendation of R128, which seemed to “directly contradict [your] first sentence in the thread”!  But I realise this wasn’t very clear, so I apologise.
Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: Porcus on 2012-07-30 15:45:30
*facepalm*

Well now you know which posting to send to the Recycle Bin as evidence of how not to read.
Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: Aquares on 2012-08-13 13:44:15
ClippingAnalyzer (http://www.ber-sd.com/dl_clipping_eng.html)
Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: Woodinville on 2012-08-15 21:37:36
clear all
close all
clc

fname='12.wav'
x=wavread(fname);
x=round(x*32768);

len=length(x)

his=histc(x(:,1),-32768:32767); % channel 1
his=his+histc(x(:,2),-32768:32767); %channel 2

tot=sum(his);
his=his/tot;
his=max(his, .000000000001);
xax=-32768:32767;

semilogy(xax,his);
axis([-40000 40000 1e-10 1e-1]);
big=max(max(x))
small=min(min(x))

fname

In octave will give you a nice histogram of the actual amplitudes in a 16 bit digital file.

You can find some frightening results at: http://s238.photobucket.com/albums/ff228/j...l%20Histograms/ (http://s238.photobucket.com/albums/ff228/jj_0001/Level%20Histograms/)

Title: Way to quantify degree of loudness-war impacts? (not loudness itself)
Post by: xTobix on 2012-08-15 23:41:38
clear all
close all
clc

fname='12.wav'
x=wavread(fname);
x=round(x*32768);

...//...


Woodinville, thanks for the Matlab code. It works very well.

I modified/abused it with this view lines since I had no *.wav on hand but ist seems to produce sencible results!

% fname='12.wav'
% x=wavread(fname);
% x=round(x*32768);
T  = 1;%(s)
SR  = 44.1e3;%(SP/s)
f  = 300;%(Hz)

%% comment in/out as appropriate
% % #1 test no signal...
x  = zeros(T*SR,1);
figure(1)
% % #2 test ramp
x  = round(linspace(-2^15,2^15,T*SR));% 2^15 = 2^16/2
figure(2)
% % #3 test  ramp
x  = round(2^15.*sin(linspace(-2^15,2^15,T*SR).*2.*pi.*f./SR));% 2^15 = 2^16/2
figure(3)
x = [x;-x]'; % fills the second channel
% plot(x);break
len=length(x)


I am shocked; American Idiot and V.I.U. are just crazy!  They look like a mix of test signal #2 & 3.

Good fun though!