diff options
author | David Robillard <d@drobilla.net> | 2011-11-05 00:33:19 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-05 00:33:19 +0000 |
commit | 063f67b9922d5826d0dbf4ba40feff516f947fcd (patch) | |
tree | 912d75f809d41c2d759822de6fc137f78b5bf2a8 | |
parent | 0d472a64577876c99067d57ce7b31a569a9e4a85 (diff) | |
download | lv2-063f67b9922d5826d0dbf4ba40feff516f947fcd.tar.xz |
Syntax highlight example Turtle code.
-rw-r--r-- | extensions/units.lv2/units.ttl | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/extensions/units.lv2/units.ttl b/extensions/units.lv2/units.ttl index 192a606..ddae683 100644 --- a/extensions/units.lv2/units.ttl +++ b/extensions/units.lv2/units.ttl @@ -48,23 +48,24 @@ <p>This extension defines a number of units for use in audio processing.</p> <p>For example, to say that a gain port's value is in decibels (units:db)</p> -<pre> -@prefix : <http://lv2plug.in/ns/extensions/units#> . +<pre class="turtle-code"> +@prefix : <http://lv2plug.in/ns/extensions/units#> . +@prefix eg: <http://example.org/> . -lv2:port [ +eg:plugin lv2:port [ a lv2:ControlRateInputPort ; lv2:datatype lv2:Float ; lv2:index 0 ; lv2:symbol "gain" ; lv2:name "gain" ; :unit :db -] +] . </pre> <p>Using the same form, plugins may also specify one-off units inline, to give better display hints to hosts:</p> -<pre> -lv2:port [ +<pre class="turtle-code"> +eg:plugin lv2:port [ a lv2:ControlRateInputPort ; lv2:datatype lv2:Float ; lv2:index 0 ; @@ -76,7 +77,7 @@ lv2:port [ units:symbol "fr" ; units:render "%f f" ] -] +] . </pre> <p>Units are defined by a number of properties:</p> |