Scripts should have access to a ControlObject like ScriptValue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Currently scripts only access control objects via a line like:
engine.
engine.
Which inevitably leads to code like:
var add = 10;
var curVal = engine.
engine.
This is not ideal, at all. Especially considering ControlObjects support add/sub so you dont have to get the value first.
We should expose ControlObject functionality as objects in QtScript.
This involves writing a wrapper around ControlObjectThread that supports the various operations we would like to support in script. We may even be able to provide the ControlObjectThread itself, though we'll need to review how safe that is.
This will lead to more readable script code. Also it will make scripts slightly faster since they don't have to do a lookup for the COT every time you get or set the value.
Changed in mixxx: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
tags: | added: midi |
Changed in mixxx: | |
milestone: | none → 2.4.0 |
Changed in mixxx: | |
milestone: | 2.4.0 → none |
Mixxx now uses GitHub for bug tracking. This bug has been migrated to: /github. com/mixxxdj/ mixxx/issues/ 5190
https:/