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
Capability schema improvements #267
Comments
A new release of QLC+ is coming up, and it seems that it will use a new fixture definition file format:
We should team up with Massimo Callegari to help making the new format as well-designed as possible. Edit by @fxedel: Massimo published a document describing the new features of the .qxf format. The section "Capability accuracy" is the equivalent to this issue. |
One possibility might be introducing capability types:
This is similar to @mcallegari's idea of capability presets in QLC+ (see mcallegari/qlcplus#1026) Possible entities and keywords
Possible capability typesrequired properties are italic
|
@FloEdelmann I'm wondering how to shorten the syntax for channels that currently have no capability at all. Would it make sense to allow instead of this: "Master Dimmer": {
"capabilities": [
{
"dmxRange": [0, 255],
"type": "Intensity",
"brightnessStart": "off",
"brightnessEnd": "bright"
}
]
}, also this: "Master Dimmer": {
"type": "Intensity",
"brightnessStart": "off",
"brightnessEnd": "bright"
}, as a shorthand for single-capability channels? Unfortunately, this will make the schema and the model much more complicated. But it's readable and needs just 3 instead of 8 lines of codes (only for the capability). Edit: Better allow this syntax, which is a good tradeoff between shortness, readability and JSON Schema simplicity: "Master Dimmer": {
"capability": {
"type": "Intensity",
"brightnessStart": "off",
"brightnessEnd": "bright"
}
}, |
Capabilities should be able to specify a whole lot more than they currently can.
1. "real" physical entity
What can be changed? (The unit is specified in brackets.)
[Hz]
[s]
[m]
[lm]
[°]
[°]
[°]
[K]
[%]
[?]
[?]
2. Stepped / continuous
Does it matter which DMX value (in the capability's DMX range) the channel is set to?
If it does, the capability could have a default value that could replace
menuClick
or the channel'sdefaultValue
.Example: Futurelight PRO Slim PAR-7 HCL, 12-channel mode
Regardless if channel 10 (Internal Programs) is set to DMX value 61, 99 or 120, the capability Internal Program 2 (DMX range
[61, 120]
) is activated.In contrast, the resulting color does change if channel 9 (Color Presets) is set to DMX value 11 (red) or 30 (yellow), although both correspond to the same capability (Red 100% / Green increasing / Blue 0%) with DMX range
[11, 30]
.3. DMX correspondence
What value of the physical entity (in the respective unit) does the DMX range correspond to? If a specific value is unknown, percentage values can be applied for all entities.
This makes the channel's
invert
property useless, since on could just map physical values 100%-0% to DMX values 0-255.4. Other
name
andmenuClick
can sometimes be inferred from the physical entity and its range (as a default)crossfade
property)The text was updated successfully, but these errors were encountered: