unbonk normalization?

This commit is contained in:
Maikiwi 2022-03-03 11:30:03 -08:00
parent 49fc70f35a
commit a7b800df52
2 changed files with 2 additions and 2 deletions

View file

@ -736,7 +736,7 @@ const app = new Vue({
numbers.push(parseInt(item, 16))
}
numbers.shift()
//numbers.shift()
let peak = Math.max(numbers[6], numbers[7]) / 32768.0
let gain = Math.pow(10, ((-7.63 - (Math.log10(peak) * 20)) / 20))// EBU R 128 Compliant
console.debug(`[Cider][MaikiwiSoundCheck] Peak Gain: ${Math.log10(peak) * 20} | Adjusting '${Math.log10(gain) * 20}' dB`)