normalize level in the spectral domain?

Started by p8rpp, September 18, 2019, 09:11:00 AM

Previous topic - Next topic

p8rpp

Hi all,

i sometimes find myself in the situation where I'd like to normalize an .ana audiofile in the spectral domain to its maximum level. Is this somehow possible without having to convert it to a .wav time domain file?

Thanks for all ideas!

p8rpp

I am replying to myself here as I found an older post by Richard explaining the intricacies in
http://unstablesound.net/cdpforum/index.php?topic=102.msg422#msg422
which answers my question.

p8rpp

BUT...

i am wondering if I can save computation time by
1. pvoc synthesizing an .ana file to .wav
2. running only a peak level analysis (HOW?)
3. and changing the gain of the original .ana file in the spectral domain
avoiding another pvoc anal run.

Any ideas? Thanks!

joehuergo

"sndinfo maxsamp" returns relevant information for this, I believe

p8rpp

Thanks Joe,
great, indeed it does and on Unix I can parse it like
  sndinfo infile.wav | grep "max possible gain" | cut -d " " -f 4
which leaves only the question how to raise gain in the spectral domain.

p8rpp

Stupid me, it is
  spec gain infile.ana outfile.ana gainfactor
sorry for the noise.