javascript mapping bug in [EffectRack1_EffectUnitN], super1

Bug #1607127 reported by Sébastien BLAISOT
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Invalid
Undecided
Unassigned

Bug Description

In Javascript, this doesn't work:

    engine.setValue("[EffectRack1_EffectUnit1]", "super1", 0.5);

whatever the value (>0), this has no effect.

But if first set super1 to zero like

    engine.setValue("[EffectRack1_EffectUnit1]", "super1", 0);
    engine.setValue("[EffectRack1_EffectUnit1]", "super1", 0.5);

This works.

You need to "reset" super1 to 0 before being able to actually set it.
Only the first time.

The same applies to all EffectUnit

Tested on mixxx 2.0.0 (64 bits) on windows 10 (64 bits).

summary: - javascript mapping bug in [EffectRack1_EffectUnitN]super1
+ javascript mapping bug in [EffectRack1_EffectUnitN], super1
Revision history for this message
Daniel Schürmann (daschuer) wrote :

It sounds like an softtakover issue.

If you have not not control the CO before, the first value is ignored.
This is required to detect the knob turning direction with the second value.
If the second value crosses the current value the control "Snaps in".

You can bypass this behavior by engine.setParameter().
But be aware that this leads probably to unwanted value jumps after using the GUI controls.

Does this explain your issue?

Revision history for this message
Sébastien BLAISOT (sblaisot) wrote :

a softtakover would explain that behaviour.

But that would mean it's the only CO in Mixxx on which softtakeover is enabled by default without the need to explicitely enable it ??? this has no logic.

since I controll this CO with a relative encoder (sending +1/-1), I'm not afraid of value jump ;)

I'm still looking for the documentation of engine.setParameter :(
http://www.mixxx.org/wiki/doku.php/midi_scripting

Should super1 be changed with setValue or setParameter ? what is the difference between the two in case of a CO like super1 which is already scaled at 0.00..1.0 ?
Softtakeover difference is not an argument because it's a bug: lp:1479008

Revision history for this message
Sébastien BLAISOT (sblaisot) wrote :

Forget about this one, I'm so stupid.

I activated SoftTakeover on this control in my script, forgot that, and didn't see it.

No bug, just a stupid user. PEBCAK :(

Changed in mixxx:
status: New → Invalid
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/8619

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.