Re: Creating files with RMS gain level instead of Peak

Måns Rullgård <[email protected]>
Newsgroups gmane.comp.audio.sox
Message-ID <[email protected]>
James Trammell <[email protected]> writes:

> I want SoX, ideally natively via some appropriate command-line switch, to
> output a white noise file with a specific RMS amplitude.

You can get this by using the standard "gain" effect and offsetting the
amount by 4.78 dB.  If you want to abuse the existing options a bit, you
could produce a stereo white noise file with a given RMS level like
this:

$ sox -n out.wav synth 10 square whitenoise whitenoise gain -12 gain -B remix 2 3

Not the most efficient or intuitive, I know.

-- 
Måns Rullgård

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.