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:
@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:
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.
Index
Classes
Conversion
ClassLabel | Conversion |
---|---|
In domain of | factor |
to | |
In range of | conversion |
prefixConversion |
- Restriction on to
- owl:cardinality 1
A conversion MUST have exactly 1 units:to property.
Unit
ClassLabel | Unit |
---|---|
In domain of | conversion |
prefixConversion | |
render | |
symbol | |
In range of | to |
unit |
A unit for a control value.
Properties
conversion
PropertyLabel | conversion |
---|---|
Domain | Unit |
Range | Conversion |
Type | Object Property |
A conversion from this unit to another.
factor
PropertyLabel | conversion factor |
---|---|
Domain | Conversion |
Type | Datatype Property |
The factor to multiply the source value by in order to convert to the target unit.
prefixConversion
PropertyLabel | prefix conversion |
---|---|
Sub-property of | conversion |
Domain | Unit |
Range | Conversion |
Type | Object Property |
A conversion from this unit to another with the same base but a different prefix.
render
PropertyLabel | unit format string |
---|---|
Domain | Unit |
Range | xsd:string |
Type | Datatype Property |
A printf format string for rendering a value (e.g., "%f dB").
symbol
PropertyLabel | unit symbol |
---|---|
Domain | Unit |
Range | xsd:string |
Type | Datatype Property |
The abbreviated symbol for this unit (e.g., "dB").
to
PropertyLabel | conversion target |
---|---|
Domain | Conversion |
Range | Unit |
Type | Object Property |
The target unit this conversion converts to.
Instances
bpm
Instancecent
InstanceLabel | cents | ||||
---|---|---|---|---|---|
Type | Unit | ||||
conversion |
| ||||
render | %f ct | ||||
symbol | ct |
Cents (hundredths of semitones).
cm
InstanceLabel | centimetres | ||||
---|---|---|---|---|---|
Type | Unit | ||||
conversion |
| ||||
prefixConversion |
| ||||
prefixConversion |
| ||||
prefixConversion |
| ||||
render | %f cm | ||||
symbol | cm |
Centimetres (hundredths of metres).
coef
Instancedb
Instancedegree
Instancehz
Instanceinch
Instancekhz
Instancekm
InstanceLabel | kilometres | ||||
---|---|---|---|---|---|
Type | Unit | ||||
conversion |
| ||||
prefixConversion |
| ||||
prefixConversion |
| ||||
prefixConversion |
| ||||
render | %f km | ||||
symbol | km |
Kilometres (thousands of metres).
m
InstanceLabel | metres | ||||
---|---|---|---|---|---|
Type | Unit | ||||
conversion |
| ||||
prefixConversion |
| ||||
prefixConversion |
| ||||
prefixConversion |
| ||||
render | %f m | ||||
symbol | m |
Metres, the SI base unit for length.
mhz
Instancemile
Instancemin
Instancemm
InstanceLabel | millimetres | ||||
---|---|---|---|---|---|
Type | Unit | ||||
conversion |
| ||||
prefixConversion |
| ||||
prefixConversion |
| ||||
prefixConversion |
| ||||
render | %f mm | ||||
symbol | mm |
Millimetres (thousandths of metres).
ms
Instanceoct
InstanceLabel | octaves | ||||
---|---|---|---|---|---|
Type | Unit | ||||
conversion |
| ||||
render | %f octaves | ||||
symbol | oct |
Octaves, relative musical pitch where +1 octave doubles the frequency.
A conversion from one unit to another.