Re: [linux-audio-user] Lower Output Level after Mono to Stereo Conversion with SOX

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-user] Lower Output Level after Mono to Stereo Conversion with SOX
From: Malcolm Baldridge (linux-audio_AT_paypc.com)
Date: Wed Jun 09 2004 - 07:12:25 EEST


Quoting Martin McCormick <martin_AT_dc.cis.okstate.edu>:

> I recorded a mono .wav file at 14400 samples per second and it
> sounds loud and clear. Then, I got fancy and decided to convert it in
> to a stereo file suitable for putting on a CD. It still sounds clear,
> but about 3DB down from the original mono recording.

[...]

> I don't have any particular question about this script, but I
> do wonder why my mono/stereo conversion is a few DB down?

It's most likely a consequence of being run through a filter. Remember,
filters generally REMOVE power rather than add it. And even though you're
upsampling, some filtering is being done to eliminate synthetically created
aliasing noise.

You can always normalise the audio post-upsampling simply enough:

sox infile.wav -e stat -v

This will give you a recommended scaling value which won't cause clipping.

Then:

sox infile.wav outfile.wav -v ##.##

Inserting the value returned by the stat command into ##.##

Obviously, 1.0 means no scaling is needed.

This is all a linear adjustment, so +10dB boost = 10.0 scaling factor, and
+20dB = 100.0, etc.

I've scripted this in my application.

=MB=

-- 
A focus on Quality.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Jun 09 2004 - 07:07:19 EEST