aboutsummaryrefslogtreecommitdiffstats
path: root/extensions/units.lv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-05 00:33:19 +0000
committerDavid Robillard <d@drobilla.net>2011-11-05 00:33:19 +0000
commit063f67b9922d5826d0dbf4ba40feff516f947fcd (patch)
tree912d75f809d41c2d759822de6fc137f78b5bf2a8 /extensions/units.lv2
parent0d472a64577876c99067d57ce7b31a569a9e4a85 (diff)
downloadlv2-063f67b9922d5826d0dbf4ba40feff516f947fcd.tar.xz
Syntax highlight example Turtle code.
Diffstat (limited to 'extensions/units.lv2')
-rw-r--r--extensions/units.lv2/units.ttl15
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 : &lt;http://lv2plug.in/ns/extensions/units#&gt; .
+<pre class="turtle-code">
+@prefix : &lt;http://lv2plug.in/ns/extensions/units#&gt; .
+@prefix eg: &lt;http://example.org/&gt; .
-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>