From: "Måns Rullgård" <mans@mansr.com>
To: James Trammell <james.trammell@gmail.com>
Cc: sox-users@lists.sourceforge.net
Subject: Re: What is the type of white noise generated by SoX?
Date: Thu, 23 Nov 2017 14:09:12 +0000 [thread overview]
Message-ID: <yw1x7euhxf1z.fsf@mansr.com> (raw)
In-Reply-To: <CAB0xix5U9W1ageNfWhUrDffoLMZm+SG5nyshbKCfvx2Z44_8Yw@mail.gmail.com> (James Trammell's message of "Wed, 22 Nov 2017 21:27:17 -0500")
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
prev parent reply other threads:[~2017-11-23 14:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.sourceforge.net/lists/listinfo/sox-users
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yw1x7euhxf1z.fsf@mansr.com \
--to=sox-users@lists.sourceforge.net \
--cc=james.trammell@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).