sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
* What is the type of white noise generated by SoX?
@ 2017-11-23  2:27 James Trammell
  2017-11-23 14:09 ` Måns Rullgård
  0 siblings, 1 reply; 2+ messages in thread
From: James Trammell @ 2017-11-23  2:27 UTC (permalink / raw)
  To: sox-users

[-- Attachment #1.1: Type: text/plain, Size: 313 bytes --]

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?

Thanks,
-James

[-- Attachment #1.2: Type: text/html, Size: 536 bytes --]

<div dir="ltr">Hi,<div><br></div><div><div>I have found SoX&#39;s synth effect useful for generating white noise; does anyone know what specific type of white noise it generates?</div><div><br></div><div>The different types of white noise I am familiar with are:</div><div><br></div><div><div>White Gaussian</div><div>White triangular</div><div>White uniform</div><div>White binary</div></div><div><br></div></div><div>Is it one of these, or something else?</div><div><br></div><div>Thanks,</div><div>-James</div><div><br></div></div>

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: What is the type of white noise generated by SoX?
  2017-11-23  2:27 What is the type of white noise generated by SoX? James Trammell
@ 2017-11-23 14:09 ` Måns Rullgård
  0 siblings, 0 replies; 2+ messages in thread
From: Måns Rullgård @ 2017-11-23 14:09 UTC (permalink / raw)
  To: James Trammell; +Cc: sox-users

James Trammell <james.trammell@gmail.com> 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
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-23  2:27 What is the type of white noise generated by SoX? James Trammell
2017-11-23 14:09 ` Måns Rullgård

sox-users@lists.sourceforge.net unofficial mirror

Archives are clonable: git clone --mirror https://public-inbox.org/sox-users

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.sox
	nntp://ou63pmih66umazou.onion/inbox.comp.audio.sox
	nntp://news.gmane.org/gmane.comp.audio.sox

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox