sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / 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 --]

[-- 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, other threads:[~2017-11-23 14:09 UTC | newest]

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

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).