From 90f9e341da34b58817db9cc6f684926ff8487588 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 21 Nov 2011 08:25:40 +0000 Subject: Improve documentation. --- lv2/ns/ext/presets/presets.ttl | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) (limited to 'lv2/ns') diff --git a/lv2/ns/ext/presets/presets.ttl b/lv2/ns/ext/presets/presets.ttl index 0fd3a3f..ddc383e 100644 --- a/lv2/ns/ext/presets/presets.ttl +++ b/lv2/ns/ext/presets/presets.ttl @@ -59,8 +59,43 @@ ] ] ] ; - rdfs:comment """ -Defines presets (e.g. named sets of control values) for LV2 plugins. + lv2:documentation """ +

This extension describes a format for presets (i.e. named sets of control +values) for LV2 plugins. The structure of pset:Preset is deliberately very +similar to the description of a plugin and can be thought of as a plugin +overlay. For example:

+ +
+@prefix eg: <http://example.org/> .
+
+eg:mypreset
+    a pset:Preset ;
+    rdfs:label "One louder" ;
+    pset:appliesTo eg:myplugin ;
+    lv2:port [
+        lv2:symbol "volume1" ;
+        pset:value 11
+    ] , [
+        lv2:symbol "volume2" ;
+        pset:value 11.0
+    ] .
+
+ +

Presets may be defined in any bundles, including the plugin's bundle, +separate third party preset bundles, or user-created preset bundles created by +hosts. The manifest.ttl of a bundle containing presets should list the +presets like so:

+ +
+eg:mypreset
+    a              pset:Preset ;
+    pset:appliesTo eg:myplugin ;
+    rdfs:seeAlso   <mypreset.ttl> .
+
+ +

This extension does not define a dynamic mechanism for changing plugin +presets for plugins that require such a facility, but may be extended to do +so.

""" . pset:Preset -- cgit v1.2.1