-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ControlDoublePrivate::getControl returning NULL for ( "[EffectRack1_EffectUnit1]" , "num_effects" ) #10638
Comments
Commented by: Holzhaus In your case you probably want to use However, we must not remove COs (which is basically a breaking API change) without at least documenting that change. |
Commented by: JoergAtGithub It seems num_effectslots does the job for my case as well. Maybe num_effects is redundant. I don't understand, what was the difference between them, both return the value 4, while 3 slots are visible. The only official mapping which contains it, is res/controllers/Reloop-Jockey-3-ME-scripts.js, but there it's commented out. |
Commented by: JoergAtGithub Should I open a PR to remove num_effects from the manual? Or will this be fixed otherwise? |
Commented by: daschuer A PR is welcome. |
num_effects also appears in |
|
easiest would be an alias (to not break mappings 🤷🏼) and mark the CO depreceated in the manual, no? |
IIUC |
Yeah, true, and I also don't understand what exactly it means / what it's useful for.
There are 4 effect slots available but only 3 are shown to match the common controller layout. |
Reported by: JoergAtGithub
Date: 2022-01-12T21:31:16Z
Status: Confirmed
Importance: High
Launchpad Issue: lp1957573
Tags: effects, regression
I use the following code section in my mapping:
This worked without failure, using Main versions from ~spring 2021. Now I updated to the latest Main and get the following warning:
warning Controller ControlDoublePrivate::getControl returning NULL for ( "[EffectRack1_EffectUnit1]" , "num_effects" )
warning Controller Unknown control "[EffectRack1_EffectUnit1]" "num_effects" , returning 0.0
warning Controller ControlDoublePrivate::getControl returning NULL for ( "[EffectRack1_EffectUnit2]" , "num_effects" )
warning Controller Unknown control "[EffectRack1_EffectUnit2]" "num_effects" , returning 0.0
With return value 0, the loop is longer executed of cause, and the mapping does not work as expected anymore. The CO is stillin the manual for 2.4, so I supposeit should still work: https://manual.mixxx.org/2.4/en/chapters/appendix/mixxx_controls.html#control-[EffectRack1_EffectUnitN]-num_effects
The text was updated successfully, but these errors were encountered: