-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix drawNoteRect misalignments #5881
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
Conversation
🤖 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://12854-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.75%2Bg4dfeae4-linux-x86_64.AppImage"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/12854?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://12855-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.75%2Bg4dfeae488-mingw-win32.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/12855?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://12851-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.75%2Bg4dfeae488-mingw-win64.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/12851?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/5wtslsi4tgj8mnep/artifacts/build/lmms-1.3.0-alpha-msvc2017-win32.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/38103737"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/cm9gpe5v1v59p2r3/artifacts/build/lmms-1.3.0-alpha-msvc2017-win64.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/38103737"}], "macOS": [{"artifact": {"title": {"title": "", "platform_name": "macOS"}, "link": {"link": "https://12852-15778896-gh.circle-artifacts.com/0/lmms-1.3.0-alpha.1.75%2Bg4dfeae488-mac10.14.dmg"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/12852?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}]}, "commit_sha": "3869e30e3374462002e0c0ddc267f88dcac53849"} |
|
Code looks good. @RoxasKH Could you test this and confirm the fix? |
Just tested it and it seems it's still buggy to me. It'd be better if someone else could test it, too, tho. |
Well, i tested it, and i find it correct working. "As by design" 👍 |
No idea why it still happens to me, but i gotta admit i don't install properly LMMS versions to test them. |
This is for the notes, the artifacting on the piano keys is another issue I noticed that I'll look into later. |
Oh, thanks to point this out, i actually created the issue for the artifacts of the pianoroll keys so i never really noticed the notes bug while resizing. Seems still a little buggy, but mostly unnoticeable. |
|
@Veratil Do you want to fix piano keys in this PR or in a separate PR? |
I haven't figured out the reason for the piano keys glitch yet, but that will be a separate PR. |
|
@Veratil Isn't the |
I didn't seem to have any issues with detuning draw, but I can double check it again.
Yeah that's reasonable. It'd have to be a lambda though since |
|
This can potentially conflict with #5928, FYI. |
Double checking the diff for 5928, I don't see it touching these lines. It also still calculates the midpoint of the note based on the Y position given, so afaict we're safe on both. 👍 |
|
I can confirm the issue Roxas encountered, but I think it may be the octave lines that are bugged, since they stay aligned with the buggy keyboard. Dragging the bottom of the piano roll window down exposes more and more of the next lowest key until a full key is visible, at which point the view jumps to expose the next higher key instead. Regardless of whether this is contributing to the octave line/note desync, it's rather unpleasant. The same occurs when dragging the top of the piano roll up. In 1.2, the new notes at the top are smoothly revealed. |
Spekular
left a comment
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.
Code wise changes LGTM. As for testing, piano roll resizing is still buggy, but this is an improvement over the existing behavior on master.
I'll see what I can debug to prevent this state.
I agree smooth reveal is better, and I'll aim to get back to that. 👍 For now we're slowly just fixing and cleaning the old, slow, and poorly maintained code. One step back, two steps forward. 😄 |

Partially Fixes #5863 (Notes misaligning, not keys visual glitch)
Tested with ghost notes, detuning, scrolling vertical and horizontal, and resizing the note edit area. Everything seems to be working as normal now for notes.