-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Show units of effect parameter knobs #11033
Comments
@daschuer Could you give some hints re "adopt the LV2 system"? |
When you follow the link you find a list of units including their rendering. We currently maintain a different incomplete list in UnitsHint enum. |
Yes, understood. My question was rather whether you propose to a) adopt the LV2 map (replacing existing Mixxx enum, change all built-in effects' manifests) or b) somehow map LV2 units to the extended Mixxx list. Second question that arises: how to translate the enum to dispay strings? mixxx/src/effects/backends/effectmanifestparameter.h Lines 61 to 66 in f96d168
Edit LV2 units are all lowercase, enum style is PascalCase, soo: |
Though, a QMap looks nicer, but requires a translator: QMap<UnitsHint, QString> unitStringsMap {
{UnitsHint::Unknown, ""},
{UnitsHint::Beat, "Beat"},
{UnitsHint::Beats, "Beats"},
{UnitsHint::Bar, "Bar"},
{UnitsHint::BPM, "BPM"},
{UnitsHint::Cent, "Cent"},
{UnitsHint::Hz, "Hz"}
};
const QString UnitsHintToString(const UnitsHint unitHint) {
return unitStringsMap.find(unitHint);
} |
I'll do a quick test with:
|
Feature Description
This may be an addition to #9022
Currently only the value is shown. It would be very useful to see the unit is addition like
"-6 dB"
or
"0.2 s"
We already have an unused stub for this:
mixxx/src/effects/backends/effectmanifestparameter.h
Line 37 in b0f19c3
But I think we should adopt the LV2 system:
http://lv2plug.in/ns/extensions/units#unit
The text was updated successfully, but these errors were encountered: