- #1
btb4198
- 572
- 10
Can someone go over the pink noise algorithm for ?
I am not really understand how to make pink noise
this is what I did :
but it does not sound right
I am not really understand how to make pink noise
this is what I did :
Code:
for (int n = 0; n < sampleCount; n++)
{
Frequency_Start = rnd1.Next(8);
Frequency_End = Frequency_Start * 2;
octaves = Math.Log(Frequency_End / Frequency_Start);
float temp = (float)((Amplitude +( octaves * -2) ));
buffer[n + offset] = temp;
sample++;
n2++;
}
if (sample >= sampleRate) sample = 0;
return sampleCount;