Fix controller mapping for Pioneer DDJ-SB - #12280
Conversation
|
Welcome at Mixxx! |
|
Done! |
There was a problem hiding this comment.
Hey there, thank you for caring about this mapping. It is very much appreciated. Please see my questions down below. Also, please understand that in order for us to merge this, we need you to sign the Mixxx Contributor Agreement It gives us permission to distribute your contribution under the GPL v2 or later license and the Apple Mac App Store. It is also helpful for us to have contact information for contributors in case we may need it in the future. (comment race 😅)
Thank you.
- Added missing PioneerDDJSB.rotarySelectorClick function and made it start/stop preview deck for the selected track - Playback start is now defaulted to the middle of the track, the playback start point is configurable via the script's user options section
- Changed declaration of root object from `function() {}` to `{}`
- Removed spaces after `function` keyword
- Removed existing code for controlling effect units - Replaced with implementation using Components
8663fc7 to
c7dd1d6
Compare
|
Thanks for your contribution. I changed the base branch to 2.4, as we won't do another 2.3 release. Could you please check if the mapping still matches the behavior documented in manual (https://manual.mixxx.org/2.4/en/hardware/controllers/pioneer_ddj_sb) and file a PR for the manual repository if changes are needed? |
… current documentation
Instead of overriding unshift behaviour with a custom input function
…anual - The DDJ-SB manual states that a non shift press on the buttons should toggle effects on or off instead of selecting the focused effect (this should be done by shift clicking the buttons as the controller labels indicate) - Renamed `buttons` to `enableButtons` for the sake of clarity and consistency with the default EffectUnit implementation
- Updated parameter names that were marked as deprecated - Updated usage of `connectControl` in favour of `makeConnection` using a new utility method in the common controller script to limit modifications and allow easier update of other DDJ-SB* scripts
- Turning rotary selector moves vertically in the Library using [Library] MoveVertical - Clicking rotary selector calls [Library] GoToItem
Since this control is now unused and shift + click loads the track in the preview deck, it can be useful to move the playhead around to quickly preview different sections of the selected track
- Toggling shift updates the fx buttons leds to show either enabled effects (unshift) or currently focused effect (shift) - Bound right shift button to also trigger `PioneerDDJSB.shiftButton`
- Clicking BACK calls [Library] MoveFocusBackward to allow switching focused library element - Shift clicking BACK maximises the library by toggling [Skin] show_max_library
|
@Swiftb0y @ronso0 I've updated my implementation to take all your comments into consideration, I would recommend you look at the final result instead of going commit per commit as there has been a bit of trial and error 😅 The final mappings are the following:
If you're okay with these mappings I'll submit a PR for updating manual to reflect those changes. I've also took the opportunity of making this PR to update various usages of deprecated functions / control names. Let me know if you have further comments / questions! |
|
Oh sorry to not review this in time. Now I see a conflict has developed. |
|
@tonell-m do you have interest to continue this PR? As I understand, it only need to get the conflict fixed to be merged. Happy to help with that otherwise. |
|
@acolombier sorry for the late response, I haven't had much time to continue this PR lately and probably won't either in upcoming weeks, so if you want to pick it up from there, feel free to do so! |
|
No problem at all - glad to hear you haven't lost interest to complete it at some point! I'll mark it as draft for now, but feel free to mark ready as soon as we should get back to it |
cd725b1 to
d7d5934
Compare
|
This PR is marked as stale because it has been open 90 days with no activity. |
|
@tonell-m Any updates on this? |
|
Hi, sorry for the wait! I've merged the 2.5 branch back in to resolve conflicts. Also removed the Atm I could only test if everything still worked properly with Mixxx 2.6 beta because of this crash that I couldn't yet solve #16067 |
There was a problem hiding this comment.
Is this change needed? Doesn't look like this file is included in scriptfiles elements?
|
FYI in order to prepare for the 2.6 release (and clean up our milestone list) I just moved this to the 2.6.1 milestone and changed the base to 2.6 |
Hi all,
I'm using Mixxx with a Pioneer DDJ-SB but the built in controller mapping was not fully working properly so I've fixed the following issues in this PR:
rotarySelectorClickhandler.I've tested this updated script on Mixxx 2.3, 2.4 and 2.5 (all built from source) on macOS 12.6.7 (Monterey) using my DDJ-SB-L and it all seems to be working smoothly.
This is my first time contributing so let me know if some things are missing / need to be changed 🙂