@rak_multi wrote:
I am trying to use the ofNoise functions as a generator for sound to put it in the soundstream.
Based on the outputsound example i adjusted the sine generation a bit like following:phaseAdder = 0.1; for (int i = 0; i < bufferSize; i++){ phase += phaseAdder; //float sample = sin(phase); lAudio[i] = output[i*nChannels ] = ofSignedNoise(phase) * volume * leftScale; rAudio[i] = output[i*nChannels + 1] = ofSignedNoise(phase) * volume * rightScale; }
This somehow works, but i get strange sounds out of it. not what i expected. how would you do this? What i want to do is later scale the noise frome white noise to a more low frequency wobble.
Posts: 10
Participants: 3