Page 1 of 1

How random are the generated White, Pink and Brownian noises

Posted: Sun Aug 20, 2017 3:36 am
by nelsona
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

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

Posted: Sun Aug 20, 2017 9:08 am
by steve
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

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

Posted: Sun Aug 20, 2017 3:58 pm
by nelsona
Hello Steve,

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

If so, thank you.

Nelson

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

Posted: Sun Aug 20, 2017 4:41 pm
by steve
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