-
Notifications
You must be signed in to change notification settings - Fork 757
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 broken TGrains amp
handling
#2809
Conversation
\#2136 missed a use of TGrains' `amp` parameter that left it unused in the graph function. This commit adds it back based on where it previously resided.
some suggestions (sent from a library computer, may not compile due to an eventual error. i am sorry if that's the case)
_
_ |
@tiagmoraismorgado Make sure you understand the PR before commenting please. This is just about making sure the |
server/plugins/DelayUGens.cpp
Outdated
pan1 = grain->pan1 = cos(panangle); | ||
pan2 = grain->pan2 = sin(panangle); | ||
pan1 = grain->pan1 = amp * cos(panangle); | ||
pan2 = grain->pan2 = amp * sin(panangle); | ||
} else { | ||
grain->chan = 0; | ||
pan1 = grain->pan1 = 1.; |
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.
You'll want to multiply by amp
in the one-channel case too.
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.
Done!
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.
Sorry it took so long.
Fixes #2807, a regression caused by #2136 (f35a3f7).
This should work correctly now: