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

Issues with Mixtrack 3 Mapping #13639

Closed
amakea opened this issue Sep 9, 2024 · 29 comments
Closed

Issues with Mixtrack 3 Mapping #13639

amakea opened this issue Sep 9, 2024 · 29 comments
Labels

Comments

@amakea
Copy link

amakea commented Sep 9, 2024

Bug Description

Hi. Since 2.4.0, Numark Mixtrack 3 mapping is acting funny. Shift+button is not working. A few people are reporting this here.

for some reason a lot of the shift, pad mode, and tap functions that are on the manual straight up don’t work.

It's giving a number of warnings...

controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], volume) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], pfl) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], duration) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], play_indicator) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], cue_indicator) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], loop_start_position) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], loop_end_position) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], loop_enabled) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], sync_enabled) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], beatloop_2_enabled) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], beatloop_4_enabled) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], beatloop_8_enabled) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], beatloop_16_enabled) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], beatloop_0.125_enabled) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], beatloop_0.25_enabled) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], beatloop_0.5_enabled) using `connectControl` which is deprecated. Use `makeConnection` instead!"
 controller.mixtrack3midi1:warning [Controller] "Script tried to connect to ([Channel2], beatloop_1_enabled) using `connectControl` which is deprecated. Use `makeConnection` instead!"
warning [Controller] "Could not convert argument 1 at"
warning [Controller]     "sendShortMsg@file:///home/user/.mixxx/controllers/Numark-Mixtrack-3-scripts.js:213"
warning [Controller]     "@file:///home/user/.mixxx/controllers/Numark-Mixtrack-3-scripts.js:273"
warning [Controller]     "@file:///home/user/.mixxx/controllers/Numark-Mixtrack-3-scripts.js:1312"
warning [Controller] "Passing incompatible arguments to C++ functions from JavaScript is dangerous and deprecated."
warning [Controller] "This will throw a JavaScript TypeError in future releases of Qt!"
warning [Controller] "Could not convert argument 1 at"
warning [Controller]     "sendShortMsg@file:///home/user/.mixxx/controllers/Numark-Mixtrack-3-scripts.js:213"
warning [Controller]     "@file:///home/user/.mixxx/controllers/Numark-Mixtrack-3-scripts.js:273"
warning [Controller]     "@file:///home/user/.mixxx/controllers/Numark-Mixtrack-3-scripts.js:1312"
warning [Controller] "Passing incompatible arguments to C++ functions from JavaScript is dangerous and deprecated."
warning [Controller] "This will throw a JavaScript TypeError in future releases of Qt!"
warning [Controller] "Could not convert argument 2 at"
warning [Controller]     "sendShortMsg@file:///home/user/.mixxx/controllers/Numark-Mixtrack-3-scripts.js:213"
warning [Controller]     "@file:///home/user/.mixxx/controllers/Numark-Mixtrack-3-scripts.js:382"
warning [Controller]     "@file:///home/user/.mixxx/controllers/Numark-Mixtrack-3-scripts.js:370"
warning [Controller] "Passing incompatible arguments to C++ functions from JavaScript is dangerous and deprecated."
warning [Controller] "This will throw a JavaScript TypeError in future releases of Qt!"
warning [Controller] "Could not convert argument 2 at"
warning [Controller]     "sendShortMsg@file:///home/user/.mixxx/controllers/Numark-Mixtrack-3-scripts.js:213"
warning [Controller]     "@file:///home/user/.mixxx/controllers/Numark-Mixtrack-3-scripts.js:382"
warning [Controller]     "@file:///home/user/.mixxx/controllers/Numark-Mixtrack-3-scripts.js:370"

I change the things to "makeConnection" and then more problems happen, perhaps I need to do more.

warning [Controller] ControlObject accessed via deprecated key "[Channel2]" "hotcue_1_enabled" - use "[Channel2]" "hotcue_1_status" instead
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], hotcue_1_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
warning [Controller] ControlObject accessed via deprecated key "[Channel2]" "hotcue_2_enabled" - use "[Channel2]" "hotcue_2_status" instead
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], hotcue_2_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
warning [Controller] ControlObject accessed via deprecated key "[Channel2]" "hotcue_3_enabled" - use "[Channel2]" "hotcue_3_status" instead
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], hotcue_3_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
warning [Controller] ControlObject accessed via deprecated key "[Channel2]" "hotcue_4_enabled" - use "[Channel2]" "hotcue_4_status" instead
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], hotcue_4_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], track_samples) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], vu_meter) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], playposition) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], volume) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], pfl) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], duration) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], play_indicator) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], cue_indicator) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], loop_start_position) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], loop_end_position) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], loop_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], sync_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_2_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_4_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_8_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_16_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_0.125_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_0.25_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_0.5_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_1_enabled) to an invalid callback. Make sure that your code contains no syntax errors."

Thank you for your time.

Version

2.4.1-4

OS

Arch Linux

@amakea amakea added the bug label Sep 9, 2024
@Swiftb0y
Copy link
Member

Swiftb0y commented Sep 9, 2024

Hey there, thanks for reporting your issue. Lets get to the bottom of this. Can you reproduce the problem in your makeConnection variant when you disable the mapping in the preferences and then manually enable it again? I assume these logs are from the messages occurring when starting mixxx?

@amakea
Copy link
Author

amakea commented Sep 9, 2024

Yes, I can reproduce it. Here is the full log using the makeConnection version. The program starts up with the mapping disabled, and then I enable it in the preferences. Along with the errors, all the LED's will then light up the controller.

$ mixxx
Using preferences ScaleFactor 1
Loading resources from  "/usr/share/mixxx/"
Configuration file is at the current version "2.4.1"
BroadcastSettings - Found 1 profile(s)
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.front.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround51.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround51.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround40.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround51.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround51.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround51.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.surround71.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.modem.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.modem.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.modem.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib confmisc.c:1377:(snd_func_refer) Unable to find definition 'cards.0.pcm.modem.0:CARD=0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM phoneline
 kf.windowsystem:warning [Main] Could not find any platform plugin
 qt.qpa.wayland:warning [Main] Wayland does not support QWindow::requestActivate()
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Sampler1], play) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Sampler2], play) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Sampler3], play) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Sampler4], play) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Sampler5], play) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Sampler6], play) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Sampler7], play) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Sampler8], play) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([EffectRack1_EffectUnit1_Effect1], enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([EffectRack1_EffectUnit1_Effect2], enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([EffectRack1_EffectUnit1_Effect3], enabled) to an invalid callback. Make sure that your code contains no syntax errors."
warning [Controller] ControlObject accessed via deprecated key "[Channel1]" "hotcue_1_enabled" - use "[Channel1]" "hotcue_1_status" instead
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], hotcue_1_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
warning [Controller] ControlObject accessed via deprecated key "[Channel1]" "hotcue_2_enabled" - use "[Channel1]" "hotcue_2_status" instead
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], hotcue_2_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
warning [Controller] ControlObject accessed via deprecated key "[Channel1]" "hotcue_3_enabled" - use "[Channel1]" "hotcue_3_status" instead
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], hotcue_3_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
warning [Controller] ControlObject accessed via deprecated key "[Channel1]" "hotcue_4_enabled" - use "[Channel1]" "hotcue_4_status" instead
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], hotcue_4_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], track_samples) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], vu_meter) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], playposition) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], volume) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], pfl) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], duration) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], play_indicator) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], cue_indicator) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], loop_start_position) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], loop_end_position) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], loop_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], sync_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], beatloop_2_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], beatloop_4_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], beatloop_8_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], beatloop_16_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], beatloop_0.125_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], beatloop_0.25_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], beatloop_0.5_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel1], beatloop_1_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([EffectRack1_EffectUnit2_Effect1], enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([EffectRack1_EffectUnit2_Effect2], enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([EffectRack1_EffectUnit2_Effect3], enabled) to an invalid callback. Make sure that your code contains no syntax errors."
warning [Controller] ControlObject accessed via deprecated key "[Channel2]" "hotcue_1_enabled" - use "[Channel2]" "hotcue_1_status" instead
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], hotcue_1_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
warning [Controller] ControlObject accessed via deprecated key "[Channel2]" "hotcue_2_enabled" - use "[Channel2]" "hotcue_2_status" instead
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], hotcue_2_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
warning [Controller] ControlObject accessed via deprecated key "[Channel2]" "hotcue_3_enabled" - use "[Channel2]" "hotcue_3_status" instead
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], hotcue_3_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
warning [Controller] ControlObject accessed via deprecated key "[Channel2]" "hotcue_4_enabled" - use "[Channel2]" "hotcue_4_status" instead
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], hotcue_4_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], track_samples) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], vu_meter) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], playposition) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], volume) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], pfl) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], duration) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], play_indicator) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], cue_indicator) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], loop_start_position) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], loop_end_position) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], loop_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], sync_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_2_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_4_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_8_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_16_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_0.125_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_0.25_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_0.5_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
 controller.mixtrack3midi1:warning [Controller] "Tried to connect ([Channel2], beatloop_1_enabled) to an invalid callback. Make sure that your code contains no syntax errors."
warning [LibraryScanner 1] QSqlDatabasePrivate::removeDatabase: connection 'MIXXX-2' is still in use, all queries will cease to work.

@Swiftb0y
Copy link
Member

Swiftb0y commented Sep 10, 2024

Ah, right. So the makeConnection version doesn't accept a string as a callback. pass a function directly. That shouldn't be very complicated fortunately. You'll just need to remove the " quotation marks so you pass the function directly instead of its name.

Moreover, there is a type in the script at line 755. it should be this.LEDs.cue = new LED(0x90 + j, leds.cue); (leds.cue being lowercase). That should likely fix the original issue. Can you implement both and get back to me if any other issues occur? Thanks.

@amakea
Copy link
Author

amakea commented Sep 10, 2024

Cool. I can do this. I just don't know which quotations to remove, can you please explain more? Thank you.

@Swiftb0y
Copy link
Member

Having a second look, the mapping is not really setup to easily transition to makeConnection. Ignore that comment. Just focus on the issue in Line 755.

@amakea
Copy link
Author

amakea commented Sep 10, 2024

I have changed the line to this.LEDs.cue = new LED(0x90 + j, leds.cue); but that seems to make no difference.

@Swiftb0y
Copy link
Member

thats weird. can you post the new log?

@Swiftb0y
Copy link
Member

Swiftb0y commented Sep 10, 2024

and add console.warn(control,midino,value); in Line 213 above the midi.sendShortMsg(control, midino, value); So I can see what the wrong values actually are.

@amakea
Copy link
Author

amakea commented Sep 10, 2024

https://termbin.com/z3sd

@Swiftb0y
Copy link
Member

That log is still from the change to makeConnection. You'll need to change it back to connectControl for now.

@amakea
Copy link
Author

amakea commented Sep 10, 2024

oops. here's with just line 755 edited and warnings enabled.
https://termbin.com/k51l

@Swiftb0y
Copy link
Member

apply this patch and see if it makes a difference please.

diff --git a/res/controllers/Numark-Mixtrack-3-scripts.js b/res/controllers/Numark-Mixtrack-3-scripts.js
index ec7b548e96..fbeddba7b6 100644
--- a/res/controllers/Numark-Mixtrack-3-scripts.js
+++ b/res/controllers/Numark-Mixtrack-3-scripts.js
@@ -288,7 +288,7 @@ LED.prototype.onOff = function(value) {
 //           if not set, it considers it as a switch off (default=false)
 // valueoff : like "value". That permits for instance with two colors (once red(on), once blue(off), once red(on), etc...)
 
-LED.prototype.flashOn = function(num_ms_on, value, num_ms_off, flashCount, relight, valueoff) {
+LED.prototype.flashOn = function(num_ms_on, value, num_ms_off, flashCount) {
     // stop pending timers
     this.flashOff();
 
@@ -298,8 +298,6 @@ LED.prototype.flashOn = function(num_ms_on, value, num_ms_off, flashCount, relig
     this.valueon = value;
     this.num_ms_off = num_ms_off;
     this.flashCount = flashCount;
-    this.relight = relight;
-    this.valueoff = valueoff;
 
     // 1st flash
     // This is because the permanent timer below takes
@@ -320,7 +318,7 @@ LED.prototype.flashOn = function(num_ms_on, value, num_ms_off, flashCount, relig
         // so we don't need this part  if flashcount=1
         // temporary timer. The end of this timer stops the permanent flashing
 
-        this.flashTimer2 = engine.beginTimer(flashCount * (num_ms_on + num_ms_off) - num_ms_off, ()=>this.stopflash(relight), true);
+        this.flashTimer2 = engine.beginTimer(flashCount * (num_ms_on + num_ms_off) - num_ms_off, ()=>this.stopflash(this.relight), true);
     }
 };
 

@amakea
Copy link
Author

amakea commented Sep 10, 2024

Looks like that reduced the number of warnings, and the LED's no longer all light up, but now the controller doesn't work at all. Here's the log... https://termbin.com/a7jx

@Swiftb0y
Copy link
Member

The log contains no obvious errors. I'm afraid that's all I can do with my remote troubleshooting.

@amakea
Copy link
Author

amakea commented Sep 14, 2024

I likely made some kind of misstep last time I tried your patch @Swiftb0y
I redid it and the controller is responding again. Here is the updated log... https://termbin.com/j04e9

@Swiftb0y
Copy link
Member

thanks. that contains something I can work with again. can you add the console.warn(value, group, control); above line 1312 so I can see the values?

@amakea
Copy link
Author

amakea commented Sep 14, 2024

Script looks like this, hope it's correct

NumarkMixtrack3.OnCuePointChange = function(value, group, control) {
    var deck = NumarkMixtrack3.deckFromGroup(group);
    deck.LEDs.cue.onOff((value) ? ON : OFF);
    console.warn(value, group, control);
};

log > https://termbin.com/cjhh

@Swiftb0y
Copy link
Member

whoops, I'm sorry. I also need the console.warn in the sendShortMsg I asked you to add previously.

@amakea
Copy link
Author

amakea commented Sep 15, 2024

Got it, here you go... https://termbin.com/5okp

@amakea
Copy link
Author

amakea commented Sep 16, 2024

Forgot the "leds.cue" edit @ line 755. Here's another log which includes it https://termbin.com/50oh

@Swiftb0y
Copy link
Member

Thanks. That missing edit was the source of the error. the log contains no errors now, so we're back at the start. What exactly is broken right now?

@amakea
Copy link
Author

amakea commented Sep 16, 2024

Referencing the manual
The following is not working for me...

  1. High EQ Knobs
    Adjust High frequencies of the deck
    SHIFT + HIGH: Adjust parameter 1 of the currently focused effect on this deck.

  2. Mid EQ Knobs
    Adjust Mid frequencies of the deck
    SHIFT + MID: Adjust parameter 2 of the currently focused effect on this deck.

  3. Low EQ Knobs
    Adjust Low frequencies of the deck
    SHIFT + LOW: Adjust parameter 3 of the currently focused effect on this deck.

  4. Filter
    Adjusts the amount of the filter effect. Turning the knob left controls the low pass filter; turning it right controls the high pass filter.
    SHIFT + FILTER: Adjust parameter 4 of the currently focused effect on this deck.
    If effect is unfocused then;
    SHIFT + FILTER Adjust the gain of the deck.

EQ's & filter on their own are working fine, trying to shift+eq/filter does not.
Also, I'm not experiencing the pad and sync issues that people were reporting in the forum.

@Swiftb0y
Copy link
Member

according to the code, for those to work a filter needs to be focused. In latenight for example the effect unit should get a blue border.

@amakea
Copy link
Author

amakea commented Sep 16, 2024

you are correct, my mistake. thanks for pointing that out. happy to close this, unless anything else needs to be addressed.

@Swiftb0y
Copy link
Member

Swiftb0y commented Sep 17, 2024

Well I don't have the hardware, so you'll have to tell me if there is anything else that's broken. 😅

If not, let me summarize what we did so far:

  1. we fixed line 755
  2. you applied my suggestions from Issues with Mixtrack 3 Mapping #13639 (comment)

right? because then we should include those changes in mixxx so others can benefit from the same fixes in upcoming versions.

@amakea
Copy link
Author

amakea commented Sep 17, 2024

I agree. Here's a patch of what was changed, with the console warns commented out.

--- a/Numark-Mixtrack-3-scripts.js	2024-09-09 03:00:41.000000000 -0700
+++ b/Numark-Mixtrack-3-scripts.js	2024-09-16 20:18:22.453981503 -0700
@@ -210,6 +210,7 @@
 };
 
 function sendShortMsg(control, midino, value) {
+    //console.warn(control,midino,value);
     midi.sendShortMsg(control, midino, value);
 }
 
@@ -288,7 +289,7 @@
 //           if not set, it considers it as a switch off (default=false)
 // valueoff : like "value". That permits for instance with two colors (once red(on), once blue(off), once red(on), etc...)
 
-LED.prototype.flashOn = function(num_ms_on, value, num_ms_off, flashCount, relight, valueoff) {
+LED.prototype.flashOn = function(num_ms_on, value, num_ms_off, flashCount) {
     // stop pending timers
     this.flashOff();
 
@@ -298,8 +299,6 @@
     this.valueon = value;
     this.num_ms_off = num_ms_off;
     this.flashCount = flashCount;
-    this.relight = relight;
-    this.valueoff = valueoff;
 
     // 1st flash
     // This is because the permanent timer below takes
@@ -320,7 +319,7 @@
         // so we don't need this part  if flashcount=1
         // temporary timer. The end of this timer stops the permanent flashing
 
-        this.flashTimer2 = engine.beginTimer(flashCount * (num_ms_on + num_ms_off) - num_ms_off, ()=>this.stopflash(relight), true);
+        this.flashTimer2 = engine.beginTimer(flashCount * (num_ms_on + num_ms_off) - num_ms_off, ()=>this.stopflash(this.relight), true);
     }
 };
 
@@ -752,7 +751,7 @@
     this.LEDs.hotCue2 = new LED(0x90 + j, leds.hotCue2);
     this.LEDs.hotCue3 = new LED(0x90 + j, leds.hotCue3);
     this.LEDs.hotCue4 = new LED(0x90 + j, leds.hotCue4);
-    this.LEDs.cue = new LED(0x90 + j, leds.Cue);
+    this.LEDs.cue = new LED(0x90 + j, leds.cue);
     this.LEDs.sync = new LED(0x90 + j, leds.sync);
     this.LEDs.play = new LED(0x90 + j, leds.play);
     this.LEDs.fx1 = new LED(0x90 + j, leds.fx1);
@@ -1310,6 +1309,7 @@
 NumarkMixtrack3.OnCuePointChange = function(value, group, control) {
     var deck = NumarkMixtrack3.deckFromGroup(group);
     deck.LEDs.cue.onOff((value) ? ON : OFF);
+    //console.warn(value, group, control);
 };
 
 // Pitch faders send 2*7bits

@amakea amakea closed this as completed Sep 17, 2024
@Swiftb0y
Copy link
Member

Swiftb0y commented Sep 17, 2024

Great, thanks. You seem git competent, would you mind filing a Pull request with these changes (feel free to remove the commented out console.warn calls entirely)?

@amakea
Copy link
Author

amakea commented Sep 17, 2024

Kind of. Learning as I go along. You've helped me learn some new things as well.
Here is the pull request, I believe I did it correctly.

@Swiftb0y
Copy link
Member

Mostly yeah, lets continue this on the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants