Arpeggiator - Cut off trailing short notes#5523
Merged
Merged
Conversation
Prevent triggering of extra notes at the end by not counting trailing notes shorter than one fifth of the notes arp_frames. This value being arbitrarily found by trial and error.
🤖 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://6747-15778896-gh.circle-artifacts.com/0/lmms-1.2.1.685-linux-x86_64.AppImage"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/6747?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://6748-15778896-gh.circle-artifacts.com/0/lmms-1.2.1.685-mingw-win32.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/6748?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://6746-15778896-gh.circle-artifacts.com/0/lmms-1.2.1.685-mingw-win64.exe"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/6746?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/ndq9cw0jd01tswh1/artifacts/build/lmms-1.2.1-msvc2017-win32.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/33227569"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/hk5uig2ki8ngk7ub/artifacts/build/lmms-1.2.1-msvc2017-win64.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/33227569"}], "macOS": [{"artifact": {"title": {"title": "", "platform_name": "macOS"}, "link": {"link": "https://6745-15778896-gh.circle-artifacts.com/0/lmms-1.2.1.685-mac10.13.dmg"}}, "build_link": "https://circleci.com/gh/LMMS/lmms/6745?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}]}, "commit_sha": "1d56e3f29186778a55fb093466fbe595a3bc9c08"} |
56 tasks
Member
|
@zonkmachine this is a one-liner, is there a reason why it hasn't been merged? |
Contributor
Author
|
@tresf I've been busy at work. I'll have to look into this again. |
Contributor
Author
|
I think it's fine to merge but theoretically it could make your old project skip a note at the end if you have already tweaked the note length to avoid this issue but have set it to cut off precisely after the last arp note goes on. I think this will happen in precisely 0 cases but you never know. I don't know if there's a better way to do this than an arbitrary small number like this. |
Contributor
Author
|
I'll test it some more and then merge in a couple of days if there are no objection. |
IanCaio
pushed a commit
to IanCaio/lmms
that referenced
this pull request
Mar 28, 2021
Prevent triggering of extra notes at the end by not counting trailing notes shorter than one fifth of the notes arp_frames. This value being arbitrarily found by trial and error.
sdasda7777
pushed a commit
to sdasda7777/lmms
that referenced
this pull request
Jun 28, 2022
Prevent triggering of extra notes at the end by not counting trailing notes shorter than one fifth of the notes arp_frames. This value being arbitrarily found by trial and error.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prevent triggering of extra notes at the end by not counting trailing notes shorter than one fifth of the notes arp_frames. This value being arbitrarily found by trial and error.
Addresses one of the tickets (Extra notes) in #3880
The picture in 3880 also demonstrates this fix in the lower stereo track where the duplicated notes (the bigger notes) are gone but the missing notes (another, separate issue) remains.