Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOISE: Invalid output on Red output #98

Open
sanderbaan opened this issue Oct 19, 2019 · 4 comments
Open

NOISE: Invalid output on Red output #98

sanderbaan opened this issue Oct 19, 2019 · 4 comments

Comments

@sanderbaan
Copy link

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:
Screenshot 2019-10-19 at 17 46 37

@AndrewBelt
Copy link
Member

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.

@teknico
Copy link

teknico commented Oct 21, 2019

According to the BogAudio spectrum analyzer, several signals behave unexpectedly at low frequencies:

  • red and pink noise flatten below ~100Hz, instead of keeping on going up;
  • blue and violet go up below ~50Hz, instead of keeping on going down;
  • grey (green line) goes down below ~200Hz, instead of keeping on going up.

NoisSpectra

@AndrewBelt
Copy link
Member

AndrewBelt commented Oct 21, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants