diff options
author | David Robillard <d@drobilla.net> | 2011-11-21 08:25:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-21 08:25:40 +0000 |
commit | 90f9e341da34b58817db9cc6f684926ff8487588 (patch) | |
tree | c026df08aee67187c499e3ae75a565cd7fdcd4ea /lv2/ns | |
parent | 8c9a0cbaf858f31b8e4fb8e37f89541dfb038a78 (diff) | |
download | lv2-90f9e341da34b58817db9cc6f684926ff8487588.tar.xz |
Improve documentation.
Diffstat (limited to 'lv2/ns')
-rw-r--r-- | lv2/ns/ext/presets/presets.ttl | 39 |
1 files changed, 37 insertions, 2 deletions
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 """ +<p>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 +<q>overlay</q>. For example:</p> + +<pre class="turtle-code"> +@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 + ] . +</pre> + +<p>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:</p> + +<pre class="turtle-code"> +eg:mypreset + a pset:Preset ; + pset:appliesTo eg:myplugin ; + rdfs:seeAlso <mypreset.ttl> . +</pre> + +<p>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.</p> """ . pset:Preset |