-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix ToggleSelectedSidebarItem control of the Numark Mixtrack (Pro) II #13543
base: 2.5
Are you sure you want to change the base?
Conversation
Welcome at Mixxx! |
The pre-commit check is failing. The best way to fix pre-commit issues is to install pre-commit locally on your system, as described here: https://github.com/mixxxdj/mixxx/wiki/Using-Git#set-up-automatic-code-checking |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing this!
(even though I don't understand what broke the function)
I made some suggestions to improve the library mappings.
@@ -481,7 +481,7 @@ | |||
</control> | |||
<control> | |||
<group>[Playlist]</group> | |||
<key>NumarkMixTrackII.toggleDirectoryMode</key> | |||
<key>NumarkMixTrackII.toggleSelectedSidebarItem</key> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is another toggleDirectoryMode
binding above (0x77), is that the Back button?
That could use [Library],MoveFocus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idd, 0x77 is the back button, 0x76 is pressing the big browse button.
@@ -158,6 +159,12 @@ NumarkMixTrackII.selectKnob = function(channel, control, value, status, group) { | |||
} | |||
} | |||
|
|||
NumarkMixTrackII.toggleSelectedSidebarItem = function(channel, control, value, status, group) { | |||
if (value) { | |||
engine.setValue("[Playlist]", "ToggleSelectedSidebarItem", 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The [Playlist]
controls are deprecated, but they still work
It's recommende to use the [Library]
instead.
- Pressing the knob would be mapped to
[Library],GoToItem
, which triggers context-specific actions
https://manual.mixxx.org/2.4/en/chapters/appendix/mixxx_controls.html#control-[Library]-GoToItem - turning the knob (
NumarkMixTrackII.selectKnob
) could use[Library],Movevertical
https://manual.mixxx.org/2.4/en/chapters/appendix/mixxx_controls.html#control-[Library]-MoveVertical
IIUC the Back button should move focus between the library widgets (search, sidebar, tracks).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for letting me know. I might be able to look into this at some point in the future, but not right away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I see with the propsed changes the 'directory mode' won't work as before. Now it would trigger move focus (like Tab key) and call updateDirectoryAndFileLeds
which uses directory_mode
.
Nowadays we have [Library],focused_widget
I.e. directory_mode
is not required anymore and updateDirectoryAndFileLeds
could use [Library],focused_widget
: FOLDER whould be lit if it's 2
and FILE if it's 3
.
Are yo motivated to do that refactoring?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might like to do that at some time in the future but I can't promise. Maybe we can get this simple fix in so that controller based navigation works again? Without this fix the mouse or keyboard has to be used to go into a directory/folder when browsing the library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oka, given my experience that "might like to do that at some time in the future" likely never happens due to shifted prios etc. (myself included ; ) and the fact that it'll take some weeks or months until 2.4.2 with the fixed mapping will be released (shortly before 2.5 I guess), we might as well try to fix it now.
If you don't have time/motivation to fix it yourself (potentially with another round of review) I may provide a commit this week, but I need you to test it (I don't have access to a Mixtrack Pro II).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I just bought a Pioneer DDJ-FLX4 so I won't be creating the patch for the Mixtrack. But, as long as I have not given back the Mixtrack to my friend, I can test a patch if you have it.
p.s. I see the behaviour I implemented for the Mixtrack differs from the DDJ, if you press the browse button on the DDJ it toggles between files, search, folders. So for the DDJ I also don't have a way on the controller to open/collapse a folder in the folder view.
Controller mappings usually go to the stable branch (2.4 atm), unless they require features from later versions which is not the case here. |
When browsing, press the browse button to toggle opening/closing a folder. Tested with Numark Mixtrack Pro II.
57a06a7
to
4fbe67b
Compare
Whoops, resetting my main to mixxx/main triggered creating a lot of labels. I wanted to update the pr based on my new 2.4 branch but I can't see how to edit that. So now my main == my 2.4 == mixxx/2.4 + my fix. |
I understand the routine, but I just copy/pasted the code (5 lines, mostly boilerplate) from Pioneer-DDJ-SB3-scripts.js so it falls under the copyright of that file:
|
This PR is marked as stale because it has been open 90 days with no activity. |
When browsing, press the browse button to toggle opening/closing a folder.
updates PR #1540