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

Jog wheels not working #1

Closed
j4ckp0t85 opened this issue Oct 23, 2022 · 5 comments
Closed

Jog wheels not working #1

j4ckp0t85 opened this issue Oct 23, 2022 · 5 comments

Comments

@j4ckp0t85
Copy link

Hello, i have tried to run mixxx using a prepared image for raspberry 4.

Long short story: i am able to use your software and i see the device on mixxx configuration.

For midi mapping i have tried the file posted on mixxx forum here

I can use volume, cross fade and play buttons plus some other buttons, but the jog wheels and shift button doesn't work.

Is it normal? Have you done some improvement?

@blaxpot
Copy link
Owner

blaxpot commented Oct 24, 2022

I haven't yet implemented anything to send MIDI messages for the jog wheels. You can, however, see the events being received from the snd-usb-caiaq kernel module using traktor-s4-mk1-print-events. Here's some sample output:

# traktor-s4-mk1-print-events | grep 'code 52\|code 53'
...
event at 1666586086.493500, code 52, type 03, val 1004
event at 1666586086.493500, code 53, type 03, val 244
event at 1666586086.502095, code 52, type 03, val 1005
event at 1666586086.502095, code 53, type 03, val 244
event at 1666586086.534987, code 52, type 03, val 1006
event at 1666586086.534987, code 53, type 03, val 244
event at 1666586086.572279, code 52, type 03, val 1007
event at 1666586086.572279, code 53, type 03, val 244
event at 1666586086.594272, code 52, type 03, val 1008
event at 1666586086.594272, code 53, type 03, val 244
event at 1666586086.652746, code 52, type 03, val 1009
event at 1666586086.652746, code 53, type 03, val 244
event at 1666586086.683609, code 52, type 03, val 1010
event at 1666586086.683609, code 53, type 03, val 244
event at 1666586093.146407, code 52, type 03, val 1010
event at 1666586093.146407, code 53, type 03, val 245
event at 1666586093.243735, code 52, type 03, val 1010
event at 1666586093.243735, code 53, type 03, val 246
event at 1666586093.354742, code 52, type 03, val 1010
event at 1666586093.354742, code 53, type 03, val 245
...

I'll need to add logic to handle these events for the jog wheels to work. Likewise for the other rotary encoders (e.g. the gain/loop/browse knobs) and the pressure sensitive plates on top of the jog wheels.

@j4ckp0t85
Copy link
Author

I'm not that much in atm to contribute on this, but it would be cool to (at least) map all the control except leds and minimize all the setup with a raspberry, a tiny touch screen and an audio card

@blaxpot
Copy link
Owner

blaxpot commented Oct 25, 2022

I've had a look into this a bit more. I think it will be best to convert the absolute position values for the jog wheels to relative values somehow inside traktor-s4-mk1-midify, since it seems that the Windows / macOS MIDI drivers do this.

It also seems that this will be the easiest way to get the jog wheels to behave in a way that most people will expect. There's a bit of info on the topic in the MIDI scripting section of the Mixxx wiki.

I'll verify by setting up a Windows machine to test before proceeding, but hopefully I can find the time to do this sometime this week.

@j4ckp0t85
Copy link
Author

j4ckp0t85 commented Oct 25, 2022

Great. For me it's mostly important for pitch bending stuff and move to beat of interest for manual cueing.

Djing enabling sync is not an option :)

The second most important feature i miss are bass, low and mid channel knobs. Filter knobs too would be great.

I have mostly no experience on python, anyway if i recon correctly your script you have to populate mappings on the alsa address to midi id map (at least for for some of the controls) since if it's not mapped the script interrupt the execution. (from line 54)

The question is how you obtain the midi numeric id value from the code. The address is already known as of csv

@blaxpot
Copy link
Owner

blaxpot commented Oct 31, 2022

Jog wheels are functional in v0.1.0.

@blaxpot blaxpot closed this as completed Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants