From b7bd27b94932e10a85c0b781dae8a57402491b65 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 12 Apr 2012 23:21:33 +0000 Subject: Remove pset:appliesTo. Normalise syntax via serdi. --- lv2/lv2plug.in/ns/ext/presets/manifest.ttl | 2 +- lv2/lv2plug.in/ns/ext/presets/presets.ttl | 55 +++++++++++------------------- 2 files changed, 21 insertions(+), 36 deletions(-) (limited to 'lv2/lv2plug.in') diff --git a/lv2/lv2plug.in/ns/ext/presets/manifest.ttl b/lv2/lv2plug.in/ns/ext/presets/manifest.ttl index 3f486e7..4437516 100644 --- a/lv2/lv2plug.in/ns/ext/presets/manifest.ttl +++ b/lv2/lv2plug.in/ns/ext/presets/manifest.ttl @@ -4,6 +4,6 @@ a lv2:Specification ; lv2:minorVersion 2 ; - lv2:microVersion 3 ; + lv2:microVersion 5 ; rdfs:seeAlso . diff --git a/lv2/lv2plug.in/ns/ext/presets/presets.ttl b/lv2/lv2plug.in/ns/ext/presets/presets.ttl index 4b62450..24dafc9 100644 --- a/lv2/lv2plug.in/ns/ext/presets/presets.ttl +++ b/lv2/lv2plug.in/ns/ext/presets/presets.ttl @@ -17,14 +17,16 @@ doap:created "2009-00-00" ; doap:developer ; doap:release [ - doap:revision "2.3" ; - doap:created "2012-03-22" ; + doap:revision "2.5" ; + doap:created "2012-04-12" ; dcs:blame ; dcs:changeset [ dcs:item [ - rdfs:label "Add pset:preset property for describing the preset currently applied to a plugin instance." ; - ] ; - ] ; + rdfs:label "Add pset:preset property for describing the preset currently applied to a plugin instance." + ] , [ + rdfs:label "Remove pset:appliesTo property, use lv2:appliesTo instead." + ] + ] ] , [ doap:revision "2.2" ; doap:created "2011-11-21" ; @@ -32,11 +34,11 @@ dcs:blame ; dcs:changeset [ dcs:item [ - rdfs:label "Update packaging." ; + rdfs:label "Update packaging." ] , [ - rdfs:label "Improve documentation." ; - ] ; - ] ; + rdfs:label "Improve documentation." + ] + ] ] , [ doap:revision "2.0" ; doap:created "2010-10-04" ; @@ -44,9 +46,9 @@ dcs:blame ; dcs:changeset [ dcs:item [ - rdfs:label "Initial release." ; - ] ; - ] ; + rdfs:label "Initial release." + ] + ] ] ; lv2:documentation """

This extension describes a format for presets (i.e. named sets of control @@ -60,7 +62,7 @@ thought of as a plugin template or overlay. For example:

eg:mypreset a pset:Preset ; rdfs:label "One louder" ; - pset:appliesTo eg:myplugin ; + lv2:appliesTo eg:myplugin ; lv2:port [ lv2:symbol "volume1" ; pset:value 11.0 @@ -78,9 +80,9 @@ a bundle containing presets should list the presets like so:

 eg:mypreset
-    a              pset:Preset ;
-    pset:appliesTo eg:myplugin ;
-    rdfs:seeAlso   <mypreset.ttl> .
+    a             pset:Preset ;
+    lv2:appliesTo eg:myplugin ;
+    rdfs:seeAlso  <mypreset.ttl> .
 
""" . @@ -92,7 +94,7 @@ pset:Preset a owl:Restriction ; owl:onProperty rdfs:label ; owl:someValuesFrom xsd:string ; - rdfs:comment "A Preset MUST have at least one string rdfs:label." ; + rdfs:comment "A Preset MUST have at least one string rdfs:label." ] ; lv2:documentation """

A Preset for an LV2 Plugin. A preset can be considered an "overlay" on a @@ -102,27 +104,10 @@ defined in other extensions), the presets extension simply provides this class which can be augmented with any data in the exact same fashion as the definition of a Plugin.

-

A Preset SHOULD have at least one pset:appliesTo property. Each Port on a +

A Preset SHOULD have at least one lv2:appliesTo property. Each Port on a Preset MUST have at least a lv2:symbol property and a pset:value property.

""" . -pset:appliesTo - a rdf:Property ; - rdfs:domain pset:Preset ; - rdfs:range lv2:Plugin ; - rdfs:label "Applies to" ; - lv2:documentation """ -

Specifies the Plugin(s) a Preset may be applied to. When a Preset applies -to a Plugin, that Preset SHOULD have ports for every control port on that -plugin, each of which SHOULD have a pset:value property. If the Preset is -missing ports, or refers to ports which do not exist on the Plugin, then the -host SHOULD apply all the values in the preset that do match the Plugin.

- -

The Preset MAY have any other values that should be applied to the Plugin in -some way. The host SHOULD simply ignore any values on a Preset it does not -understand.

-""" . - pset:value a rdf:Property ; rdfs:domain lv2:Port ; -- cgit v1.2.1