units
type: Project
name: LV2 Units
shortdesc: Units for LV2 values.
created: 2007-02-06
license: isc
developer: me
maintainer: me
documentation: This is a vocabulary for units typically used for control values in audio processing. For example, to say that a gain control is in decibels: :::turtle @prefix units: <http://lv2plug.in/ns/extensions/units#> . @prefix eg: <http://example.org/> . eg:plugin lv2:port [ a lv2:ControlPort , lv2:InputPort ; 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: :::turtle eg:plugin lv2:port [ a lv2:ControlPort , lv2:InputPort ; lv2:index 0 ; lv2:symbol "frob" ; lv2:name "frob level" ; units:unit [ a units:Unit ; rdfs:label "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 convert between units where possible. The units defined in this extension include conversion definitions where it makes sense to do so.