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

ve.diodeLadder clips massively #214

Open
dziemba opened this issue Feb 12, 2025 · 2 comments
Open

ve.diodeLadder clips massively #214

dziemba opened this issue Feb 12, 2025 · 2 comments

Comments

@dziemba
Copy link
Contributor

dziemba commented Feb 12, 2025

When running the following:

process = os.oscsin(200) 
  : *(vslider("gain", 0, -48, 0, 0.1) : ba.db2linear) 
  : ve.diodeLadder(0.9, 1);

I need to reduce the gain by almost -41dB in order for the resulting waveform not to clip / turn into a square wave.
This is surprising, since a unity-amplitude sine wave shouldn't clip when ran through a filter like that.

Am I using it incorrectly (the documentation doesn't state anything) or is this a bug in the implementation?
Similar filters (e.g. moogLadder) don't show this behavior.

@dariosanfilippo
Copy link
Contributor

dariosanfilippo commented Feb 12, 2025 via email

@dziemba
Copy link
Contributor Author

dziemba commented Feb 15, 2025

Thanks for the pointers, I'll play around with it some more!

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

2 participants