[LAU] normalize from command line

Peder Hedlund peder at musikhuset.org
Fri Aug 26 13:36:05 UTC 2011


Quoting Renato <rennabh at gmail.com>:

> On Wed, 24 Aug 2011 17:21:50 -0700
> Ken Restivo <ken at restivo.org> wrote:

>> for i in `ls *wav`; do
>> 	FOO=`sox $i -e stat -v 2>&1`
>> 	BN=`basename $i .wav`
>> 	echo "norming $i with factor $FOO ..."
>> 	sox -v $FOO $i -t wav ${BN}.norm.wav
>> done
>>
>
> mmh, getting this error:
>
> norming scrivania_varie.wav with factor sox FAIL sox: --encoding:   
> `stat' is not one of: signed-integer, unsigned-integer,   
> floating-point, ms-adpcm, ima-adpcm, oki-adpcm, gsm-full-rate,   
> u-law, mu-law, a-law. ...
> sox FAIL sox: Volume value `sox' is not a number


Try changing the -e to -n on the FOO line.
I guess they replaced "empty" with "null".

  - Peder


More information about the Linux-audio-user mailing list