Open sanderbaan opened 5 years ago
The IIR coefficients in https://github.com/VCVRack/Fundamental/blob/v1/src/Noise.cpp#L148-L150 are probably unstable, didn't even check. Do you have a better filter in mind? Otherwise I'll get to it eventually.
According to the BogAudio spectrum analyzer, several signals behave unexpectedly at low frequencies:
Nice colors.
Pink and red must have a shelf at the lower limit of hearing, otherwise the output is unbounded. This is not a bug. Same with gray noise. Think about what gray noise means: "White noise through equal-loudness filter". In order for 1Hz to sound the same loudness as 1000Hz, its amplitude would have to be infinite. Our ears cannot hear 1Hz sounds. So the filters are shelved because there's no point of generating frequencies below our range of hearing.
The plot says that it has a DC component at around -24 dB, which is about +/-0.63V (assuming the plot reads 0dB @ 10V). I don't know why, so if you find out let me know.
I had it a couple of times, after a while the Red output starts to output invalid data which overloads the audio signal. When connecting to scope this is what you see: