[PD] [soundfiler] normalizing max amplitude inf to 1 ?
piotr at majdak.com
Fri Sep 2 09:41:18 CEST 2005
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:
y=x./max(max(abs(x))); % find the max. peak in any channel
wavwrite(y, FS, 'newfilename'); % FS=sampling rate
Institut für Schallforschung
Österreichische Akademie der Wissenschaften
E-Mail: piotr at majdak.com
More information about the Pd-list