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

Denon MC7000: Unify parameter button logic and add customizable modes #13589

Merged
merged 9 commits into from
Sep 6, 2024

Conversation

fwcd
Copy link
Member

@fwcd fwcd commented Aug 22, 2024

This is a rebased version of #4310, which aims to refactor the logic for the customizable parameter buttons on the Denon MC7000. Currently, the buttons change the star rating (track color if shifted), but some users rarely change these and would rather wish to map them differently.

Fortunately, the new controller settings feature lets us have our cake and it eat it too. This PR unifies the parameter button, refactors the code to be more concise/readable and adds three new parameter button modes:

Mode Description
Change Star Rating (Shift: Track Color) The current and default mode
Perform Beat Jump (Shift: Adjust Jump Size) The logic from the previous PR
Set Intro/Outro (Shift: Clear Intro/Outro) A new mode that sets/clears intro-end/outro-start

image

This PR also lets the user customize whether to override the parameter button mode with changing the pitch range. This is the default behavior as of #4729, which might be surprising to users that change the mode, hence the ability to disable it.

Copy link
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

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

LGTM otherwise

res/controllers/Denon-MC7000-scripts.js Show resolved Hide resolved
@fwcd fwcd mentioned this pull request Aug 22, 2024
@fwcd fwcd force-pushed the mc7000-parameter-buttons branch from 9f507c1 to 590edda Compare August 30, 2024 23:57
@fwcd
Copy link
Member Author

fwcd commented Aug 31, 2024

The branch is now rebased onto the latest 2.5 and the conflict from #13588 is fixed.

Copy link
Member

@Swiftb0y Swiftb0y 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. Sorry for having this dragged out this long

@Swiftb0y Swiftb0y merged commit f815d00 into mixxxdj:2.5 Sep 6, 2024
13 checks passed
@fwcd fwcd deleted the mc7000-parameter-buttons branch September 6, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants