-
Notifications
You must be signed in to change notification settings - Fork 64
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
Comments
Hi, Niko.
If you look at the block diagram, you'll see a cubic nonlinearity at the
input of the filter followed by a linear gain of 1.5. Looking at the
documentation of the nonlinearity, it appears that the distortion amount is
set to 1, which is the maximum. However, even if you set the distortion
amount to 0, it'll still shape your input.
I don't think that the Moog Ladder has anything like that; you could copy
the code that you find in the libraries and remove the part that causing
your issues.
Cheers,
Dario
…On Wed, Feb 12, 2025 at 11:44 PM Niko Dziemba ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#214>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHG3I2CGNV552ERY4TQAV332PPFDZAVCNFSM6AAAAABXAYJZPCVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA2DSNJQHEYDONI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
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
When running the following:
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.The text was updated successfully, but these errors were encountered: