@prefix dcs: . @prefix doap: . @prefix foaf: . @prefix lv2: . @prefix owl: . @prefix pset: . @prefix rdf: . @prefix rdfs: . @prefix xsd: . a lv2:Specification ; rdfs:seeAlso <../../meta/meta.ttl> ; doap:license ; doap:name "LV2 Presets" ; doap:shortdesc "Presets for LV2 plugins. " ; doap:created "2009-00-00" ; doap:developer ; doap:release [ 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 "Remove pset:appliesTo property, use lv2:appliesTo instead." ] ] ] , [ doap:revision "2.2" ; doap:created "2011-11-21" ; doap:file-release ; dcs:blame ; dcs:changeset [ dcs:item [ rdfs:label "Update packaging." ] , [ rdfs:label "Improve documentation." ] ] ] , [ doap:revision "2.0" ; doap:created "2010-10-04" ; doap:file-release ; dcs:blame ; dcs:changeset [ dcs:item [ rdfs:label "Initial release." ] ] ] ; lv2:documentation """

This extension describes a format for presets (i.e. named sets of control values and possibly other state) for LV2 plugins. The structure of a pset:Preset is deliberately identical to that of an lv2:Plugin, and can be thought of as a plugin template or overlay. For example:

@prefix eg: <http://example.org/> .

eg:mypreset
    a pset:Preset ;
    rdfs:label "One louder" ;
    lv2:appliesTo eg:myplugin ;
    lv2:port [
        lv2:symbol "volume1" ;
        pset:value 11.0
    ] , [
        lv2:symbol "volume2" ;
        pset:value 11.0
    ] .

Presets may be defined in any bundle, including the plugin's bundle, separate third party preset bundles, or user preset bundles saved by hosts. Since preset data tends to be large, it is recommended that plugins describe presets in a separate file(s) to avoid slowing down hosts. The manifest.ttl of a bundle containing presets should list the presets like so:

eg:mypreset
    a             pset:Preset ;
    lv2:appliesTo eg:myplugin ;
    rdfs:seeAlso  <mypreset.ttl> .
""" . pset:Preset a rdfs:Class ; rdfs:subClassOf lv2:PluginBase ; rdfs:label "LV2 Preset" ; rdfs:subClassOf [ a owl:Restriction ; owl:onProperty rdfs:label ; owl:someValuesFrom xsd:string ; 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 Plugin. Rather than attempting to define all valid predicates for a Preset (which is not possible since presets may need to specify values for things 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 lv2:appliesTo property. Each Port on a Preset MUST have at least a lv2:symbol property and a pset:value property.

""" . pset:value a rdf:Property ; rdfs:domain lv2:Port ; rdfs:label "Has value" ; rdfs:comment """ Specifies the value of a Port on some Preset. This property is used in a similar way to e.g. lv2:default. """ . pset:preset a rdf:Property ; rdfs:domain lv2:PluginBase ; rdfs:range pset:Preset ; rdfs:label "Preset" ; lv2:documentation """

Specifies the preset currently applied to a plugin instance. This property may be useful for saving state, or notifying a plugin instance at run-time about a preset change.

""" .