diff options
Diffstat (limited to 'lv2/presets')
-rw-r--r-- | lv2/presets/manifest.ttl | 9 | ||||
-rw-r--r-- | lv2/presets/meson.build | 40 | ||||
-rw-r--r-- | lv2/presets/presets.h | 48 | ||||
-rw-r--r-- | lv2/presets/presets.meta.ttl | 132 | ||||
-rw-r--r-- | lv2/presets/presets.ttl | 61 |
5 files changed, 0 insertions, 290 deletions
diff --git a/lv2/presets/manifest.ttl b/lv2/presets/manifest.ttl deleted file mode 100644 index b9cacf5..0000000 --- a/lv2/presets/manifest.ttl +++ /dev/null @@ -1,9 +0,0 @@ -@prefix lv2: <http://lv2plug.in/ns/lv2core#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . - -<http://lv2plug.in/ns/ext/presets> - a lv2:Specification ; - lv2:minorVersion 2 ; - lv2:microVersion 8 ; - rdfs:seeAlso <presets.ttl> . - diff --git a/lv2/presets/meson.build b/lv2/presets/meson.build deleted file mode 100644 index a3f2feb..0000000 --- a/lv2/presets/meson.build +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 2022 David Robillard <d@drobilla.net> -# SPDX-License-Identifier: CC0-1.0 OR ISC - -name = 'presets' -path = 'ns' / 'ext' / 'presets' - -presets_data = files( - 'presets.meta.ttl', - 'presets.ttl', - 'manifest.ttl', -) - -headers = files( - 'presets.h', -) - -# Install specification bundle -install_data(presets_data, install_dir: lv2dir / name + '.lv2') -install_headers(headers, subdir: 'lv2' / name) -if get_option('old_headers') - install_headers(headers, subdir: 'lv2' / 'lv2plug.in' / path) -endif - -# Build documentation -if build_docs - lv2_presets_docs = custom_target( - name + '.html', - command: lv2specgen_command_prefix + [ - '--docdir=../../html', - '--style-uri=../../aux/style.css', - '@INPUT@', - '@OUTPUT@', - ], - depends: doc_deps, - input: files('presets.ttl'), - install: true, - install_dir: lv2_docdir / 'ns' / 'ext', - output: name + '.html', - ) -endif diff --git a/lv2/presets/presets.h b/lv2/presets/presets.h deleted file mode 100644 index 716ab32..0000000 --- a/lv2/presets/presets.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - Copyright 2012-2016 David Robillard <d@drobilla.net> - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies. - - THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -*/ - -#ifndef LV2_PRESETS_H -#define LV2_PRESETS_H - -/** - @defgroup presets Presets - @ingroup lv2 - - Presets for plugins. - - See <http://lv2plug.in/ns/ext/presets> for details. - - @{ -*/ - -// clang-format off - -#define LV2_PRESETS_URI "http://lv2plug.in/ns/ext/presets" ///< http://lv2plug.in/ns/ext/presets -#define LV2_PRESETS_PREFIX LV2_PRESETS_URI "#" ///< http://lv2plug.in/ns/ext/presets# - -#define LV2_PRESETS__Bank LV2_PRESETS_PREFIX "Bank" ///< http://lv2plug.in/ns/ext/presets#Bank -#define LV2_PRESETS__Preset LV2_PRESETS_PREFIX "Preset" ///< http://lv2plug.in/ns/ext/presets#Preset -#define LV2_PRESETS__bank LV2_PRESETS_PREFIX "bank" ///< http://lv2plug.in/ns/ext/presets#bank -#define LV2_PRESETS__preset LV2_PRESETS_PREFIX "preset" ///< http://lv2plug.in/ns/ext/presets#preset -#define LV2_PRESETS__value LV2_PRESETS_PREFIX "value" ///< http://lv2plug.in/ns/ext/presets#value - -// clang-format on - -/** - @} -*/ - -#endif /* LV2_PRESETS_H */ diff --git a/lv2/presets/presets.meta.ttl b/lv2/presets/presets.meta.ttl deleted file mode 100644 index 8ff25c1..0000000 --- a/lv2/presets/presets.meta.ttl +++ /dev/null @@ -1,132 +0,0 @@ -@prefix dcs: <http://ontologi.es/doap-changeset#> . -@prefix doap: <http://usefulinc.com/ns/doap#> . -@prefix foaf: <http://xmlns.com/foaf/0.1/> . -@prefix lv2: <http://lv2plug.in/ns/lv2core#> . -@prefix pset: <http://lv2plug.in/ns/ext/presets#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . - -<http://lv2plug.in/ns/ext/presets> - a doap:Project ; - doap:license <http://opensource.org/licenses/isc> ; - doap:name "LV2 Presets" ; - doap:shortdesc "Presets for LV2 plugins." ; - doap:created "2009-00-00" ; - doap:developer <http://drobilla.net/drobilla#me> ; - doap:release [ - doap:revision "2.8" ; - doap:created "2012-10-14" ; - doap:file-release <http://lv2plug.in/spec/lv2-1.2.0.tar.bz2> ; - dcs:blame <http://drobilla.net/drobilla#me> ; - dcs:changeset [ - dcs:item [ - rdfs:label "Use consistent label style." - ] , [ - rdfs:label "Add preset banks." - ] - ] - ] , [ - doap:revision "2.6" ; - doap:created "2012-04-17" ; - doap:file-release <http://lv2plug.in/spec/lv2-1.0.0.tar.bz2> ; - dcs:blame <http://drobilla.net/drobilla#me> ; - 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." - ] , [ - rdfs:label "Merge with unified LV2 package." - ] - ] - ] , [ - doap:revision "2.2" ; - doap:created "2011-11-21" ; - doap:file-release <http://lv2plug.in/spec/lv2-presets-2.2.tar.bz2> ; - dcs:blame <http://drobilla.net/drobilla#me> ; - dcs:changeset [ - dcs:item [ - rdfs:label "Update packaging." - ] , [ - rdfs:label "Improve documentation." - ] - ] - ] , [ - doap:revision "2.0" ; - doap:created "2010-10-04" ; - doap:file-release <http://lv2plug.in/spec/lv2-presets-2.0.tar.gz> ; - dcs:blame <http://drobilla.net/drobilla#me> ; - dcs:changeset [ - dcs:item [ - rdfs:label "Initial release." - ] - ] - ] ; - lv2:documentation """ - -This is a vocabulary for LV2 plugin presets, that is, named sets of control -values and possibly other state. 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. - -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 them like so: - - :::turtle - eg:mypreset - a pset:Preset ; - lv2:appliesTo eg:myplugin ; - rdfs:seeAlso <mypreset.ttl> . - -"""^^lv2:Markdown . - -pset:Preset - lv2:documentation """ - -The structure of a Preset deliberately mirrors that of a plugin, so existing -predicates can be used to describe any data associated with the preset. For -example: - - :::turtle - @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 - ] . - -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. - -Hosts SHOULD save user presets to a bundle in the user-local LV2 directory (for -example `~/.lv2`) with a name like `<Plugin_Name>_<Preset_Name>.preset.lv2` -(for example `LV2_Amp_At_Eleven.preset.lv2`), where names are transformed to be -valid LV2 symbols for maximum compatibility. - -"""^^lv2:Markdown . - -pset:value - lv2:documentation """ - -This property is used in a similar way to lv2:default. - -"""^^lv2:Markdown . - -pset: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. - -"""^^lv2:Markdown . - diff --git a/lv2/presets/presets.ttl b/lv2/presets/presets.ttl deleted file mode 100644 index 60189ea..0000000 --- a/lv2/presets/presets.ttl +++ /dev/null @@ -1,61 +0,0 @@ -@prefix lv2: <http://lv2plug.in/ns/lv2core#> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix pset: <http://lv2plug.in/ns/ext/presets#> . -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . - -<http://lv2plug.in/ns/ext/presets> - a owl:Ontology ; - rdfs:label "LV2 Presets" ; - rdfs:comment "Presets for LV2 plugins." ; - rdfs:seeAlso <presets.meta.ttl> ; - owl:imports <http://lv2plug.in/ns/lv2core> . - -pset:Bank - a rdfs:Class ; - rdfs:label "Bank" ; - rdfs:subClassOf [ - a owl:Restriction ; - owl:onProperty rdfs:label ; - owl:minCardinality 1 ; - rdfs:comment "A Bank MUST have at least one string rdfs:label." - ] ; - rdfs:comment "A bank of presets." . - -pset:Preset - a rdfs:Class ; - rdfs:subClassOf lv2:PluginBase ; - rdfs:label "Preset" ; - rdfs:comment "A preset for an LV2 plugin." ; - rdfs:subClassOf [ - a owl:Restriction ; - owl:onProperty rdfs:label ; - owl:minCardinality 1 ; - rdfs:comment "A Preset MUST have at least one string rdfs:label." - ] . - -pset:bank - a rdf:Property , - owl:ObjectProperty ; - rdfs:domain pset:Preset ; - rdfs:range pset:Bank ; - rdfs:label "bank" ; - rdfs:comment "The bank this preset belongs to." . - -pset:value - a rdf:Property , - owl:DatatypeProperty , - owl:FunctionalProperty ; - rdfs:domain lv2:PortBase ; - rdfs:label "value" ; - rdfs:comment "The value of a port in a preset." . - -pset:preset - a rdf:Property , - owl:ObjectProperty ; - rdfs:domain lv2:PluginBase ; - rdfs:range pset:Preset ; - rdfs:label "preset" ; - rdfs:comment "The preset currently applied to a plugin instance." . - |