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

Native Instruments Traktor Kontrol Z1: Add new HID mapping #12366

Merged
merged 20 commits into from Dec 9, 2023

Conversation

djantti
Copy link
Contributor

@djantti djantti commented Nov 26, 2023

Hi Mixxx developers!

I created a new Native Instruments Traktor Kontrol Z1 HID mapping based on the official Traktor Kontrol S2 MK3 code. I've been testing it with Mixxx 2.4 branch and everything seems to work properly. It has extended features using the Mode button as a modifier (same as in Kontrol Z1 wiki page) and better support for the device LEDs. I also have a finished Mixxx manual page ready for the controller.

Features:

  • All knobs, faders and VU meters functional
  • Mode + FX -> Playback start / stop
  • Mode + Headphone -> Go to cue and stop
  • Dim standby lights for all buttons
  • FX button red LEDs as momentary playback start / stop indicators

Let me know if there's something missing or if changes are needed. Thanks!

@JoergAtGithub
Copy link
Member

Welcome at Mixxx!
As a first-time contributor we need you to sign the Mixxx Contributor Agreement and comment here when you have done so. 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.

@djantti
Copy link
Contributor Author

djantti commented Nov 26, 2023

Signed!

@JoergAtGithub
Copy link
Member

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
Than it will fix these issues automatically before every commit.
Alternatively, you can download the pre-commit.patch file from the artifacts of this PR
grafik
unzip it, and apply it using:
git apply pre-commit.patch

@JoergAtGithub
Copy link
Member

Please use pre-commit, it will apply all the necessary changes automatically.

@djantti
Copy link
Contributor Author

djantti commented Nov 27, 2023

Thanks! I got pre-commit installed locally, but I'm still figuring out how to make proper use of it. I did run my code manually through it and fixed all the errors it mentioned.

@JoergAtGithub
Copy link
Member

@djantti Did you notice my PR djantti#1 ?

@djantti
Copy link
Contributor Author

djantti commented Dec 5, 2023

Oh no, I'm sorry, I'm still very new to GitHub and totally missed it. Testing your PR right now.

Copy link
Member

@JoergAtGithub JoergAtGithub left a comment

Choose a reason for hiding this comment

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

This looks already really good - just some minor naming remarks.

res/controllers/Traktor-Kontrol-Z1-scripts.js Outdated Show resolved Hide resolved
res/controllers/Traktor-Kontrol-Z1-scripts.js Outdated Show resolved Hide resolved
res/controllers/Traktor-Kontrol-Z1-scripts.js Outdated Show resolved Hide resolved
res/controllers/Traktor-Kontrol-Z1-scripts.js Outdated Show resolved Hide resolved
res/controllers/Traktor-Kontrol-Z1-scripts.js Outdated Show resolved Hide resolved
@djantti
Copy link
Contributor Author

djantti commented Dec 7, 2023

Thank you for the remarks! I think I managed to change everything needed. The naming scheme is way better now.

Copy link
Member

@JoergAtGithub JoergAtGithub left a comment

Choose a reason for hiding this comment

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

LGTM! As soon as the manual PR is ready, we can merge this!

@JoergAtGithub JoergAtGithub added the changelog This PR should be included in the changelog label Dec 7, 2023
@djantti
Copy link
Contributor Author

djantti commented Dec 7, 2023

That is awesome! I will finish the manual page next.

@JoergAtGithub JoergAtGithub merged commit dcdb4dd into mixxxdj:2.4 Dec 9, 2023
12 checks passed
@JoergAtGithub
Copy link
Member

Thank you, for taking the time to bring this to a mergeable state!

@JoergAtGithub
Copy link
Member

If you are interested in further improvement of this mapping, you could have a look at the S2 Mk1 mapping that:

@djantti
Copy link
Contributor Author

djantti commented Dec 9, 2023

Oh cool, those would be really nice additions for this mapping too! I will take a look.

Working on this is a lot of fun and I'm happy I can make a contribution to one of my favorite open source applications. Also thank you for your excellent guidance and suggestions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog This PR should be included in the changelog controller mappings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants