-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Small bug fix to the StereoEnhancer effect and Gain knob #5956
base: master
Are you sure you want to change the base?
Conversation
Fixes a small bug where the buffer was never cleared because the conditional to clearing it was never reached. Adds a Gain knob to be able to adjust the level of the output signal so a more appropriate comparison of the before/after sound is done.
🤖 Hey, I'm @LmmsBot from github.com/lmms/bot and I made downloads for this pull request, click me to make them magically appear! 🎩
Windows
Linux
macOS🤖{"platform_name_to_artifacts": {"Windows": [{"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://13199-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.88%2Bg928d3faec-mingw-win32.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/13199?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://13197-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.88%2Bg928d3faec-mingw-win64.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/13197?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/e4nwgrp2m2buiugb/artifacts/build/lmms-1.3.0-alpha-msvc2017-win32.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/38409388"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/7rggc6klkmj61wxr/artifacts/build/lmms-1.3.0-alpha-msvc2017-win64.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/38409388"}], "Linux": [{"artifact": {"title": {"title": "(AppImage)", "platform_name": "Linux"}, "link": {"link": "https://13198-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.88%2Bg928d3fa-linux-x86_64.AppImage"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/13198?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}], "macOS": [{"artifact": {"title": {"title": "", "platform_name": "macOS"}, "link": {"link": "https://13196-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.88%2Bg928d3faec-mac10.14.dmg"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/13196?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}]}, "commit_sha": "0c968637dff9c917e52c6b6f85d67df5d990fe27"} |
Since
|
Would |
Sure, now that I read it again name is a bit ambiguous. Everyone fine with |
I skipped that one intentionally because empty is another example of a verb and adjective, so it's no different from clear. |
Changes the variable name that tells whether the buffer is clear and actually sets it to true on the clearBuffer method.
On second thought, personally I think since the prefix and lack of parenthesis makes clear it's a variable it isn't that confusing. But I went and changed it to |
I think |
I didn't mean that it would be confused for a method, I meant that the purpose of the variable could be misunderstood (inverted)
+1 for Veratil's point about the naming in if-statements. |
Oh, I see it now! You're right, it can be very misleading. I changed it again to Veratil's suggestion! |
To the same point of readability, is buffer |
I think either is fine, but |
Why you didn't implement loading/saving |
Oh, I think I forgot it 😅 I'll add it and push it later today |
Saves and loads the new output gain control on the project file now.
Now outputGain is loaded and saved on the project file! |
Looks like it's pretty much done from judging by the comments. A quick rebase/merge? |
fb61343
to
99a4d0d
Compare
I resolved a merge conflict via the web-editor. It seem to have failed to merge correctly anyway and the last manual change should fix that. |
Labeling it as
after-refactor
, though it has a small bug fix and should be a really quick one to review. Only affects the StereoEnhancer plugin.Fixes a small bug where the buffer was never cleared because the conditional to clearing it was never reached.
Improves the clearing conditional so it only clears the buffer if it was actually affected in the previous process cycle.
Adds a Gain knob to be able to adjust the level of the output signal so a more appropriate comparison of the before/after sound is done.