-
Notifications
You must be signed in to change notification settings - Fork 758
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
Plugins: Integrator Ctor passes through the first sample only #5352
Plugins: Integrator Ctor passes through the first sample only #5352
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a documentation change to this PR? We'll try to pull in to 3.13, and should have a description about expectations pre / post 3.13
@jamshark70 - checking in again on the documentation update. Can you please add this? We'll be planning an RC for 3.13.0 after our meeting at the end of Aug 2022 if the update can be applied by then. Thanks! |
@joshpar – what would you expect the documentation change to be? I can only imagine a warning that past implementations had a one off error. But otherwise, this seems to be just a bugfix. |
Ah, I see now that the labeling was changed from bug fix to API change. Well... I don't fully agree with that. The old behavior was simply incorrect. You can call it an API change if the old behavior was justifiable, but was changed to a different justifiable behavior for a good reason. I can't think of many places in the documentation where we say "prior to v3.13, there was a bug that looked like xyz; it is fixed and the new behavior looks like abc." Pretty much, this is the only documentation change that I can imagine here. I think this would look a bit awkward from the user perspective. Completely fair to include this in the changelog. |
@jamshark70 |
@jamshark70 I just wanted to check in on this PR. It would be great to get this into 3.13! |
I updated the init formula per mtmccrea's suggestions, and verified that the unit test passes. Good to go? |
Re: documentation: I've made a note on this change on the draft changelog notes for 3.13 so this will be included in the changelog. Does that satisfy your requirements @joshpar? |
Looks good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @jamshark70!
Purpose and Motivation
Integrator double-counts the initial value, because of calling
next
in the Ctor.See the added unit test: Without this fix, the integral of a single 1 followed by endless 0s ends up being 2. With the fix, it's 1 as expected.
(This is related to #2343 but it's only a spot fix of one UGen.)
Types of changes
To-do list
[ ] Updated documentation