- #1
btb4198
- 572
- 10
so I have a white, brown, and pink noise generators and i want to shift the pitch up by one octave (12 semitones) from middle C, I need to sample 2 time as fast as I play the sounds correct ?
so in the c# code for my white noise generator I have it playing at 44100 Hz( the standard) but I am sampling the 88200 Hz
so it would be this :
buffer[n] = Amplitude * (2 * rnd1.NextDouble() - 1) * Math.Sin(Math.PI * Frequency * n2 / 88200D);
and this should work right ?
I have it set to 2 channels and 44100 Hz but I am sampling at 88200 Hz;
so it should move up one Octave from middle C, without changing the speed
is this correct ?
and if I were to sample at 22050Hz I would be move down one octave from middle C?
so in the c# code for my white noise generator I have it playing at 44100 Hz( the standard) but I am sampling the 88200 Hz
so it would be this :
buffer[n] = Amplitude * (2 * rnd1.NextDouble() - 1) * Math.Sin(Math.PI * Frequency * n2 / 88200D);
and this should work right ?
I have it set to 2 channels and 44100 Hz but I am sampling at 88200 Hz;
so it should move up one Octave from middle C, without changing the speed
is this correct ?
and if I were to sample at 22050Hz I would be move down one octave from middle C?