- Description
- Index
- Documentation
- Releases
- Files
- units.ttl
URI | http://lv2plug.in/ns/extensions/units |
---|---|
Version | 5.8 (Undated) |
Prefixes | lv2 owl rdf rdfs units xsd |
Discuss | devel@lists.lv2plug.in (subscribe) |
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 ; 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 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 conversion from one unit to another.
Restriction on units:to |
| ||
---|---|---|---|
In domain of | units:factor | ||
units:to | |||
In range of | units:conversion | ||
units:prefixConversion |
A unit for LV2 port data
In domain of | units:symbol |
---|---|
units:render | |
units:conversion | |
units:prefixConversion | |
In range of | units:unit |
units:to |
A conversion from this unit to another.
OWL Type | Object Property |
---|---|
Domain | units:Unit |
Range | units:Conversion |
The factor to multiple the source value by in order to convert to the target unit.
OWL Type | Datatype Property |
---|---|
Domain | units:Conversion |
A conversion from this unit to the same unit but with a different SI prefix (e.g. Hz to kHz).
OWL Type | Object Property |
---|---|
Sub-property of | units:conversion |
Domain | units:Unit |
Range | units:Conversion |
A printf format string for rendering a value (eg. "%f dB").
OWL Type | Datatype Property |
---|---|
Domain | units:Unit |
Range | xsd:string |
The abbreviated symbol for the unit (e.g. dB).
OWL Type | Datatype Property |
---|---|
Domain | units:Unit |
Range | xsd:string |
The target unit this conversion converts to.
OWL Type | Object Property |
---|---|
Domain | units:Conversion |
Range | units:Unit |
Relates a port to the unit of its data
OWL Type | Object Property |
---|---|
Domain | lv2:Port |
Range | units:Unit |
Type | units:Unit |
---|---|
units:symbol | bars |
units:render | %f bars |
Type | units:Unit |
---|---|
units:symbol | beats |
units:render | %f beats |
Type | units:Unit | ||||
---|---|---|---|---|---|
units:symbol | BPM | ||||
units:render | %f BPM | ||||
units:prefixConversion |
|
Type | units:Unit | ||||
---|---|---|---|---|---|
units:conversion |
| ||||
units:symbol | ct | ||||
units:render | %f ct |
Type | units:Unit | ||||
---|---|---|---|---|---|
units:prefixConversion |
| ||||
| |||||
| |||||
units:symbol | cm | ||||
units:render | %f cm | ||||
units:conversion |
|
Type | units:Unit | ||||
---|---|---|---|---|---|
units:conversion |
| ||||
units:symbol | |||||
units:render | * %f |
Type | units:Unit |
---|---|
units:symbol | dB |
units:render | %f dB |
Type | units:Unit |
---|---|
units:symbol | deg |
units:render | %f deg |
Type | units:Unit |
---|---|
units:symbol | frames |
units:render | %f frames |
Type | units:Unit | ||||
---|---|---|---|---|---|
units:symbol | Hz | ||||
units:render | %f Hz | ||||
units:prefixConversion |
| ||||
|
Type | units:Unit | ||||
---|---|---|---|---|---|
units:conversion |
| ||||
units:symbol | in | ||||
units:render | %f" |
Type | units:Unit | ||||
---|---|---|---|---|---|
units:symbol | kHz | ||||
units:render | %f kHz | ||||
units:prefixConversion |
| ||||
|
Type | units:Unit | ||||
---|---|---|---|---|---|
units:prefixConversion |
| ||||
| |||||
| |||||
units:symbol | km | ||||
units:render | %f km | ||||
units:conversion |
|
Type | units:Unit | ||||
---|---|---|---|---|---|
units:prefixConversion |
| ||||
| |||||
| |||||
units:symbol | m | ||||
units:render | %f m | ||||
units:conversion |
|
Type | units:Unit | ||||
---|---|---|---|---|---|
units:symbol | MHz | ||||
units:render | %f MHz | ||||
units:prefixConversion |
| ||||
|
Type | units:Unit |
---|---|
units:symbol | note |
units:render | MIDI note %d |
Type | units:Unit | ||||
---|---|---|---|---|---|
units:conversion |
| ||||
units:symbol | mi | ||||
units:render | %f mi |
Type | units:Unit | ||||
---|---|---|---|---|---|
units:conversion |
| ||||
units:symbol | min | ||||
units:render | %f mins |
Type | units:Unit | ||||
---|---|---|---|---|---|
units:prefixConversion |
| ||||
| |||||
| |||||
units:symbol | mm | ||||
units:render | %f mm | ||||
units:conversion |
|
Type | units:Unit | ||||
---|---|---|---|---|---|
units:symbol | ms | ||||
units:render | %f ms | ||||
units:prefixConversion |
|
Type | units:Unit | ||||
---|---|---|---|---|---|
units:conversion |
| ||||
units:symbol | oct | ||||
units:render | %f octaves |
Type | units:Unit | ||||
---|---|---|---|---|---|
units:conversion |
| ||||
units:symbol | % | ||||
units:render | %f%% |
Type | units:Unit | ||||
---|---|---|---|---|---|
units:prefixConversion |
| ||||
units:symbol | s | ||||
units:render | %f s | ||||
units:conversion |
|
Type | units:Unit | ||||
---|---|---|---|---|---|
units:conversion |
| ||||
units:symbol | semi | ||||
units:render | %f semi |