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

Arpeggiator - Cut off trailing short notes #5523

Merged
merged 1 commit into from Nov 2, 2020

Conversation

zonkmachine
Copy link
Member

@zonkmachine zonkmachine commented May 31, 2020

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.

arpagain

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.
@LmmsBot
Copy link

LmmsBot commented May 31, 2020

🤖 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"}

@tresf
Copy link
Member

tresf commented Oct 16, 2020

@zonkmachine this is a one-liner, is there a reason why it hasn't been merged?

@zonkmachine
Copy link
Member Author

@tresf I've been busy at work. I'll have to look into this again.

@zonkmachine
Copy link
Member 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.

@zonkmachine
Copy link
Member Author

I'll test it some more and then merge in a couple of days if there are no objection.

@zonkmachine zonkmachine merged commit c39690d into LMMS:master Nov 2, 2020
@zonkmachine zonkmachine deleted the arpeggiatorfix branch November 2, 2020 17:36
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.
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.

None yet

3 participants