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

Search: also search for half & double BPM #12070

Closed
wants to merge 1 commit into from

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Oct 6, 2023

bpm:N now also finds N*2 and N/2, the latter with a range of prev - next integer in case N is odd, considering electronic music with mostly integer BPM.

In case the behaviour is unexpected and disturbing for users we may add an option to Preferences > Library > Search (default on).

This may be extended / rewritten for range operators n-m if desired (fuzzy BPM match), and in that case probably better moved to new FilterNode BpmFilterNode.

  • add a test

If wanted this for years and since it's working I'll use it, but I can't tell when I'll finish it (tests, polishing). Feel free to adopt/edit if there's a demand.

@ronso0 ronso0 mentioned this pull request Oct 6, 2023
@ronso0
Copy link
Member Author

ronso0 commented Oct 6, 2023

Meeh, seems I broke too many use cases.
I'll go with BpmFilterNode, that allow to get both half/double search and fuzzy search.

@ronso0 ronso0 mentioned this pull request Oct 7, 2023
6 tasks
@ronso0
Copy link
Member Author

ronso0 commented Oct 7, 2023

new attempt in #12072

@ronso0 ronso0 closed this Oct 7, 2023
@ronso0 ronso0 deleted the search-bpm-half-double branch October 7, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant