Re: What is the type of white noise generated by SoX?

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

> Hi,
>
> I have found SoX's synth effect useful for generating white noise; does
> anyone know what specific type of white noise it generates?
>
> The different types of white noise I am familiar with are:
>
> White Gaussian
> White triangular
> White uniform
> White binary
>
> Is it one of these, or something else?

It uses this LCG (in util.h):

#define ranqd1(x) ((x) = 1664525L * (x) + 1013904223L) /* int32_t x */
#define dranqd1(x) (ranqd1(x) * (1. / (65536. * 32768.))) /* [-1,1) */

-- 
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.