Hi Enrique,
Enrique Erne wrote:
I'm building a normalizer for two channel wav-files , which are recorded with [writesf~ 2] -bytes 2 .
I can't help you with your patch, I looks rather compicated at the first sight. But, my question is: do you really want to do these calculations in pd? I'm sure, there are some more appropriate solutions. E.g. in Matlab (you can use Octave, as well), my solution is:
x=wavread('filename'); y=x./max(max(abs(x))); % find the max. peak in any channel wavwrite(y, FS, 'newfilename'); % FS=sampling rate
br, Peter