SatoriGFX;352119 Wrote: 
> Thanks. So, I rescanned the library and then ran:
> 
> update albums
> set replay_gain = -20*log10(replay_peak)
> where -20*log10(replay_peak) < replay_gain;
> 
> and then:
> 
> update tracks
> set replay_gain = -20*log10(replay_peak)
> where -20*log10(replay_peak) < replay_gain;
> 
> There were quite a few files that were affacted.
> 
> Then, I ran:
> 
> select * from albums where replay_gain>0;
> 
> and I still had some files listed, all files that were supposed to be
> fixed with the first 2 scripts.
> 
> I'm not sure what I am doing wrong.
You're not doing anything wrong. The last query you ran (select * from
albums where replay_gain>0) just lists all albums with a positive
replaygain value. You will still have some of those - the update
statements reduce the amount of positive replaygain so as to avoid
clipping.

For example, suppose you have an album with a replaygain value of +6dB,
but wth a peak value of -2dB. Left like that, application of the
replaygain would cause clipping of +4dB. So the update statement
changes the replaygain value to +2dB, so as to make the peak after
adjustment 0dB. But notice that it still has a positive value. (The
same thing applies for tracks, of course).


-- 
cliveb

Transporter -> ATC SCM100A
------------------------------------------------------------------------
cliveb's Profile: http://forums.slimdevices.com/member.php?userid=348
View this thread: http://forums.slimdevices.com/showthread.php?t=54004

_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/ripping

Reply via email to