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

BeatsImporter: Return Beats object instead of frame position vector #4342

Merged
merged 1 commit into from
Sep 30, 2021

Conversation

Holzhaus
Copy link
Member

This makes the BeatsImporter return an actual Beats object instead of a
vector of frame positions. The main reason for this change is that it
will avoid the unnecessary intermediate step of converting to/from raw
frame positions when the new beats implementation is ready.

Additionally, this prevents wrong usage by making it impossible to
passing a SignalInfo to import method and then use a different sample
rate for creating the beats object (which would invalidate all
positions).

Theoretically, this also allows to return a BeatGrid instead of a
BeatMap, although we don't make use of this possibility and the
distinction hopefully becomes obsolete soon anyway.

This makes the BeatsImporter return an actual Beats object instead of a
vector of frame positions. The main reason for this change is that it
will avoid the unnecessary intermediate step of converting to/from raw
frame positions when the new beats implementation is ready.

Additionally, this prevents wrong usage by making it impossible to
passing a `SignalInfo` to import method and then use a different sample
rate for creating the beats object (which would invalidate all
positions).

Theoretically, this also allows to return a `BeatGrid` instead of a
`BeatMap`, although we don't make use of this possibility and the
distinction hopefully becomes obsolete soon anyway.
Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thank you.

@daschuer daschuer merged commit 853d4eb into mixxxdj:main Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants