From 063f67b9922d5826d0dbf4ba40feff516f947fcd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 5 Nov 2011 00:33:19 +0000 Subject: Syntax highlight example Turtle code. --- extensions/units.lv2/units.ttl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'extensions') 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 @@

This extension 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 : <http://lv2plug.in/ns/extensions/units#> .
+
+@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
-]
+] .
 

Using the same form, plugins may also specify one-off units inline, to give better display hints to hosts:

-
-lv2:port [
+
+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"
     ]
-]
+] .
 

Units are defined by a number of properties:

-- cgit v1.2.1