-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
CO Renaming (Pt. 6): Mixer Controls [WIP] #12023
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
base: 2.5
Are you sure you want to change the base?
Conversation
a090d27 to
ed7c228
Compare
ed7c228 to
e0f871f
Compare
1afecfb to
1ee18ec
Compare
1ee18ec to
15afcb4
Compare
|
This PR is marked as stale because it has been open 90 days with no activity. |
|
What is the state of this PR? Is it still a 2.4 candidate? |
|
CO renaming has been causing regressions in controller configs so I would prefer to bump this to 2.4.1 or 2.5 |
|
Than it is 2.5, because 2.4.1 is a bugfix release. |
|
I removed the draft state since dependencies have been merged. |
|
This PR is marked as stale because it has been open 90 days with no activity. |
|
@ronso0 do you have interest to take over? I'm not sure when I'd get to it. |
|
Hmm yeah, can do that. |
|
I think so. Maybe check with |
cd725b1 to
d7d5934
Compare
|
This PR is marked as stale because it has been open 90 days with no activity. |
|
I've moved it to the 2.5.4 milestone. I'll take a look next week. Rebase onto 2.6, resolve conflicts. |
| "headVolume": "ElectrixTweaker.headGainLEDs", | ||
| "headMix": "ElectrixTweaker.headMixLEDs", | ||
| "headSplit": "ElectrixTweaker.headSplitLED" | ||
| "headphone_gain": "ElectrixTweaker.headphone_gainLEDs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's revert this one
(starting to review and leave some notes for myself)
| // --- Personal preferences configuration --- | ||
| Hercules4Mx.userSettings = { | ||
| // Indicates if the Headphone/Master mix should automatically be set to master when none of the headphone cue buttons are activated. | ||
| // Indicates if the Headphone/Main mix should automatically be set to master when none of the headphone cue buttons are activated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // Indicates if the Headphone/Main mix should automatically be set to master when none of the headphone cue buttons are activated. | |
| // Indicates if the Headphone/Main mix should automatically be set to main when none of the headphone cue buttons are activated. |
| 'vu1': 0x39, | ||
| // Which source to use for this vumeter. [Disabled] for no source | ||
| 'source': '[Master]', | ||
| 'source': '[Mixer]', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here and above:
| 'source': '[Mixer]', | |
| 'source': '[Main]', |
double-check!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah okay, it's a string comparison in
Hercules4Mx.onVuMeterMainL
Hercules4Mx.onVuMeterMainR
so (should) work as is, though [Main] makes more sense
| c.add_control(pid, "balance", "[Mixer]", "fader", 15, 0xff); | ||
| c.add_control(pid, "volume", "[Mixer]", "fader", 16, 0xff); | ||
| c.add_control(pid, "crossfader", "[Mixer]", "fader", 17, 0xff); | ||
| c.add_control(pid, "headphone_mix", "[Mixer]", "fader", 18, 0xff); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| c.add_control(pid, "headphone_mix", "[Mixer]", "fader", 18, 0xff); | |
| c.add_control(pid, "headphone_mix", "[Mixer]", "fader", 18, 0xff); |
nit
| NK2.Controls[NK2.Knob[2]]["N"][NK2.MODcodes["0000"]]={"isset":true, "pressEval":'NK2.logKnobAdjust("[Mixer]", "headphone_gain", value, 0, 5);', "LEDstateType":"off"}; | ||
| NK2.Controls[NK2.Knob[3]]["N"][NK2.MODcodes["0000"]]={"isset":true, "pressEval":'NK2.knobAdjust("[Mixer]", "headphone_mix", value, -1, 1);', "LEDstateType":"off"}; | ||
| NK2.Controls[NK2.Knob[4]]["N"][NK2.MODcodes["0000"]]={"isset":true, "pressEval":'NK2.knobAdjust("[Mixer]", "balance", value, -1, 1);', "LEDstateType":"off"}; | ||
| NK2.Controls[NK2.Knob[5]]["N"][NK2.MODcodes["0000"]]={"isset":true, "pressEval":'NK2.logKnobAdjust("[Mixer]", "volume", value, 0, 5);', "LEDstateType":"off"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm?
| NK2.Controls[NK2.Sbutton[1]]["N"][NK2.MODcodes["0011"]]={"isset":true, "pressEval":false, "releaseEval":false, "LEDstateType":"hook", "LEDhookControl":'VuMeterL', "LEDhookFunction":'NK2.vuMeterL', "LEDhookGroup":"[Mixer]"}; | ||
| NK2.Controls[NK2.Mbutton[1]]["N"][NK2.MODcodes["0011"]]={"isset":true, "pressEval":'NK2.binControlPress("'+NK2.Deck[1]+'", "bpm_tap");', "releaseEval":false, "LEDstateType":"hook", "LEDhookControl":'VuMeterR', "LEDhookFunction":'NK2.vuMeterR', "LEDhookGroup":"[Mixer]"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm?
| engine.setValue("[Master]", "headphone_mix", 0); | ||
| } else { | ||
| // 100% master | ||
| // Check if 1 is all master or all cue | ||
| engine.setValue("[Master]", "headMix", 1); | ||
| engine.setValue("[Master]", "headphone_mix", 1); | ||
| } | ||
| } else { | ||
| // 0% master | ||
| // Check if 1 is all master or all cue | ||
| engine.setValue("[Master]", "headMix", -1); | ||
| engine.setValue("[Master]", "headphone_mix", -1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| engine.setValue("[Master]", "headphone_mix", 0); | |
| } else { | |
| // 100% master | |
| // Check if 1 is all master or all cue | |
| engine.setValue("[Master]", "headMix", 1); | |
| engine.setValue("[Master]", "headphone_mix", 1); | |
| } | |
| } else { | |
| // 0% master | |
| // Check if 1 is all master or all cue | |
| engine.setValue("[Master]", "headMix", -1); | |
| engine.setValue("[Master]", "headphone_mix", -1); | |
| engine.setValue("[Mixer]", "headphone_mix", 0); | |
| } else { | |
| // 100% master | |
| // Check if 1 is all master or all cue | |
| engine.setValue("[Mixer]", "headphone_mix", 1); | |
| } | |
| } else { | |
| // 0% master | |
| // Check if 1 is all master or all cue | |
| engine.setValue("[Mixer]", "headphone_mix", -1); |
|
Rebased in #15603 |
Part of #11931.
Based on #12021 and #12022.