Crossfader settings not stored correctly

Bug #1640979 reported by ronso0
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Medium
Daniel Schürmann

Bug Description

Steps to reproduce:
1) reset Mixxx profile (rename/delete existing profile folder)
2) run Mixxx
3) Settings > Crossfader
4) tick "Slow fade/fast cut (additive)"
5) drag slider to the far right (fast cut)
6) close Mixxx

mixxx.cfg:
xFaderCurve 999.6

7) re-launch Mixxx
8) check crossfader settings: slider is set off one step from the far right

mixxx.cfg
xFaderCurve 90.5918

after next launch it's
xFaderCurve 47.2644 and so on

Failed to work around by adding this line to my controller script:
engine.setValue("[Mixer Profile]", "xFaderCurve", 999.6);
Putting this in init or any other manually triggered function makes no difference.

Running mixxx rev5957
Linux 3.14.23-rt20 #1 SMP PREEMPT RT x86_64

ronso0 (ronso0)
description: updated
Revision history for this message
ronso0 (ronso0) wrote :

Okay..after some digging I managed to get that script approach working.
Key was to configure BOTH xFaderCurve and xFaderCalibration.
Maybe someone finds this helpful.
Replace 'TerminalMix' with your controllers script prefix ('ReloopBeatpad' or whatever).

First function collects and prints xFader settings to terminal.
In Preferences > Crossfader configure xFader as you like, then trigger the function via Midi.
Second function configures xFader with your desired values. This also can be fired via button or from init function of controller script like this:
TerminalMix.xFaderSetup(1);

TerminalMix.xFaderCheck = function (channel, control, value, status, group) {
    if (value) {
        var xFMode = engine.getValue("[Mixer Profile]", "xFaderMode");
        var xFCali = engine.getValue("[Mixer Profile]", "xFaderCalibration");
        var xFCurve = engine.getValue("[Mixer Profile]", "xFaderCurve");
        print ("xFMode = "+xFMode+"");
        print ("xFCali = "+xFCali+"");
        print ("xFCurve = "+xFCurve+"");
    }
}

TerminalMix.xFaderSetup = function (channel, control, value, status, group) {
    if (value) {
        /* Values set xFader to
           - additive mode
           - fast cut */
        engine.setValue("[Mixer Profile]", "xFaderMode", 0);
        engine.setValue("[Mixer Profile]", "xFaderCalibration", 0.9993068158128623);
        engine.setValue("[Mixer Profile]", "xFaderCurve", 999.6);
    }
}

This works, but settings are not reflected in the Preferences GUI.

I'm curios: where are those settings stored anyway?
mixxx.cfg only stores xFaderCurve & xFaderMode, in db I find nothing related.

Revision history for this message
Daniel Schürmann (daschuer) wrote :
Changed in mixxx:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Daniel Schürmann (daschuer)
milestone: none → 2.1.0
Revision history for this message
Daniel Schürmann (daschuer) wrote :
Changed in mixxx:
status: Confirmed → In Progress
status: In Progress → Fix Committed
Revision history for this message
ronso0 (ronso0) wrote :

Thank you!

Revision history for this message
ronso0 (ronso0) wrote :

I'm afraid this isn't fixed, yet.
The unwanted change still happens, only that now it does change much slower.
Was restarting mixxx for about 20 times while building a skin, then I went to Preferences and could drag Slider a tiny bit to the right. The graphic also changed then.

Changed in mixxx:
status: Fix Committed → In Progress
Revision history for this message
ronso0 (ronso0) wrote :

At least for me, this appears to be fixed (currently r6320)
xFaderCurve is not changing anymore, in mixxx.cfg it's 999.6 for about 200 restarts now.

Though, in Preferences > Crossfader, with slider set to far right, the graphic still changes (a few pixels switch from black to white) when scrolling over slider. The slider itself doesn't move.

Be (be.ing)
Changed in mixxx:
status: In Progress → Fix Committed
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/8684

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.