How random are the generated White, Pink and Brownian noises

Effects, Recipes, Interfacing with other software, etc.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
nelsona
Posts: 12
Joined: Wed Jan 11, 2017 5:41 am
Operating System: Windows 7

How random are the generated White, Pink and Brownian noises

Post by nelsona » Sun Aug 20, 2017 3:36 am

Hello,

I was wondering if someone (an Audacity developer preferably) could tell me what sort of random number generator / seed is being used to generate the White, Pink and Brownian noises within Audacity?

Also, my sincerest condolences to the passing of Gale Andrews.

What Gale and the rest of the Audacity team have been able to do with Audacity is simply amazing, and an inspiration to other FOSS software developers / community members.

Note: Apologies if this post was posted in the wrong sub-forum, as I didn't know which sub-forum to post this in. If a moderator could move this to the correct sub-forum (assuming it's not this one), that would be much appreciated.

Thank you,
Nelson

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: How random are the generated White, Pink and Brownian no

Post by steve » Sun Aug 20, 2017 9:08 am

nelsona wrote:I was wondering if someone (an Audacity developer preferably) could tell me what sort of random number generator / seed is being used to generate the White, Pink and Brownian noises within Audacity?
std::rand
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

nelsona
Posts: 12
Joined: Wed Jan 11, 2017 5:41 am
Operating System: Windows 7

Re: How random are the generated White, Pink and Brownian no

Post by nelsona » Sun Aug 20, 2017 3:58 pm

Hello Steve,

So just to be certain, Audacity's developers are simply using C++'s rand function, correct?

If so, thank you.

Nelson

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: How random are the generated White, Pink and Brownian no

Post by steve » Sun Aug 20, 2017 4:41 pm

nelsona wrote:So just to be certain, Audacity's developers are simply using C++'s rand function, correct?
If by "C++'s rand function" you mean "std::rand", then yes.

You can see the code in EffectNoise::ProcessBlock here: https://github.com/audacity/audacity/bl ... /Noise.cpp
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply