allow users to change mapping options from GUI without having to edit XML or JS

Bug #1470278 reported by Be
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Mixxx
Confirmed
Wishlist
Unassigned

Bug Description

It would be convenient if there was an API for scripts to expose variables to Mixxx's GUI that could be changed from the controller preferences so users would not have to edit mappings themselves. This could be used, for example, to adjust jog wheel sensitivity or which decks the controller manipulates.

See also: Bug 1451334

Be (be.ing)
description: updated
Changed in mixxx:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Daniel Schürmann (daschuer) wrote :

Can we rename the bug to something like:
"mapping script ControlObjects with GUI"

We may allow the mapping script to register its own ControlObjects. This is what we have done for Skins:
https://github.com/mixxxdj/mixxx/blob/master/res/skins/Shade/skin.xml#L65

The mapping script may also provide its own GUI to change it's ControlObjects.
This can be done like a "Skin" for the preference.

Before we are able to do this, we may just present them in a view like the CO view in the development menu.

Somehow related: Bug #1166016

tags: added: midi
tags: added: controllers
Revision history for this message
Be (be.ing) wrote :

If you think allowing scripts to register their own COs which would be exposed to the GUI is the best way to handle this, sure. If this system is flexible enough to allow mappings to specify their own GUI for changing these, this should be easy for script writers and done automatically for simple cases. For example, scripts should not need to specify their own GUI for boolean variables; checkboxes should be made by Mixxx automatically. Similarly, for numeric variables, a number input box with up/down arrows would be made automatically and scripts could specify a range of acceptable values.

Related to Bug 1166016, see the wiki page I started recently for brainstorming about a new mapping format:
http://mixxx.org/wiki/doku.php/new_control_mapping_format

Revision history for this message
Daniel Schürmann (daschuer) wrote :

We have two issues:
* Adding descriptions -> a CO currently does not have any self description
* Internationalization -> Skin specific texts can't be translated.

Maybe we can just statically add a set of COs for the common uses cases into the Mixxx engine.

Do you have use cases for this feature?

Revision history for this message
Be (be.ing) wrote :

Yes, I put a few options at the top of my Electrix Tweaker mapping for users to adjust as they like. See https://github.com/Be-ing/mixxx/blob/tweaker_mapping/res/controllers/Electrix-Tweaker-scripts.js

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/8135

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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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