-
Notifications
You must be signed in to change notification settings - Fork 106
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
fix limiting FMmodfreqlo #264
Conversation
The first commit feels plausibly correct, the second one feels like it would create possible segfaults (in my mind at least). Removing the fmodf() means that tw[i] shifts from being bounded 0..oscillator-size, to being unbounded. Without that constraint then the integer version (the 'high' variable) is again unbounded, so is the code correct with that bound removed? Also, since there was a flurry of discussion around the FM modulation, let me know if this PR became out-of-date. |
this PR is meant to fix the unbounded value goes through this chain: the bounding of fmold, i want to remove leads to discontinuity in the modulator -> frequency jump |
ah, as long as carposhi is bounded, then I think this is fine (assuming it improves the FM issues that were being experienced) |
That bug that I mention here is already fixed by my Envelope fix (which I thought was part of Friedonlino's PRs, but I cannot find it right now). You remember that fix with the weird constants 0.01 and 0.99, where I also asked Paul Nasca (no reply yet)? |
b27c26f
to
cf4a69e
Compare
I think and hope the latest commit fixes the fmamp envelope problem of #261. |
a214d67
to
88e0099
Compare
88e0099
to
673e8b7
Compare
i removed the special treatment for small values in amp envelopes because they start with 0 even without it. |
this fix eliminates some spectral discontinuities when raising the fm amount.