That said, if you want to start on a mapping anyway and post it here, you’re welcome to do so.
#Traktor s4 code#
Second, the common-hid-packet-parser.js library is really messy code and if you try to make a mapping with it, the mapping code will be messy. So I don’t think we’d include a mapping for this controller in Mixxx until we solve that problem in the new mapping system. The speed of the audio would wobble with the wheel turning at a steady speed. First, the current implementation of jog wheel scratching is inadequate for motorized jog wheels. I am not going to map it with the current mapping system for a few reasons. However, I got it as motivation to work on the new controller mapping system, which is a long term project. I have had this controller sitting on my desk waiting to be reverse engineered for some months now. I’ve tried to find an example but was not sure what to look for. First byte is at the end of the 60 bytes packet, and the second byte at the beginning of the 15 byte packet. Now here’s the thing that confused me: the state of the leftmost mixer FX knob is split across the two packets. The 15 bytes packet contains: the Mixer knobs of the FX section in the middle and the top right FX knobs. When I use the sliders and closed knobs though, I think I get a 60 bytes packet (like the one that is constantly sent by the controller) plus a 15 bytes packet. So far, so good, looks like some effort but in general doable.
![traktor s4 traktor s4](https://i.pinimg.com/originals/c2/6a/d4/c26ad4eac564ff84dc60d89ece324b01.jpg)
If I press a button, I get a 23 bytes packet containing buttons and the open knobs (move, loop, browse). Now what I see it constantly spams 60 bytes wide packets which contain some ongoing changes (tick values? not sure at this point) as well as most of the slider/knob values. I’ve had a look at the HID packets from the controller.
![traktor s4 traktor s4](https://static.wixstatic.com/media/5ab381_75ba5d71326d4c87b658eef4de634dd6~mv2_d_2500_1364_s_2.jpg)
I’m not sure if anything will ever come from this with time being an issue all the time … but I’d like to ask a question. I’ve just had a bit of spare time this weekend and wanted to have a look if I can wrap my head around a mapping for the above.