- Description
- Index
- Documentation
- Releases
- Files
- lv2-units.doap.ttl
- units.h - Documentation
- units.ttl
| URI | http://lv2plug.in/ns/extensions/units |
|---|---|
| Version | 5.8 (2012-10-14) |
| Prefixes | dcs doap foaf 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:conversion | |
| units:prefixConversion | |
| units:render | |
| 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:render | %f beats |
| units:symbol | beats |
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:render | %f BPM | ||||
| units:prefixConversion |
| ||||
| units:symbol | BPM |
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:render | %f ct | ||||
| units:conversion |
| ||||
| units:symbol | ct |
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:prefixConversion |
| ||||
| |||||
| units:prefixConversion |
| ||||
| units:symbol | cm | ||||
| units:conversion |
| ||||
| units:render | %f cm |
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:symbol | |||||
| units:render | * %f | ||||
| units:conversion |
|
| Type | units:Unit |
|---|---|
| units:render | %f dB |
| units:symbol | dB |
| Type | units:Unit |
|---|---|
| units:render | %f deg |
| units:symbol | deg |
| Type | units:Unit |
|---|---|
| units:render | %f frames |
| units:symbol | frames |
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:prefixConversion |
| ||||
| units:render | %f Hz | ||||
| units:prefixConversion |
| ||||
| units:symbol | Hz |
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:render | %f" | ||||
| units:symbol | in | ||||
| units:conversion |
|
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:prefixConversion |
| ||||
| units:render | %f kHz | ||||
| units:prefixConversion |
| ||||
| units:symbol | kHz |
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:conversion |
| ||||
| units:prefixConversion |
| ||||
| |||||
| units:prefixConversion |
| ||||
| units:render | %f km | ||||
| units:symbol | km |
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:prefixConversion |
| ||||
| |||||
| |||||
| units:conversion |
| ||||
| units:render | %f m | ||||
| units:symbol | m |
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:prefixConversion |
| ||||
| units:symbol | MHz | ||||
| units:prefixConversion |
| ||||
| units:render | %f MHz |
| Type | units:Unit |
|---|---|
| units:render | MIDI note %d |
| units:symbol | note |
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:conversion |
| ||||
| units:render | %f mi | ||||
| units:symbol | mi |
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:symbol | min | ||||
| units:render | %f mins | ||||
| units:conversion |
|
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:render | %f mm | ||||
| units:prefixConversion |
| ||||
| |||||
| units:symbol | mm | ||||
| units:conversion |
| ||||
| units:prefixConversion |
|
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:render | %f ms | ||||
| units:prefixConversion |
| ||||
| units:symbol | ms |
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:render | %f octaves | ||||
| units:symbol | oct | ||||
| units:conversion |
|
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:symbol | % | ||||
| units:conversion |
| ||||
| units:render | %f%% |
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:prefixConversion |
| ||||
| units:symbol | s | ||||
| units:render | %f s | ||||
| units:conversion |
|
| Type | units:Unit | ||||
|---|---|---|---|---|---|
| units:conversion |
| ||||
| units:render | %f semi | ||||
| units:symbol | semi |