This vocabulary defines a number of units for use in audio processing. For example, to say that a gain port's value is in decibels (units:db) @prefix units: <http://lv2plug.in/ns/extensions/units#> . @prefix eg: <http://example.org/> . eg:plugin lv2:port [ a lv2:ControlRateInputPort ; lv2:datatype lv2:Float ; lv2:index 0 ; lv2:symbol "gain" ; lv2:name "gain" ; units:unit units:db ] . Using the same form, plugins may also specify one-off units inline, to give better display hints to hosts: eg:plugin lv2:port [ a lv2:ControlRateInputPort ; lv2:datatype lv2:Float ; lv2:index 0 ; lv2:symbol "frob" ; lv2:name "frob level" ; units:unit [ a units:Unit ; units:name "frobnication" ; units:symbol "fr" ; units:render "%f f" ] ] . It is also possible to define conversions between various units, which makes it possible for hosts to automatically and generically convert from a given unit to a desired unit. The units defined in this extension include conversion definitions where it makes sense to do so.
A display name for the unit (e.g. decibels).
A printf format string for rendering a value (eg. "%f dB").
The abbreviated symbol for the unit (e.g. dB).
A conversion MUST have exactly 1 units:to property.
A conversion from this unit to the same unit but with a different SI prefix (e.g. Hz to kHz).
The target unit this conversion converts to.
The factor to multiple the source value by in order to convert to the target unit.