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

Fix possible noise when normalizing bitinvader #5871

Closed
wants to merge 4 commits into from

Conversation

zonkmachine
Copy link
Member

Fixes #5867

@LmmsBot
Copy link

LmmsBot commented Jan 2, 2021

🤖 Hey, I'm @LmmsBot from github.com/lmms/bot and I made downloads for this pull request, click me to make them magically appear! 🎩

Linux

Windows

macOS

🤖
{"platform_name_to_artifacts": {"Linux": [{"artifact": {"title": {"title": "(AppImage)", "platform_name": "Linux"}, "link": {"link": "https://12146-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.66%2Bgecef678-linux-x86_64.AppImage"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/12146?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}], "Windows": [{"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://12150-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.66%2Bgecef678be-mingw-win32.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/12150?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://12148-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.66%2Bgecef678be-mingw-win64.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/12148?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/k1efg22n0fuyws8e/artifacts/build/lmms-1.3.0-alpha-msvc2017-win32.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/37300521"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/kn4m1o2stf0naw31/artifacts/build/lmms-1.3.0-alpha-msvc2017-win64.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/37300521"}], "macOS": [{"artifact": {"title": {"title": "", "platform_name": "macOS"}, "link": {"link": "https://12149-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.66%2Bgecef678be-mac10.14.dmg"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/12149?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}]}, "commit_sha": "6ebddcac4229da63705047665ca5ebeabf2ae9b4"}

@zonkmachine
Copy link
Member Author

Now the default wave isn't a full sine. Quickest fix for this is to increase the default wave to 200 samples.

@thmueller64
Copy link
Contributor

I tested this PR and it fixes the issue as intended. In the PR above I added an additional check for correct normalization if a similar bug occurs in the future.

@PhysSong
Copy link
Member

@zonkmachine Is this ready?

Double check for correct normalization
@zonkmachine
Copy link
Member Author

@zonkmachine Is this ready?

Almost there... :)

@zonkmachine
Copy link
Member Author

Tests fine. Problem gone and old projects seem to behave well.

In the PR above I added an additional check for correct normalization if a similar bug occurs in the future.

I've stepped through this code and it looks good to me. Should 7c3213b be squashed with the rest or kept separately at merge?

@zonkmachine
Copy link
Member Author

I think this is ready to merge.

@zonkmachine
Copy link
Member Author

Rebased and pushed manually to master in 04d696a and 4107bc0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Latest master: Normalizing BitInvader results in volume increasing to a deafening level
5 participants