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

Plugins: Integrator Ctor passes through the first sample only #5352

Merged
merged 2 commits into from
Sep 17, 2022

Conversation

jamshark70
Copy link
Contributor

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

  • Bug fix

To-do list

  • Code is tested
  • All tests are passing
  • [ ] Updated documentation
  • This PR is ready for review

@jamshark70 jamshark70 added bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: server plugins labels Feb 14, 2021
@mossheim mossheim added API change and removed bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. labels Feb 14, 2021
@joshpar joshpar self-assigned this Feb 20, 2022
@joshpar joshpar added this to the 3.13.0 milestone Feb 20, 2022
Copy link
Member

@joshpar joshpar left a 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

@joshpar
Copy link
Member

joshpar commented Aug 14, 2022

@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!

@telephon
Copy link
Member

@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.

@jamshark70
Copy link
Contributor Author

jamshark70 commented Aug 15, 2022

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.

@dyfer dyfer requested a review from mtmccrea August 15, 2022 21:20
mtmccrea added a commit to mtmccrea/supercollider that referenced this pull request Aug 16, 2022
@mtmccrea
Copy link
Member

@jamshark70
Thoughts on the above suggestions? Would be great to see this in the upcoming 3.13 RC!

@dyfer
Copy link
Member

dyfer commented Sep 11, 2022

@jamshark70 I just wanted to check in on this PR. It would be great to get this into 3.13!

@jamshark70
Copy link
Contributor Author

I just wanted to check in on this PR.

I updated the init formula per mtmccrea's suggestions, and verified that the unit test passes. Good to go?

@dyfer
Copy link
Member

dyfer commented Sep 12, 2022

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?
@mtmccrea if this looks good to you, can you approve the PR?

@mtmccrea
Copy link
Member

Looks good!

Copy link
Member

@mtmccrea mtmccrea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @jamshark70!

@joshpar joshpar merged commit 86492fd into supercollider:develop Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants