aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/core
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-22 20:38:01 +0200
committerDavid Robillard <d@drobilla.net>2018-09-22 20:38:58 +0200
commit4db67120efca2d4c200d2e1ba5cf3d7b97cab97e (patch)
tree793630dd2a17b78d805dc4bc5cd50fbdd0ace3bd /lv2/core
parent160ecb9601c9687a1093e124e936dcbd78aef43c (diff)
downloadlv2-4db67120efca2d4c200d2e1ba5cf3d7b97cab97e.tar.xz
Install standard headers to simpler include paths
Diffstat (limited to 'lv2/core')
-rw-r--r--lv2/core/lv2.h474
-rw-r--r--lv2/core/lv2_util.h104
-rw-r--r--lv2/core/lv2core.doap.ttl201
-rw-r--r--lv2/core/lv2core.ttl1053
-rw-r--r--lv2/core/manifest.ttl14
-rw-r--r--lv2/core/meta.ttl213
6 files changed, 2059 insertions, 0 deletions
diff --git a/lv2/core/lv2.h b/lv2/core/lv2.h
new file mode 100644
index 0000000..3bfdd02
--- /dev/null
+++ b/lv2/core/lv2.h
@@ -0,0 +1,474 @@
+/*
+ LV2 - An audio plugin interface specification.
+ Copyright 2006-2012 Steve Harris, David Robillard.
+
+ Based on LADSPA, Copyright 2000-2002 Richard W.E. Furse,
+ Paul Barton-Davis, Stefan Westerfeld.
+
+ 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.
+*/
+
+/**
+ @defgroup core LV2 Core
+
+ Core LV2 specification, see <http://lv2plug.in/ns/lv2core> for details.
+
+ @{
+*/
+
+#ifndef LV2_H_INCLUDED
+#define LV2_H_INCLUDED
+
+#include <stdint.h>
+
+#define LV2_CORE_URI "http://lv2plug.in/ns/lv2core" ///< http://lv2plug.in/ns/lv2core
+#define LV2_CORE_PREFIX LV2_CORE_URI "#" ///< http://lv2plug.in/ns/lv2core#
+
+#define LV2_CORE__AllpassPlugin LV2_CORE_PREFIX "AllpassPlugin" ///< http://lv2plug.in/ns/lv2core#AllpassPlugin
+#define LV2_CORE__AmplifierPlugin LV2_CORE_PREFIX "AmplifierPlugin" ///< http://lv2plug.in/ns/lv2core#AmplifierPlugin
+#define LV2_CORE__AnalyserPlugin LV2_CORE_PREFIX "AnalyserPlugin" ///< http://lv2plug.in/ns/lv2core#AnalyserPlugin
+#define LV2_CORE__AudioPort LV2_CORE_PREFIX "AudioPort" ///< http://lv2plug.in/ns/lv2core#AudioPort
+#define LV2_CORE__BandpassPlugin LV2_CORE_PREFIX "BandpassPlugin" ///< http://lv2plug.in/ns/lv2core#BandpassPlugin
+#define LV2_CORE__CVPort LV2_CORE_PREFIX "CVPort" ///< http://lv2plug.in/ns/lv2core#CVPort
+#define LV2_CORE__ChorusPlugin LV2_CORE_PREFIX "ChorusPlugin" ///< http://lv2plug.in/ns/lv2core#ChorusPlugin
+#define LV2_CORE__CombPlugin LV2_CORE_PREFIX "CombPlugin" ///< http://lv2plug.in/ns/lv2core#CombPlugin
+#define LV2_CORE__CompressorPlugin LV2_CORE_PREFIX "CompressorPlugin" ///< http://lv2plug.in/ns/lv2core#CompressorPlugin
+#define LV2_CORE__ConstantPlugin LV2_CORE_PREFIX "ConstantPlugin" ///< http://lv2plug.in/ns/lv2core#ConstantPlugin
+#define LV2_CORE__ControlPort LV2_CORE_PREFIX "ControlPort" ///< http://lv2plug.in/ns/lv2core#ControlPort
+#define LV2_CORE__ConverterPlugin LV2_CORE_PREFIX "ConverterPlugin" ///< http://lv2plug.in/ns/lv2core#ConverterPlugin
+#define LV2_CORE__DelayPlugin LV2_CORE_PREFIX "DelayPlugin" ///< http://lv2plug.in/ns/lv2core#DelayPlugin
+#define LV2_CORE__DistortionPlugin LV2_CORE_PREFIX "DistortionPlugin" ///< http://lv2plug.in/ns/lv2core#DistortionPlugin
+#define LV2_CORE__DynamicsPlugin LV2_CORE_PREFIX "DynamicsPlugin" ///< http://lv2plug.in/ns/lv2core#DynamicsPlugin
+#define LV2_CORE__EQPlugin LV2_CORE_PREFIX "EQPlugin" ///< http://lv2plug.in/ns/lv2core#EQPlugin
+#define LV2_CORE__EnvelopePlugin LV2_CORE_PREFIX "EnvelopePlugin" ///< http://lv2plug.in/ns/lv2core#EnvelopePlugin
+#define LV2_CORE__ExpanderPlugin LV2_CORE_PREFIX "ExpanderPlugin" ///< http://lv2plug.in/ns/lv2core#ExpanderPlugin
+#define LV2_CORE__ExtensionData LV2_CORE_PREFIX "ExtensionData" ///< http://lv2plug.in/ns/lv2core#ExtensionData
+#define LV2_CORE__Feature LV2_CORE_PREFIX "Feature" ///< http://lv2plug.in/ns/lv2core#Feature
+#define LV2_CORE__FilterPlugin LV2_CORE_PREFIX "FilterPlugin" ///< http://lv2plug.in/ns/lv2core#FilterPlugin
+#define LV2_CORE__FlangerPlugin LV2_CORE_PREFIX "FlangerPlugin" ///< http://lv2plug.in/ns/lv2core#FlangerPlugin
+#define LV2_CORE__FunctionPlugin LV2_CORE_PREFIX "FunctionPlugin" ///< http://lv2plug.in/ns/lv2core#FunctionPlugin
+#define LV2_CORE__GatePlugin LV2_CORE_PREFIX "GatePlugin" ///< http://lv2plug.in/ns/lv2core#GatePlugin
+#define LV2_CORE__GeneratorPlugin LV2_CORE_PREFIX "GeneratorPlugin" ///< http://lv2plug.in/ns/lv2core#GeneratorPlugin
+#define LV2_CORE__HighpassPlugin LV2_CORE_PREFIX "HighpassPlugin" ///< http://lv2plug.in/ns/lv2core#HighpassPlugin
+#define LV2_CORE__InputPort LV2_CORE_PREFIX "InputPort" ///< http://lv2plug.in/ns/lv2core#InputPort
+#define LV2_CORE__InstrumentPlugin LV2_CORE_PREFIX "InstrumentPlugin" ///< http://lv2plug.in/ns/lv2core#InstrumentPlugin
+#define LV2_CORE__LimiterPlugin LV2_CORE_PREFIX "LimiterPlugin" ///< http://lv2plug.in/ns/lv2core#LimiterPlugin
+#define LV2_CORE__LowpassPlugin LV2_CORE_PREFIX "LowpassPlugin" ///< http://lv2plug.in/ns/lv2core#LowpassPlugin
+#define LV2_CORE__MixerPlugin LV2_CORE_PREFIX "MixerPlugin" ///< http://lv2plug.in/ns/lv2core#MixerPlugin
+#define LV2_CORE__ModulatorPlugin LV2_CORE_PREFIX "ModulatorPlugin" ///< http://lv2plug.in/ns/lv2core#ModulatorPlugin
+#define LV2_CORE__MultiEQPlugin LV2_CORE_PREFIX "MultiEQPlugin" ///< http://lv2plug.in/ns/lv2core#MultiEQPlugin
+#define LV2_CORE__OscillatorPlugin LV2_CORE_PREFIX "OscillatorPlugin" ///< http://lv2plug.in/ns/lv2core#OscillatorPlugin
+#define LV2_CORE__OutputPort LV2_CORE_PREFIX "OutputPort" ///< http://lv2plug.in/ns/lv2core#OutputPort
+#define LV2_CORE__ParaEQPlugin LV2_CORE_PREFIX "ParaEQPlugin" ///< http://lv2plug.in/ns/lv2core#ParaEQPlugin
+#define LV2_CORE__PhaserPlugin LV2_CORE_PREFIX "PhaserPlugin" ///< http://lv2plug.in/ns/lv2core#PhaserPlugin
+#define LV2_CORE__PitchPlugin LV2_CORE_PREFIX "PitchPlugin" ///< http://lv2plug.in/ns/lv2core#PitchPlugin
+#define LV2_CORE__Plugin LV2_CORE_PREFIX "Plugin" ///< http://lv2plug.in/ns/lv2core#Plugin
+#define LV2_CORE__PluginBase LV2_CORE_PREFIX "PluginBase" ///< http://lv2plug.in/ns/lv2core#PluginBase
+#define LV2_CORE__Point LV2_CORE_PREFIX "Point" ///< http://lv2plug.in/ns/lv2core#Point
+#define LV2_CORE__Port LV2_CORE_PREFIX "Port" ///< http://lv2plug.in/ns/lv2core#Port
+#define LV2_CORE__PortProperty LV2_CORE_PREFIX "PortProperty" ///< http://lv2plug.in/ns/lv2core#PortProperty
+#define LV2_CORE__Resource LV2_CORE_PREFIX "Resource" ///< http://lv2plug.in/ns/lv2core#Resource
+#define LV2_CORE__ReverbPlugin LV2_CORE_PREFIX "ReverbPlugin" ///< http://lv2plug.in/ns/lv2core#ReverbPlugin
+#define LV2_CORE__ScalePoint LV2_CORE_PREFIX "ScalePoint" ///< http://lv2plug.in/ns/lv2core#ScalePoint
+#define LV2_CORE__SimulatorPlugin LV2_CORE_PREFIX "SimulatorPlugin" ///< http://lv2plug.in/ns/lv2core#SimulatorPlugin
+#define LV2_CORE__SpatialPlugin LV2_CORE_PREFIX "SpatialPlugin" ///< http://lv2plug.in/ns/lv2core#SpatialPlugin
+#define LV2_CORE__Specification LV2_CORE_PREFIX "Specification" ///< http://lv2plug.in/ns/lv2core#Specification
+#define LV2_CORE__SpectralPlugin LV2_CORE_PREFIX "SpectralPlugin" ///< http://lv2plug.in/ns/lv2core#SpectralPlugin
+#define LV2_CORE__UtilityPlugin LV2_CORE_PREFIX "UtilityPlugin" ///< http://lv2plug.in/ns/lv2core#UtilityPlugin
+#define LV2_CORE__WaveshaperPlugin LV2_CORE_PREFIX "WaveshaperPlugin" ///< http://lv2plug.in/ns/lv2core#WaveshaperPlugin
+#define LV2_CORE__appliesTo LV2_CORE_PREFIX "appliesTo" ///< http://lv2plug.in/ns/lv2core#appliesTo
+#define LV2_CORE__binary LV2_CORE_PREFIX "binary" ///< http://lv2plug.in/ns/lv2core#binary
+#define LV2_CORE__connectionOptional LV2_CORE_PREFIX "connectionOptional" ///< http://lv2plug.in/ns/lv2core#connectionOptional
+#define LV2_CORE__control LV2_CORE_PREFIX "control" ///< http://lv2plug.in/ns/lv2core#control
+#define LV2_CORE__default LV2_CORE_PREFIX "default" ///< http://lv2plug.in/ns/lv2core#default
+#define LV2_CORE__designation LV2_CORE_PREFIX "designation" ///< http://lv2plug.in/ns/lv2core#designation
+#define LV2_CORE__documentation LV2_CORE_PREFIX "documentation" ///< http://lv2plug.in/ns/lv2core#documentation
+#define LV2_CORE__enumeration LV2_CORE_PREFIX "enumeration" ///< http://lv2plug.in/ns/lv2core#enumeration
+#define LV2_CORE__extensionData LV2_CORE_PREFIX "extensionData" ///< http://lv2plug.in/ns/lv2core#extensionData
+#define LV2_CORE__freeWheeling LV2_CORE_PREFIX "freeWheeling" ///< http://lv2plug.in/ns/lv2core#freeWheeling
+#define LV2_CORE__hardRTCapable LV2_CORE_PREFIX "hardRTCapable" ///< http://lv2plug.in/ns/lv2core#hardRTCapable
+#define LV2_CORE__inPlaceBroken LV2_CORE_PREFIX "inPlaceBroken" ///< http://lv2plug.in/ns/lv2core#inPlaceBroken
+#define LV2_CORE__index LV2_CORE_PREFIX "index" ///< http://lv2plug.in/ns/lv2core#index
+#define LV2_CORE__integer LV2_CORE_PREFIX "integer" ///< http://lv2plug.in/ns/lv2core#integer
+#define LV2_CORE__isLive LV2_CORE_PREFIX "isLive" ///< http://lv2plug.in/ns/lv2core#isLive
+#define LV2_CORE__latency LV2_CORE_PREFIX "latency" ///< http://lv2plug.in/ns/lv2core#latency
+#define LV2_CORE__maximum LV2_CORE_PREFIX "maximum" ///< http://lv2plug.in/ns/lv2core#maximum
+#define LV2_CORE__microVersion LV2_CORE_PREFIX "microVersion" ///< http://lv2plug.in/ns/lv2core#microVersion
+#define LV2_CORE__minimum LV2_CORE_PREFIX "minimum" ///< http://lv2plug.in/ns/lv2core#minimum
+#define LV2_CORE__minorVersion LV2_CORE_PREFIX "minorVersion" ///< http://lv2plug.in/ns/lv2core#minorVersion
+#define LV2_CORE__name LV2_CORE_PREFIX "name" ///< http://lv2plug.in/ns/lv2core#name
+#define LV2_CORE__optionalFeature LV2_CORE_PREFIX "optionalFeature" ///< http://lv2plug.in/ns/lv2core#optionalFeature
+#define LV2_CORE__port LV2_CORE_PREFIX "port" ///< http://lv2plug.in/ns/lv2core#port
+#define LV2_CORE__portProperty LV2_CORE_PREFIX "portProperty" ///< http://lv2plug.in/ns/lv2core#portProperty
+#define LV2_CORE__project LV2_CORE_PREFIX "project" ///< http://lv2plug.in/ns/lv2core#project
+#define LV2_CORE__prototype LV2_CORE_PREFIX "prototype" ///< http://lv2plug.in/ns/lv2core#prototype
+#define LV2_CORE__reportsLatency LV2_CORE_PREFIX "reportsLatency" ///< http://lv2plug.in/ns/lv2core#reportsLatency
+#define LV2_CORE__requiredFeature LV2_CORE_PREFIX "requiredFeature" ///< http://lv2plug.in/ns/lv2core#requiredFeature
+#define LV2_CORE__sampleRate LV2_CORE_PREFIX "sampleRate" ///< http://lv2plug.in/ns/lv2core#sampleRate
+#define LV2_CORE__scalePoint LV2_CORE_PREFIX "scalePoint" ///< http://lv2plug.in/ns/lv2core#scalePoint
+#define LV2_CORE__symbol LV2_CORE_PREFIX "symbol" ///< http://lv2plug.in/ns/lv2core#symbol
+#define LV2_CORE__toggled LV2_CORE_PREFIX "toggled" ///< http://lv2plug.in/ns/lv2core#toggled
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Plugin Instance Handle.
+
+ This is a handle for one particular instance of a plugin. It is valid to
+ compare to NULL (or 0 for C++) but otherwise the host MUST NOT attempt to
+ interpret it.
+*/
+typedef void * LV2_Handle;
+
+/**
+ Feature.
+
+ Features allow hosts to make additional functionality available to plugins
+ without requiring modification to the LV2 API. Extensions may define new
+ features and specify the `URI` and `data` to be used if necessary.
+ Some features, such as lv2:isLive, do not require the host to pass data.
+*/
+typedef struct _LV2_Feature {
+ /**
+ A globally unique, case-sensitive identifier (URI) for this feature.
+
+ This MUST be a valid URI string as defined by RFC 3986.
+ */
+ const char * URI;
+
+ /**
+ Pointer to arbitrary data.
+
+ The format of this data is defined by the extension which describes the
+ feature with the given `URI`.
+ */
+ void * data;
+} LV2_Feature;
+
+/**
+ Plugin Descriptor.
+
+ This structure provides the core functions necessary to instantiate and use
+ a plugin.
+*/
+typedef struct _LV2_Descriptor {
+ /**
+ A globally unique, case-sensitive identifier for this plugin.
+
+ This MUST be a valid URI string as defined by RFC 3986. All plugins with
+ the same URI MUST be compatible to some degree, see
+ http://lv2plug.in/ns/lv2core for details.
+ */
+ const char * URI;
+
+ /**
+ Instantiate the plugin.
+
+ Note that instance initialisation should generally occur in activate()
+ rather than here. If a host calls instantiate(), it MUST call cleanup()
+ at some point in the future.
+
+ @param descriptor Descriptor of the plugin to instantiate.
+
+ @param sample_rate Sample rate, in Hz, for the new plugin instance.
+
+ @param bundle_path Path to the LV2 bundle which contains this plugin
+ binary. It MUST include the trailing directory separator (e.g. '/') so
+ that simply appending a filename will yield the path to that file in the
+ bundle.
+
+ @param features A NULL terminated array of LV2_Feature structs which
+ represent the features the host supports. Plugins may refuse to
+ instantiate if required features are not found here. However, hosts MUST
+ NOT use this as a discovery mechanism: instead, use the RDF data to
+ determine which features are required and do not attempt to instantiate
+ unsupported plugins at all. This parameter MUST NOT be NULL, i.e. a host
+ that supports no features MUST pass a single element array containing
+ NULL.
+
+ @return A handle for the new plugin instance, or NULL if instantiation
+ has failed.
+ */
+ LV2_Handle (*instantiate)(const struct _LV2_Descriptor * descriptor,
+ double sample_rate,
+ const char * bundle_path,
+ const LV2_Feature *const * features);
+
+ /**
+ Connect a port on a plugin instance to a memory location.
+
+ Plugin writers should be aware that the host may elect to use the same
+ buffer for more than one port and even use the same buffer for both
+ input and output (see lv2:inPlaceBroken in lv2.ttl).
+
+ If the plugin has the feature lv2:hardRTCapable then there are various
+ things that the plugin MUST NOT do within the connect_port() function;
+ see lv2core.ttl for details.
+
+ connect_port() MUST be called at least once for each port before run()
+ is called, unless that port is lv2:connectionOptional. The plugin must
+ pay careful attention to the block size passed to run() since the block
+ allocated may only just be large enough to contain the data, and is not
+ guaranteed to remain constant between run() calls.
+
+ connect_port() may be called more than once for a plugin instance to
+ allow the host to change the buffers that the plugin is reading or
+ writing. These calls may be made before or after activate() or
+ deactivate() calls.
+
+ @param instance Plugin instance containing the port.
+
+ @param port Index of the port to connect. The host MUST NOT try to
+ connect a port index that is not defined in the plugin's RDF data. If
+ it does, the plugin's behaviour is undefined (a crash is likely).
+
+ @param data_location Pointer to data of the type defined by the port
+ type in the plugin's RDF data (e.g. an array of float for an
+ lv2:AudioPort). This pointer must be stored by the plugin instance and
+ used to read/write data when run() is called. Data present at the time
+ of the connect_port() call MUST NOT be considered meaningful.
+ */
+ void (*connect_port)(LV2_Handle instance,
+ uint32_t port,
+ void * data_location);
+
+ /**
+ Initialise a plugin instance and activate it for use.
+
+ This is separated from instantiate() to aid real-time support and so
+ that hosts can reinitialise a plugin instance by calling deactivate()
+ and then activate(). In this case the plugin instance MUST reset all
+ state information dependent on the history of the plugin instance except
+ for any data locations provided by connect_port(). If there is nothing
+ for activate() to do then this field may be NULL.
+
+ When present, hosts MUST call this function once before run() is called
+ for the first time. This call SHOULD be made as close to the run() call
+ as possible and indicates to real-time plugins that they are now live,
+ however plugins MUST NOT rely on a prompt call to run() after
+ activate().
+
+ The host MUST NOT call activate() again until deactivate() has been
+ called first. If a host calls activate(), it MUST call deactivate() at
+ some point in the future. Note that connect_port() may be called before
+ or after activate().
+ */
+ void (*activate)(LV2_Handle instance);
+
+ /**
+ Run a plugin instance for a block.
+
+ Note that if an activate() function exists then it must be called before
+ run(). If deactivate() is called for a plugin instance then run() may
+ not be called until activate() has been called again.
+
+ If the plugin has the feature lv2:hardRTCapable then there are various
+ things that the plugin MUST NOT do within the run() function (see
+ lv2core.ttl for details).
+
+ As a special case, when `sample_count` is 0, the plugin should update
+ any output ports that represent a single instant in time (e.g. control
+ ports, but not audio ports). This is particularly useful for latent
+ plugins, which should update their latency output port so hosts can
+ pre-roll plugins to compute latency. Plugins MUST NOT crash when
+ `sample_count` is 0.
+
+ @param instance Instance to be run.
+
+ @param sample_count The block size (in samples) for which the plugin
+ instance must run.
+ */
+ void (*run)(LV2_Handle instance,
+ uint32_t sample_count);
+
+ /**
+ Deactivate a plugin instance (counterpart to activate()).
+
+ Hosts MUST deactivate all activated instances after they have been run()
+ for the last time. This call SHOULD be made as close to the last run()
+ call as possible and indicates to real-time plugins that they are no
+ longer live, however plugins MUST NOT rely on prompt deactivation. If
+ there is nothing for deactivate() to do then this field may be NULL
+
+ Deactivation is not similar to pausing since the plugin instance will be
+ reinitialised by activate(). However, deactivate() itself MUST NOT fully
+ reset plugin state. For example, the host may deactivate a plugin, then
+ store its state (using some extension to do so).
+
+ Hosts MUST NOT call deactivate() unless activate() was previously
+ called. Note that connect_port() may be called before or after
+ deactivate().
+ */
+ void (*deactivate)(LV2_Handle instance);
+
+ /**
+ Clean up a plugin instance (counterpart to instantiate()).
+
+ Once an instance of a plugin has been finished with it must be deleted
+ using this function. The instance handle passed ceases to be valid after
+ this call.
+
+ If activate() was called for a plugin instance then a corresponding call
+ to deactivate() MUST be made before cleanup() is called. Hosts MUST NOT
+ call cleanup() unless instantiate() was previously called.
+ */
+ void (*cleanup)(LV2_Handle instance);
+
+ /**
+ Return additional plugin data defined by some extenion.
+
+ A typical use of this facility is to return a struct containing function
+ pointers to extend the LV2_Descriptor API.
+
+ The actual type and meaning of the returned object MUST be specified
+ precisely by the extension. This function MUST return NULL for any
+ unsupported URI. If a plugin does not support any extension data, this
+ field may be NULL.
+
+ The host is never responsible for freeing the returned value.
+ */
+ const void * (*extension_data)(const char * uri);
+} LV2_Descriptor;
+
+/**
+ Helper macro needed for LV2_SYMBOL_EXPORT when using C++.
+*/
+#ifdef __cplusplus
+# define LV2_SYMBOL_EXTERN extern "C"
+#else
+# define LV2_SYMBOL_EXTERN
+#endif
+
+/**
+ Put this (LV2_SYMBOL_EXPORT) before any functions that are to be loaded
+ by the host as a symbol from the dynamic library.
+*/
+#ifdef _WIN32
+# define LV2_SYMBOL_EXPORT LV2_SYMBOL_EXTERN __declspec(dllexport)
+#else
+# define LV2_SYMBOL_EXPORT LV2_SYMBOL_EXTERN __attribute__((visibility("default")))
+#endif
+
+/**
+ Prototype for plugin accessor function.
+
+ Plugins are discovered by hosts using RDF data (not by loading libraries).
+ See http://lv2plug.in for details on the discovery process, though most
+ hosts should use an existing library to implement this functionality.
+
+ This is the simple plugin discovery API, suitable for most statically
+ defined plugins. Advanced plugins that need access to their bundle during
+ discovery can use lv2_lib_descriptor() instead. Plugin libraries MUST
+ include a function called "lv2_descriptor" or "lv2_lib_descriptor" with
+ C-style linkage, but SHOULD provide "lv2_descriptor" wherever possible.
+
+ When it is time to load a plugin (designated by its URI), the host loads the
+ plugin's library, gets the lv2_descriptor() function from it, and uses this
+ function to find the LV2_Descriptor for the desired plugin. Plugins are
+ accessed by index using values from 0 upwards. This function MUST return
+ NULL for out of range indices, so the host can enumerate plugins by
+ increasing `index` until NULL is returned.
+
+ Note that `index` has no meaning, hosts MUST NOT depend on it remaining
+ consistent between loads of the plugin library.
+*/
+LV2_SYMBOL_EXPORT
+const LV2_Descriptor * lv2_descriptor(uint32_t index);
+
+/**
+ Type of the lv2_descriptor() function in a library (old discovery API).
+*/
+typedef const LV2_Descriptor *
+(*LV2_Descriptor_Function)(uint32_t index);
+
+/**
+ Handle for a library descriptor.
+*/
+typedef void* LV2_Lib_Handle;
+
+/**
+ Descriptor for a plugin library.
+
+ To access a plugin library, the host creates an LV2_Lib_Descriptor via the
+ lv2_lib_descriptor() function in the shared object.
+*/
+typedef struct {
+ /**
+ Opaque library data which must be passed as the first parameter to all
+ the methods of this struct.
+ */
+ LV2_Lib_Handle handle;
+
+ /**
+ The total size of this struct. This allows for this struct to be
+ expanded in the future if necessary. This MUST be set by the library to
+ sizeof(LV2_Lib_Descriptor). The host MUST NOT access any fields of this
+ struct beyond get_plugin() unless this field indicates they are present.
+ */
+ uint32_t size;
+
+ /**
+ Destroy this library descriptor and free all related resources.
+ */
+ void (*cleanup)(LV2_Lib_Handle handle);
+
+ /**
+ Plugin accessor.
+
+ Plugins are accessed by index using values from 0 upwards. Out of range
+ indices MUST result in this function returning NULL, so the host can
+ enumerate plugins by increasing `index` until NULL is returned.
+ */
+ const LV2_Descriptor * (*get_plugin)(LV2_Lib_Handle handle,
+ uint32_t index);
+} LV2_Lib_Descriptor;
+
+/**
+ Prototype for library accessor function.
+
+ This is the more advanced discovery API, which allows plugin libraries to
+ access their bundles during discovery, which makes it possible for plugins to
+ be dynamically defined by files in their bundle. This API also has an
+ explicit cleanup function, removing any need for non-portable shared library
+ destructors. Simple plugins that do not require these features may use
+ lv2_descriptor() instead.
+
+ This is the entry point for a plugin library. Hosts load this symbol from
+ the library and call this function to obtain a library descriptor which can
+ be used to access all the contained plugins. The returned object must not
+ be destroyed (using LV2_Lib_Descriptor::cleanup()) until all plugins loaded
+ from that library have been destroyed.
+*/
+LV2_SYMBOL_EXPORT
+const LV2_Lib_Descriptor *
+lv2_lib_descriptor(const char * bundle_path,
+ const LV2_Feature *const * features);
+
+/**
+ Type of the lv2_lib_descriptor() function in an LV2 library.
+*/
+typedef const LV2_Lib_Descriptor *
+(*LV2_Lib_Descriptor_Function)(const char * bundle_path,
+ const LV2_Feature *const * features);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* LV2_H_INCLUDED */
+
+/**
+ @}
+*/
diff --git a/lv2/core/lv2_util.h b/lv2/core/lv2_util.h
new file mode 100644
index 0000000..e82d097
--- /dev/null
+++ b/lv2/core/lv2_util.h
@@ -0,0 +1,104 @@
+/*
+ Copyright 2016 David Robillard <http://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.
+*/
+
+/**
+ @defgroup util Utilities
+ @ingroup lv2core
+ @{
+*/
+
+#include <stdarg.h>
+#include <string.h>
+
+#include "lv2/core/lv2.h"
+
+#ifdef __cplusplus
+extern "C" {
+#else
+# include <stdbool.h>
+#endif
+
+/**
+ Return the data for a feature in a features array.
+
+ If the feature is not found, NULL is returned. Note that this function is
+ only useful for features with data, and can not detect features that are
+ present but have NULL data.
+*/
+static inline void*
+lv2_features_data(const LV2_Feature*const* features,
+ const char* const uri)
+{
+ if (features) {
+ for (const LV2_Feature*const* f = features; *f; ++f) {
+ if (!strcmp(uri, (*f)->URI)) {
+ return (*f)->data;
+ }
+ }
+ }
+ return NULL;
+}
+
+/**
+ Query a features array.
+
+ This function allows getting several features in one call, and detect
+ missing required features, with the same caveat of lv2_features_data().
+
+ The arguments should be a series of const char* uri, void** data, bool
+ required, terminated by a NULL URI. The data pointers MUST be initialized
+ to NULL. For example:
+
+ @code
+ LV2_URID_Log* log = NULL;
+ LV2_URID_Map* map = NULL;
+ const char* missing = lv2_features_query(
+ features,
+ LV2_LOG__log, &log, false,
+ LV2_URID__map, &map, true,
+ NULL);
+ @endcode
+
+ @return NULL on success, otherwise the URI of this missing feature.
+*/
+static inline const char*
+lv2_features_query(const LV2_Feature* const* features, ...)
+{
+ va_list args;
+ va_start(args, features);
+
+ const char* uri = NULL;
+ while ((uri = va_arg(args, const char*))) {
+ void** data = va_arg(args, void**);
+ bool required = va_arg(args, int);
+
+ *data = lv2_features_data(features, uri);
+ if (required && !*data) {
+ return uri;
+ }
+ }
+
+ return NULL;
+}
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+/**
+ @}
+ @}
+*/
diff --git a/lv2/core/lv2core.doap.ttl b/lv2/core/lv2core.doap.ttl
new file mode 100644
index 0000000..2f90f31
--- /dev/null
+++ b/lv2/core/lv2core.doap.ttl
@@ -0,0 +1,201 @@
+@prefix dcs: <http://ontologi.es/doap-changeset#> .
+@prefix doap: <http://usefulinc.com/ns/doap#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+
+<http://lv2plug.in/ns/lv2core>
+ a doap:Project ;
+ rdfs:seeAlso <meta.ttl> ;
+ doap:license <http://opensource.org/licenses/isc> ;
+ doap:name "LV2" ;
+ doap:homepage <http://lv2plug.in> ;
+ doap:created "2004-04-21" ;
+ doap:shortdesc "An audio plugin interface specification." ;
+ doap:programming-language "C" ;
+ doap:developer <http://plugin.org.uk/swh.xrdf#me> ,
+ <http://drobilla.net/drobilla#me> ;
+ doap:maintainer <http://drobilla.net/drobilla#me> ;
+ doap:release [
+ doap:revision "15.0" ;
+ doap:created "2017-03-19" ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Add lv2:MIDIPlugin class."
+ ]
+ ]
+ ] , [
+ doap:revision "14.0" ;
+ doap:created "2016-09-18" ;
+ doap:file-release <http://lv2plug.in/spec/lv2-1.14.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Add lv2_util.h with lv2_features_data() and lv2_features_query()."
+ ] , [
+ rdfs:label "Add lv2:enabled designation."
+ ]
+ ]
+ ] , [
+ doap:revision "12.4" ;
+ doap:created "2015-04-07" ;
+ doap:file-release <http://lv2plug.in/spec/lv2-1.12.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Relax domain of lv2:minimum lv2:maximum and lv2:default so they can be used to describe properties/parameters as well."
+ ] , [
+ rdfs:label "Add extern C and visibility attribute to LV2_SYMBOL_EXPORT."
+ ] , [
+ rdfs:label "Add lv2:isSideChain port property."
+ ]
+ ]
+ ] , [
+ doap:revision "12.2" ;
+ doap:created "2014-08-08" ;
+ doap:file-release <http://lv2plug.in/spec/lv2-1.10.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Clarify lv2_descriptor() and lv2_lib_descriptor() documentation."
+ ]
+ ]
+ ] , [
+ doap:revision "12.0" ;
+ doap:created "2014-01-04" ;
+ doap:file-release <http://lv2plug.in/spec/lv2-1.8.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Add lv2:prototype for property inheritance."
+ ]
+ ]
+ ] , [
+ doap:revision "10.0" ;
+ doap:created "2013-02-17" ;
+ doap:file-release <http://lv2plug.in/spec/lv2-1.4.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Add lv2:EnvelopePlugin class."
+ ] , [
+ rdfs:label "Add lv2:control for designating primary event-based control ports."
+ ] , [
+ rdfs:label "Set range of lv2:designation to lv2:Designation."
+ ] , [
+ rdfs:label "Make lv2:Parameter rdfs:subClassOf rdf:Property."
+ ] , [
+ rdfs:label "Reserve minor version 0 for unstable development plugins."
+ ]
+ ]
+ ] , [
+ doap:revision "8.2" ;
+ 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."
+ ]
+ ]
+ ] , [
+ doap:revision "8.0" ;
+ 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 "Fix LV2_SYMBOL_EXPORT and lv2_descriptor prototype for Windows."
+ ] , [
+ rdfs:label "Add metadata concept of a designation, a channel or parameter description which can be assigned to ports for more intelligent use by hosts."
+ ] , [
+ rdfs:label "Add new discovery API which allows libraries to read bundle files during discovery, makes library construction/destruction explicit, and adds extensibility to prevent future breakage."
+ ] , [
+ rdfs:label "Relax the range of lv2:index so it can be used for things other than ports."
+ ] , [
+ rdfs:label "Remove lv2:Resource, which turned out to be meaningless."
+ ] , [
+ rdfs:label "Add lv2:CVPort."
+ ] , [
+ rdfs:label "Merge with unified LV2 package."
+ ]
+ ]
+ ] , [
+ doap:revision "6.0" ;
+ doap:created "2011-11-21" ;
+ doap:file-release <http://lv2plug.in/spec/lv2core-6.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Rename core.lv2 and lv2.ttl to lv2core.lv2 and lv2core.ttl to adhere to modern conventions."
+ ] , [
+ rdfs:label "Add lv2:extensionData and lv2:ExtensionData for plugins to indicate that they support some URI for extension_data()."
+ ] , [
+ rdfs:label "Remove lv2config in favour of the simple convention that specifications install headers to standard URI-based paths."
+ ] , [
+ rdfs:label "Switch to the ISC license, a simple BSD-style license (with permission of all contributors to lv2.h and its ancestor, ladspa.h)."
+ ] , [
+ rdfs:label "Make lv2core.ttl a valid OWL 2 DL ontology."
+ ] , [
+ rdfs:label "Improve documentation."
+ ]
+ ]
+ ] , [
+ doap:revision "4.0" ;
+ doap:created "2011-03-18" ;
+ doap:file-release <http://lv2plug.in/spec/lv2core-4.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Make doap:license suggested, but not required (for wrappers)."
+ ] , [
+ rdfs:label "Define lv2:binary (MUST be in manifest.ttl)."
+ ] , [
+ rdfs:label "Define lv2:minorVersion and lv2:microVersion (MUST be in manifest.ttl)."
+ ] , [
+ rdfs:label "Define lv2:documentation and use it to document lv2core."
+ ] , [
+ rdfs:label "Add lv2:FunctionPlugin and lv2:ConstantPlugin classes."
+ ] , [
+ rdfs:label "Move lv2:AmplifierPlugin under lv2:DynamicsPlugin."
+ ] , [
+ rdfs:label "Loosen domain of lv2:optionalFeature and lv2:requiredFeature (to allow re-use in extensions)."
+ ] , [
+ rdfs:label "Add generic lv2:Resource and lv2:PluginBase classes."
+ ] , [
+ rdfs:label "Fix definition of lv2:minimum etc. (used for values, not scale points)."
+ ] , [
+ rdfs:label "More precisely define properties with OWL."
+ ] , [
+ rdfs:label "Move project metadata to manifest."
+ ] , [
+ rdfs:label "Add lv2:enumeration port property."
+ ] , [
+ rdfs:label "Define run() pre-roll special case (sample_count == 0)."
+ ]
+ ]
+ ] , [
+ doap:revision "3.0" ;
+ doap:created "2008-11-08" ;
+ doap:file-release <http://lv2plug.in/spec/lv2core-3.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Require that serialisations refer to ports by symbol rather than index."
+ ] , [
+ rdfs:label "Minor stylistic changes to lv2.ttl."
+ ] , [
+ rdfs:label "No header changes."
+ ]
+ ]
+ ] , [
+ doap:revision "2.0" ;
+ doap:created "2008-02-10" ;
+ doap:file-release <http://lv2plug.in/spec/lv2core-2.0.tar.gz> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Initial release."
+ ]
+ ]
+ ] .
diff --git a/lv2/core/lv2core.ttl b/lv2/core/lv2core.ttl
new file mode 100644
index 0000000..dd3e6bd
--- /dev/null
+++ b/lv2/core/lv2core.ttl
@@ -0,0 +1,1053 @@
+@prefix doap: <http://usefulinc.com/ns/doap#> .
+@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
+@prefix owl: <http://www.w3.org/2002/07/owl#> .
+@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#> .
+
+lv2:Specification
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf doap:Project ;
+ lv2:documentation """
+<p>An LV2 specification (i.e. this specification, or an LV2 extension).</p>
+
+<p>Specification data, like plugin data, is distributed in bundles
+so hosts may discover <em>all</em> present LV2 data.</p>
+""" .
+
+lv2:documentation
+ a rdf:Property ,
+ owl:AnnotationProperty ;
+ rdfs:range rdfs:Literal ;
+ rdfs:label "documentation" ;
+ rdfs:seeAlso <http://www.w3.org/TR/xhtml-basic/> ;
+ lv2:documentation """
+<p>Relates a Resource to documentation markup. The value of this property
+MUST be a string literal which is a valid XHTML Basic 1.1 fragment suitable
+for use as the content of the &lt;body&gt; element. This can be used by
+hosts to provide rich online documentation or by tools to generate external
+documentation pages. The standard language tagging facility of RDF can be
+used to provide multi-lingual documentation.</p>
+<p>XHTML Basic is a W3C Recommendation which defines a basic subset of XHTML
+intended to be reasonable to implement with limited resources (e.g. on embedded
+devices). See <a href="http://www.w3.org/TR/xhtml-basic/#s_xhtmlmodules"
+>XHTML Basic, Section 3</a> for a list of legal tags.</p>
+""" .
+
+<http://lv2plug.in/ns/lv2core>
+ a owl:Ontology ;
+ rdfs:seeAlso <lv2.h> ,
+ <lv2_util.h> ,
+ <lv2core.doap.ttl> ;
+ lv2:documentation """
+<p>LV2 is an interface for writing audio processors, or <q>plugins</q>, in
+C/C++ which can be dynamically loaded into many applications, or <q>hosts</q>.
+This <q>core</q> specification is simple and minimal, but is designed so that
+<q>extensions</q> can be defined to add more advanced features, making it
+possibly to implement nearly any feature imaginable.</p>
+
+<p>LV2 maintains a strong distinction between <q>code</q> and <q>data</q>.
+Plugin code is in a shared library, while data is in a companion data file
+written in <a href="http://www.w3.org/TeamSubmission/turtle/">Turtle</a>.
+Code, data, and any other resources (e.g. waveforms) are shipped together in a
+<q>bundle</q> directory. The code contains only the executable portions of the
+plugin which inherently <em>must</em> be written in code. All other data is
+provided in the data file(s). This makes plugin data flexible and extensible,
+and allows the host to do everything but run the plugin without loading or
+executing any code. Among other advantages, this makes hosts more robust
+(broken plugins can't crash a host during discovery) and allows generic tools
+and non-C programs to work with LV2 data. LV2 itself and extensions are
+distributed in a similar way.</p>
+
+<p>An LV2 plugin library is suitable for dynamic loading (e.g. via
+<code>dlopen()</code>) and provides one or more plugin descriptors via
+<code>lv2_descriptor()</code> or <code>lv2_lib_descriptor()</code>. These can
+be instantiated to create plugin <q>instances</q>, which can be run directly on
+data or connected together to perform advanced signal processing tasks.</p>
+
+<p>Plugins communicate via <q>ports</q>, which can transmit any type of data.
+Data is processed by first <q>connecting</q> each port to a buffer, then
+repeatedly calling a plugin's <code>run()</code> method to process blocks of
+data.</p>
+
+<p>This core specification defines two types of port, equivalent to those in <a
+href="http://www.ladspa.org/">LADSPA</a>: lv2:ControlPort and lv2:AudioPort.
+Audio ports contain arrays with one <code>float</code> element per sample,
+allowing a block of audio to be processed in a single call to
+<code>run()</code>. Control ports contain single <code>float</code> values,
+which are fixed and valid for the duration of the call to <code>run()</code>.
+Thus the <q>control rate</q> is determined by the block size, which is
+controlled by the host (and not necessarily constant).</p>
+
+<h3>Threading Rules</h3>
+
+<p>To faciliate use in multi-threaded programs, LV2 functions are partitioned
+into several threading classes:</p>
+
+<table>
+<tr><th>Discovery Class</th>
+ <th>Instantiation Class</th>
+ <th>Audio Class</th></tr>
+<tr><td>lv2_descriptor()</td>
+ <td>LV2_Descriptor::instantiate()</td>
+ <td>LV2_Descriptor::run()</td></tr>
+<tr><td>lv2_lib_descriptor()</td>
+ <td>LV2_Descriptor::cleanup()</td>
+ <td>LV2_Descriptor::connect_port()</td></tr>
+<tr><td>LV2_Descriptor::extension_data()</td>
+ <td>LV2_Descriptor::activate()</td><td></td></tr>
+<tr><td></td><td>LV2_Descriptor::deactivate()</td><td></td></tr>
+</table>
+
+<p>The rules that hosts MUST follow are:</p>
+<ul>
+<li>When any function is running for a plugin instance,
+no other function in the same class may run for that instance.</li>
+<li>When a <em>Discovery</em> function is running,
+no other functions in the same shared object file may run.</li>
+<li>When an <em>Instantiation</em> function is running for a plugin instance,
+no other functions for that instance may run.</li>
+</ul>
+
+<p>Any simultaneous calls that are not explicitly forbidden by these rules are
+allowed. For example, a host may call <code>run()</code> for two different
+plugin instances simultaneously.</p>
+
+<p>Plugin functions in any class MUST NOT manipulate any state which might
+affect other plugin or host code, e.g. by using non-reentrant global
+functions.</p>
+
+<p>Extensions to this specification which add new functions MUST declare in
+which of these classes the functions belong, define new classes for them, or
+otherwise precisely describe their threading rules.</p>
+""" .
+
+lv2:PluginBase
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:label "Plugin Base" ;
+ lv2:documentation """
+<p>An abstract plugin-like resource that MAY not actually be an LV2 plugin
+(e.g. may not actually have a plugin binary).</p>
+
+<p>PluginBase SHOULD be used as a base type for any resource that may have
+ports or otherwise mimic the structure of a Plugin (e.g. a preset), since
+hosts and other tools already <q>understand</q> this structure.</p>
+""" .
+
+lv2:Plugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:PluginBase ;
+ rdfs:label "Plugin" ;
+ rdfs:subClassOf [
+ a owl:Restriction ;
+ owl:onProperty doap:name ;
+ owl:someValuesFrom rdf:PlainLiteral ;
+ rdfs:comment "A plugin MUST have at least one untranslated doap:name." ;
+ ] ;
+ lv2:documentation """
+<p>The class which represents an LV2 plugin.</p>
+
+<p>To be discovered by hosts, plugins MUST explicitly have rdf:type lv2:Plugin
+listed in their bundle's manifest, e.g.:</p>
+<pre class="turtle-code">
+&lt;http://example.org/my-plugin&gt; a lv2:Plugin .
+</pre>
+
+<p>Plugins SHOULD have a doap:license property whenever possible. The doap:name
+property should be at most a few words in length using title capitalization,
+e.g. <q>Tape Delay Unit</q>. Use doap:shortdesc or doap:description for more
+detailed descriptions.</p>
+""" .
+
+lv2:Port
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:label "Port" ;
+ rdfs:subClassOf [
+ a owl:Restriction ;
+ owl:onProperty lv2:index ;
+ owl:cardinality 1 ;
+ rdfs:comment "A port MUST have exactly one lv2:index." ;
+ ] , [
+ a owl:Restriction ;
+ owl:onProperty lv2:symbol ;
+ owl:cardinality 1 ;
+ rdfs:comment "A port MUST have exactly one lv2:symbol." ;
+ ] , [
+ a owl:Restriction ;
+ owl:onProperty lv2:name ;
+ owl:minCardinality 1 ;
+ rdfs:comment "A port MUST have at least one lv2:name." ;
+ ] ;
+ lv2:documentation """
+<p>The class which represents an LV2 port.</p>
+
+<p>All LV2 port descriptions MUST have a rdf:type that is one of lv2:Port
+lv2:InputPort or lv2:OutputPort. Additionally there MUST be at least one other
+rdf:type which more precisely describes type of the port
+(e.g. lv2:AudioPort).</p>
+
+<p>Hosts that do not support a specific port class MUST NOT instantiate the
+plugin, unless that port has the connectionOptional property set (in which case
+the host can simply <q>connect</q> that port to NULL). If a host is interested
+in plugins to insert in a certain signal path (e.g. stereo audio), it SHOULD
+consider all the classes of a port to determine which ports are most suitable
+for connection (e.g. by ignoring ports with additional classes the host does
+not recognize).</p>
+
+<p>A port has two identifiers: a (numeric) index, and a (textual) symbol.
+The index can be used as an identifier at run-time, but persistent references
+to ports (e.g. in a saved preset) MUST use the symbol. A symbol is guaranteed
+to refer to the same port on all plugins with a given URI. An index does NOT
+necessarily refer to the same port on all plugins with a given URI (i.e. the
+index for a port may differ between plugin binaries).</p>
+""" .
+
+lv2:InputPort
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Port ;
+ rdfs:label "Input Port" ;
+ rdfs:comment """Ports of this type will be connected to a pointer to some value, which will be read by the plugin during their run method.""" .
+
+lv2:OutputPort
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Port ;
+ rdfs:label "Output Port" ;
+ rdfs:comment """Ports of this type will be connected to a pointer to some value, which will be written to by the plugin during their run method.""" .
+
+lv2:ControlPort
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Port ;
+ rdfs:label "Control Port" ;
+ lv2:documentation """
+<p>Ports of this type will be connected to a pointer to a single value of C
+type <code>float</code>.</p>
+
+""" .
+
+lv2:AudioPort
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Port ;
+ rdfs:label "Audio Port" ;
+ lv2:documentation """
+<p>Ports of this type will be connected to an array of length sample_count
+with elements of C type <code>float</code>.</p>
+""" .
+
+lv2:CVPort
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Port ;
+ rdfs:label "CV Port" ;
+ lv2:documentation """
+<p>Ports of this type have the same buffer format as an lv2:AudioPort, except
+the buffer represents audio-rate control data rather than audio. Like an
+lv2:ControlPort, a CVPort SHOULD have properties describing its value
+(e.g. lv2:minimum, lv2:maximum, and lv2:default), and may be presented to the
+user as a control.</p>
+
+<p>It is generally safe to connect an audio output to a CV input, but not vice
+versa. Hosts SHOULD take care to prevent data from a CVPort port from being
+used as audio.</p>
+""" .
+
+lv2:port
+ a rdf:Property ,
+ owl:ObjectProperty ;
+ rdfs:domain lv2:PluginBase ;
+ rdfs:range lv2:Port ;
+ rdfs:label "port" ;
+ rdfs:comment "A port (input or output) on this plugin." .
+
+lv2:project
+ a rdf:Property ,
+ owl:ObjectProperty ;
+ rdfs:range doap:Project ;
+ rdfs:label "project" ;
+ lv2:documentation """
+<p>The project this is a component of.</p>
+
+<p>This property provides a way to group plugins and/or related resources. A
+project may have useful metadata common to all plugins (such as homepage,
+author, version history) which would be wasteful to list separately for each
+plugin.</p>
+
+<p>Grouping via projects also allows users to find plugins in hosts by project,
+which is often how they are remembered. For this reason, a project that
+contains plugins SHOULD always have a doap:name. It is also a good idea for
+each plugin and the project itself to have an lv2:symbol property, which allows
+nice quasi-global identifiers for plugins, e.g. <q>myproj.superamp</q> which
+can be useful for display or fast user entry.</p>
+""" .
+
+lv2:prototype
+ a rdf:Property ,
+ owl:ObjectProperty ;
+ rdfs:label "prototype" ;
+ lv2:documentation """
+<p>The prototype to inherit properties from.</p>
+
+<p>This property can be used to <q>include</q> common properties in several
+descriptions. If a plugin has a prototype, then the host must load all the
+properties for the prototype as if they were properties of the plugin. That
+is, if <code>:plug lv2:prototype :prot</code>, then for each triple <code>:prot
+p o</code>, the triple <code>:plug p o</code> should be loaded.</p>
+
+<p>This facility is useful for distributing text-only plugins that rely on a
+common binary, by referring to a prototype which is installed by the
+corresponding software, along with the plugin binary.</p>
+""" .
+
+lv2:minorVersion
+ a rdf:Property ,
+ owl:DatatypeProperty ;
+ rdfs:range xsd:nonNegativeInteger ;
+ rdfs:label "minor version" ;
+ lv2:documentation """
+<p>The minor version of an LV2 Resource. This, along with lv2:microVersion, is
+used to distinguish between different versions of the <q>same</q> resource,
+e.g. to load only the bundle with the most recent version of a plugin. An LV2
+version has a minor and micro number with the usual semantics:</p>
+
+<ul>
+<li>The minor version MUST be incremented when backwards (but not
+forwards) compatible additions are made, e.g. the addition of a port to a
+plugin.</li>
+
+<li>The micro version is incremented for changes which do not affect
+compatibility at all, e.g. bug fixes or documentation updates.</li>
+</ul>
+
+<p>Note there is deliberately no major version; all versions with the same URI
+are compatible by definition. Replacing a resource with a newer version of
+that resource MUST NOT break anything. If a change violates this rule, then
+the URI of the resource (which serves as the major version) MUST be
+changed.</p>
+
+<p>Plugins and extensions MUST adhere to at least the following rules:</p>
+<ul>
+<li>All versions of a plugin with a given URI MUST have the <q>same</q> set of
+mandatory (i.e. not lv2:connectionOptional) ports with respect to lv2:symbol
+and rdf:type. In other words, every port on a particular version is guaranteed
+to exist on a future version with same lv2:symbol and at least those
+rdf:types.</li>
+
+<li>New ports MAY be added without changing the plugin URI if and only if they
+are lv2:connectionOptional and the minor version is incremented.</li>
+
+<li>The minor version MUST be incremented if the index of any port (identified
+by its symbol) is changed.</li>
+
+<li>All versions of a specification MUST be compatible in the sense that an
+implementation of the new version can interoperate with an implementation of
+any previous version.</li>
+</ul>
+
+<p>Anything that depends on a specific version of a plugin (e.g. a
+serialisation that references ports by index) MUST refer to the plugin by both
+URI and version. However, implementations should be tolerant and extensions
+should be designed such that there is no need to do this (e.g. indices should
+only be meaningful for a particular plugin <em>instance</em> at run-time).</p>
+
+<p>When hosts discover several installed versions of a resource, they SHOULD
+warn the user and load only the most recent version.</p>
+
+<p>An odd minor <em>or</em> micro version, or minor version zero, indicates
+that the resource is a development version. Hosts and tools SHOULD clearly
+indicate this wherever appropriate. Minor version zero is a special case for
+pre-release development of plugins, or experimental plugins that are not
+intended for stable use at all. Hosts SHOULD NOT expect such a plugin to
+remain compatible with any future version. If possible, hosts SHOULD hide such
+plugins from users unless an <q>experimental</q> option is enabled.</p>
+""" .
+
+lv2:microVersion
+ a rdf:Property ,
+ owl:DatatypeProperty ;
+ rdfs:range xsd:nonNegativeInteger ;
+ rdfs:label "micro version" ;
+ lv2:documentation """
+<p>The micro component of a Resource's version.</p>
+
+<p>Releases of plugins and extensions MUST be explicitly versioned. Correct
+version numbers MUST always be maintained for any versioned resource that is
+published. For example, after a release, if a change is made in the development
+version in source control, the micro version MUST be incremented (to an odd
+number) to distinguish this modified version from the previous release.</p>
+
+<p>This property describes half of a resource version. For detailed
+documentation on LV2 resource versioning, see lv2:minorVersion.</p>
+""" .
+
+lv2:binary
+ a rdf:Property ,
+ owl:ObjectProperty ;
+ rdfs:range owl:Thing ;
+ rdfs:label "binary" ;
+ lv2:documentation """
+<p>The binary of an LV2 resource. The value of this property must be a URI that
+resolves to a shared library object (the actual type of this library is system
+specific).</p>
+
+<p>This is a required property of a Plugin which MUST be included in the
+bundle's manifest.ttl file. The lv2:binary of an lv2:Plugin is the shared
+object containing the <code>lv2_descriptor()</code> or
+<code>lv2_lib_descriptor()</code> function which can be used to access the
+descriptor for that plugin. This property may be used similarly by extensions
+to relate other resources to their implementations.</p>
+""" .
+
+lv2:appliesTo
+ a rdf:Property ,
+ owl:ObjectProperty ;
+ rdfs:range lv2:Plugin ;
+ rdfs:label "applies to" ;
+ lv2:documentation """
+<p>Specifies that a resource is related to a plugin. This is primarily intended
+for discovery purposes: bundles that describe resources that work with
+particular plugins (e.g. presets or user interfaces) SHOULD use this predicate
+in manifest.ttl to relate the resource to the applicable
+plugin(s), e.g.:</p>
+<pre class="turtle-code">
+&lt;thing&gt;
+ a ext:Thing ;
+ lv2:appliesTo &lt;plugin&gt; ;
+ rdfs:seeAlso &lt;thing.ttl&gt; .
+</pre>
+
+<p>Particularly for large amounts of data, this is preferable to
+extending the plugin description with rdfs:seeAlso since the host may choose
+if/when to load the data, knowing that it describes an additional resource and
+not the plugin itself.</p>
+""" .
+
+lv2:index
+ a rdf:Property ,
+ owl:DatatypeProperty ,
+ owl:FunctionalProperty ;
+ rdfs:range xsd:unsignedInt ;
+ rdfs:label "index" ;
+ rdfs:comment "A non-negative zero-based 32-bit index." .
+
+lv2:Symbol
+ a rdfs:Datatype ;
+ owl:onDatatype xsd:string ;
+ owl:withRestrictions (
+ [
+ xsd:pattern "[_a-zA-Z][_a-zA-Z0-9]*"
+ ]
+ ) ;
+ rdfs:comment """A short restricted name used as a machine and human readable identifier.
+
+The first character must be one of _, a-z or A-Z and subsequent characters can be from _, a-z, A-Z and 0-9. This is a valid C identifier, and compatible in most other contexts with restricted string identifiers (e.g. file paths).""" .
+
+lv2:symbol
+ a rdf:Property ,
+ owl:DatatypeProperty ,
+ owl:FunctionalProperty ;
+ rdfs:label "symbol" ;
+ rdfs:range lv2:Symbol ,
+ rdf:PlainLiteral ;
+ lv2:documentation """
+<p>The value of this property MUST conform to the rules for lv2:Symbol, and
+MUST NOT have a language tag.</p>
+
+<p>A symbol is a unique identifier with respect to the parent (e.g. a port's
+symbol is a unique identifier with respect to its plugin). The plugin author
+MUST change the plugin URI if a port symbol is changed or removed.</p>
+""" .
+
+lv2:name
+ a rdf:Property ,
+ owl:DatatypeProperty ;
+ rdfs:label "name" ;
+ rdfs:range xsd:string ;
+ rdfs:comment """A display name for labeling in a user interface. Unlike lv2:symbol this is unrestricted and may be translated. The lv2:name MUST NOT be used as an identifier.
+
+This property is required for Ports, but MUST NOT be used by the host for port identification. The plugin author may change the values of this property without changing the Plugin URI.""" .
+
+lv2:shortName
+ a rdf:Property ,
+ owl:DatatypeProperty ;
+ rdfs:label "short name" ;
+ rdfs:range xsd:string ;
+ rdfs:comment """A short display name for labeling in a user interface.
+
+The same rules for port names apply here, with the exception that short names should not be longer than 16 characters.""" .
+
+lv2:Designation
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf rdf:Property ;
+ rdfs:label "Designation" ;
+ lv2:documentation """
+<p>The designation (or <q>assignment</q>) of an input or output. A designation
+is metadata that describes the meaning or role of data. By assigning a
+designation to a port using lv2:designation, the port's content becomes
+meaningful and can be used more intelligently by the host.</p>
+""" .
+
+lv2:Channel
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Designation ;
+ rdfs:label "Channel" ;
+ lv2:documentation """
+<p>A specific channel, e.g. <q>left</q> or <q>right</q>. A channel may be
+audio, or another type such as a MIDI control stream.</p>
+""" .
+
+lv2:Parameter
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Designation ,
+ rdf:Property ;
+ rdfs:label "Parameter" ;
+ lv2:documentation """
+<p>A parameter, i.e. a recognized property. A parameter is a designation for a
+control.</p>
+
+<p>A parameter defines the <em>meaning</em> of a control (not the
+<em>method</em> of conveying its value). The standard way of exposing a plugin
+parameter is via an lv2:ControlPort, which can be given a parameter designation
+with lv2:designation. Other methods, such as setting dynamic parameters via
+messages, are possible but not defined here.</p>
+""" .
+
+lv2:designation
+ a rdf:Property ,
+ owl:ObjectProperty ,
+ owl:FunctionalProperty ;
+ rdfs:range rdf:Property ;
+ rdfs:label "designation" ;
+ lv2:documentation """
+<p>Indicates a channel or parameter designation.</p>
+
+<p>This property is used to give the port's contents a well-defined meaning.
+For example, if a port has lv2:designation eg:gain, then the value of that port
+represents the eg:gain of the plugin instance.</p>
+
+<p>Ports should be given designations whenever a well-defined designation
+exists. This allows the host to act more intelligently and/or provide a more
+effective user interface. For example, if the plugin has a BPM parameter, the
+host may automatically set that parameter to the current tempo.</p>
+""" .
+
+lv2:latency
+ a rdf:Property ,
+ owl:DatatypeProperty ;
+ rdfs:range xsd:nonNegativeInteger ;
+ rdfs:label "latency" ;
+ rdfs:comment "The latency introduced, in frames." .
+
+lv2:freeWheeling
+ a rdf:Property ,
+ owl:DatatypeProperty ;
+ rdfs:label "free-wheeling" ;
+ rdfs:range xsd:boolean ;
+ lv2:documentation """
+<p>Whether or not processing is currently free-wheeling. If true, this means
+that all processing is happening as quickly as possible, not in real-time.
+When free-wheeling there is no relationship between the passage of real
+wall-clock time and the passage of time in the data being processed (e.g. audio
+frames).</p>
+""" .
+
+lv2:enabled
+ a rdf:Property ,
+ owl:DatatypeProperty ;
+ rdfs:label "enabled" ;
+ rdfs:range xsd:int ;
+ lv2:documentation """
+<p>Whether or not processing is currently enabled, that is, not bypassed.</p>
+
+<p>If this value is greater than zero, the plugin processes normally. If this
+value is zero, the plugin is expected to bypass all signals unmodified. The
+plugin must provide a click-free transition between the enabled and disabled
+(bypassed) states.</p>
+
+<p>Values less than zero are reserved for future use (such as click-free
+insertion/removal of latent plugins), and should be treated like zero
+(bypassed) by current implementations.</p>
+""" .
+
+lv2:control
+ a lv2:Channel ;
+ rdfs:label "control" ;
+ lv2:documentation """
+<p>The primary control channel. This should be used as the lv2:designation of
+ports that are used to send commands and receive responses. Typically this
+will be an event port that supports some protocol, e.g. MIDI or LV2 Atoms.</p>
+""" .
+
+lv2:Point
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:label "Point" ;
+ lv2:documentation """
+<p>A Point describes an interesting value in a Port's range (much like a labeled
+<q>notch</q> on a physical knob).</p>
+<ul>
+ <li>A Point MUST have at least one rdfs:label which is a string.</li>
+ <li>A Point MUST have exactly one rdf:value with a type that is compatible
+ with the type of the corresponding Port.</li>
+</ul>
+""" .
+
+lv2:ScalePoint
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Point ;
+ rdfs:label "Scale Point" ;
+ rdfs:comment "A single float Point (for control inputs)." .
+
+lv2:scalePoint
+ a rdf:Property ,
+ owl:ObjectProperty ;
+ rdfs:range lv2:ScalePoint ;
+ rdfs:label "scale point" ;
+ rdfs:comment "A scale point of a port or parameter." .
+
+lv2:default
+ a rdf:Property ,
+ owl:DatatypeProperty ,
+ owl:FunctionalProperty ;
+ rdfs:label "default" ;
+ rdfs:comment """The default value that the host SHOULD set this port to when there is no other information available.""" .
+
+lv2:minimum
+ a rdf:Property ,
+ owl:DatatypeProperty ,
+ owl:FunctionalProperty ;
+ rdfs:label "minimum" ;
+ lv2:documentation """
+<p>A hint to the host for the minimum useful value that the port will use. This
+is a <q>soft</q> limit; the plugin is required to gracefully accept all values
+in the range of a port's data type.</p>
+""" .
+
+lv2:maximum
+ a rdf:Property ,
+ owl:DatatypeProperty ,
+ owl:FunctionalProperty ;
+ rdfs:label "maximum" ;
+ lv2:documentation """
+<p>A hint to the host for the maximum useful value that the port will use.
+This is a <q>soft</q> limit; the plugin is required to gracefully accept all
+values in the range of a port's data type.</p>
+""" .
+
+lv2:Feature
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:label "Feature" ;
+ rdfs:comment """An additional feature which a plugin or other resource may use or require.""" .
+
+lv2:optionalFeature
+ a rdf:Property ,
+ owl:ObjectProperty ;
+ rdfs:range lv2:Feature ;
+ rdfs:label "optional feature" ;
+ lv2:documentation """
+<p>Signifies that a plugin or other resource supports a certain feature. If
+the host supports this feature, it MUST pass its URI and any additional data to
+the plugin in LV2_Descriptor::instantiate(). The plugin MUST NOT fail to
+instantiate if an optional feature is not supported by the host.</p>
+""" .
+
+lv2:requiredFeature
+ a rdf:Property ,
+ owl:ObjectProperty ;
+ rdfs:range lv2:Feature ;
+ rdfs:label "required feature" ;
+ lv2:documentation """
+<p>Signifies that a plugin or other resource requires a certain feature. If
+the host supports this feature, it MUST pass its URI and any additional data to
+the plugin in LV2_Descriptor::instantiate(). The plugin MUST fail to
+instantiate if a required feature is not present; hosts SHOULD always check
+this before attempting to instantiate a plugin (i.e. discovery by attempting to
+instantiate is strongly discouraged).</p>
+""" .
+
+lv2:ExtensionData
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:label "Extension Data" ;
+ lv2:documentation """
+<p>Additional data and/or functions a plugin may return from
+LV2_Descriptor::extension_data() which can be used to add additional API beyond
+that defined by LV2_Descriptor.</p>
+""" .
+
+lv2:extensionData
+ a rdf:Property ,
+ owl:ObjectProperty ;
+ rdfs:range lv2:ExtensionData ;
+ rdfs:label "extension data" ;
+ lv2:documentation """
+<p>Signifies that a plugin provides additional data or functions (as defined by
+some extension) via LV2_Descriptor::instantiate().</p>
+""" .
+
+lv2:isLive
+ a lv2:Feature ;
+ rdfs:label "is live" ;
+ lv2:documentation """
+<p>Indicates that the plugin has a real-time dependency (e.g. queues data from
+a socket) and so its output must not be cached or subject to significant
+latency, and calls to the run method should be done in rapid succession. This
+property is not related to <q>hard real-time</q> execution requirements (see
+lv2:hardRTCapable).</p>
+""" .
+
+lv2:inPlaceBroken
+ a lv2:Feature ;
+ rdfs:label "in-place broken" ;
+ lv2:documentation """
+<p>Indicates that the plugin may cease to work correctly if the host elects to
+use the same data location for both input and output. Plugins that will fail
+to work correctly if ANY input port is connected to the same location as ANY
+output port MUST require this Feature. Doing so should be avoided as it makes
+it impossible for hosts to use the plugin to process data <q>in-place</q>.</p>
+""" .
+
+lv2:hardRTCapable
+ a lv2:Feature ;
+ rdfs:label "hard real-time capable" ;
+ lv2:documentation """
+<p>Indicates that the plugin is capable of running not only in a conventional
+host but also in a <q>hard real-time</q> environment. To qualify for this the
+plugin MUST satisfy all of the following:</p>
+<ol>
+<li>The plugin MUST NOT use malloc(), free() or other heap memory management
+ functions within its Audio class functions.</li>
+
+<li>The plugin MUST NOT attempt to make use of any library functions in its
+ Audio class functions, unless those functions themselves adhere to these
+ rules (i.e. are hard realtime safe). The plugin MAY assume the standard C
+ and C math library functions are safe.</li>
+
+<li>The plugin will not access files, devices, pipes, sockets, IPC or any other
+ mechanism that might result in process or thread blocking within its Audio
+ class functions.</li>
+
+<li>The plugin will take an amount of time to execute a run() call
+ approximately of form <code>A + B * sample_count</code> where <code>A</code>
+ and <code>B</code> depend on the machine and host in use. This amount of
+ time MUST NOT depend on input signals or plugin state.</li>
+</ol>
+<p>Note these rules apply to the connect_port() function as well as run().</p>
+""" .
+
+lv2:PortProperty
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:label "Port Property" ;
+ rdfs:comment """A property of this port that allows a host to make more sensible decisions (e.g. to provide a better interface).""" .
+
+lv2:portProperty
+ a rdf:Property ,
+ owl:ObjectProperty ;
+ rdfs:domain lv2:Port ;
+ rdfs:range lv2:PortProperty ;
+ rdfs:label "port property" ;
+ rdfs:comment """Relates Ports to PortProperties. The PortProperty may be ignored without catastrophic effects, though it may be useful e.g. for providing a sensible interface for the port.""" .
+
+lv2:connectionOptional
+ a lv2:PortProperty ;
+ rdfs:label "connection optional" ;
+ rdfs:comment """Indicates that this port does not have to be connected to valid data by the host. If it is to be disconnected then the port MUST set to NULL with a call to the connectPort method.""" .
+
+lv2:reportsLatency
+ a lv2:PortProperty ;
+ rdfs:label "reports latency" ;
+ lv2:documentation """
+<p>Indicates that the port is used to express the processing latency incurred
+by the plugin, expressed in samples. The latency may be affected by the current
+sample rate, plugin settings, or other factors, and may be changed by the
+plugin at any time. Where the latency is frequency dependent the plugin may
+choose any appropriate value. If a plugin introduces latency it MUST provide
+EXACTLY ONE port with this property set which informs the host of the
+<q>correct</q> latency. In <q>fuzzy</q> cases the value output should be the
+most reasonable based on user expectation of input/output alignment
+(eg. musical delay/echo plugins should not report their delay as latency, as it
+is an intentional effect).</p>
+""" .
+
+lv2:toggled
+ a lv2:PortProperty ;
+ rdfs:label "toggled" ;
+ lv2:documentation """
+<p>Indicates that the data item should be considered a Boolean toggle. Data
+less than or equal to zero should be considered <q>off</q> or <q>false</q>, and
+data above zero should be considered <q>on</q> or <q>true</q>.</p>
+""" .
+
+lv2:sampleRate
+ a lv2:PortProperty ;
+ rdfs:label "sample rate" ;
+ rdfs:comment """Indicates that any bounds specified should be interpreted as multiples of the sample rate. For instance, a frequency range from 0Hz to the Nyquist frequency (half the sample rate) could be requested by this property in conjunction with lv2:minimum 0.0 and lv2:maximum 0.5. Hosts that support bounds at all MUST support this property.""" .
+
+lv2:integer
+ a lv2:PortProperty ;
+ rdfs:label "integer" ;
+ rdfs:comment """Indicates that a port's reasonable values are integers (eg. a user interface would likely wish to provide a stepped control allowing only integer input). A plugin MUST operate reasonably even if such a port has a non-integer input.""" .
+
+lv2:enumeration
+ a lv2:PortProperty ;
+ rdfs:label "enumeration" ;
+ rdfs:comment """Indicates that a port's only reasonable values are the scale points defined for that port. A host SHOULD NOT allow a user to set the value of such a port to anything other than a scale point. However, a plugin MUST operate reasonably even if such a port has an input that is not a scale point, preferably by simply choosing the largest enumeration value less than or equal to the actual input value (i.e. round the input value down).""" .
+
+lv2:isSideChain
+ a lv2:PortProperty ;
+ rdfs:label "is side-chain" ;
+ rdfs:comment """Indicates that a port is a "sidechain", which affects the output somehow but should not be considered a main input. Sidechain ports should be connectionOptional, and may be ignored by hosts.""" .
+
+lv2:GeneratorPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Plugin ;
+ rdfs:label "Generator" ;
+ rdfs:comment """Any plugin that generates sound internally, rather than processing its input.""" .
+
+lv2:InstrumentPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:GeneratorPlugin ;
+ rdfs:label "Instrument" ;
+ rdfs:comment """Any plugin that is intended to be played as a musical instrument.""" .
+
+lv2:OscillatorPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:GeneratorPlugin ;
+ rdfs:label "Oscillator" .
+
+lv2:UtilityPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Plugin ;
+ rdfs:label "Utility" ;
+ rdfs:comment """Includes things like mathematical functions and non-musical delays.""" .
+
+lv2:ConverterPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:UtilityPlugin ;
+ rdfs:label "Converter" ;
+ rdfs:comment """Any plugin that converts some form of input into a different form of output.""" .
+
+lv2:AnalyserPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:UtilityPlugin ;
+ rdfs:label "Analyser" ;
+ rdfs:comment """Any plugin that analyses input to output some useful information.""" .
+
+lv2:MixerPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:UtilityPlugin ;
+ rdfs:label "Mixer" ;
+ rdfs:comment """A plugin which mixes some number of inputs into some number of outputs.""" .
+
+lv2:SimulatorPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Plugin ;
+ rdfs:label "Simulator" ;
+ rdfs:comment """Plugins that aim to duplicate the effect of some environmental effect or musical equipment.""" .
+
+lv2:DelayPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Plugin ;
+ rdfs:label "Delay" ;
+ rdfs:comment """Plugins that intentionally delay their input signal as an effect.""" .
+
+lv2:ModulatorPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Plugin ;
+ rdfs:label "Modulator" .
+
+lv2:ReverbPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Plugin ,
+ lv2:SimulatorPlugin ,
+ lv2:DelayPlugin ;
+ rdfs:label "Reverb" .
+
+lv2:PhaserPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:ModulatorPlugin ;
+ rdfs:label "Phaser" .
+
+lv2:FlangerPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:ModulatorPlugin ;
+ rdfs:label "Flanger" .
+
+lv2:ChorusPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:ModulatorPlugin ;
+ rdfs:label "Chorus" .
+
+lv2:FilterPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Plugin ;
+ rdfs:label "Filter" .
+
+lv2:LowpassPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:FilterPlugin ;
+ rdfs:label "Lowpass" .
+
+lv2:BandpassPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:FilterPlugin ;
+ rdfs:label "Bandpass" .
+
+lv2:HighpassPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:FilterPlugin ;
+ rdfs:label "Highpass" .
+
+lv2:CombPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:FilterPlugin ;
+ rdfs:label "Comb" .
+
+lv2:AllpassPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:FilterPlugin ;
+ rdfs:label "Allpass" .
+
+lv2:EQPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:FilterPlugin ;
+ rdfs:label "Equaliser" .
+
+lv2:ParaEQPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:EQPlugin ;
+ rdfs:label "Parametric" .
+
+lv2:MultiEQPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:EQPlugin ;
+ rdfs:label "Multiband" .
+
+lv2:SpatialPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Plugin ;
+ rdfs:label "Spatial" ;
+ rdfs:comment """Plugins that manipulate the position of audio in space (e.g. panning,
+stereo width, surround encoding, etc.).""" .
+
+lv2:SpectralPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Plugin ;
+ rdfs:label "Spectral" ;
+ rdfs:comment """Plugins that alter the spectral properties (e.g. frequency) of audio.""" .
+
+lv2:PitchPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:SpectralPlugin ;
+ rdfs:label "Pitch Shifter" .
+
+lv2:AmplifierPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:DynamicsPlugin ;
+ rdfs:label "Amplifier" .
+
+lv2:EnvelopePlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:DynamicsPlugin ;
+ rdfs:label "Envelope" .
+
+lv2:DistortionPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Plugin ;
+ rdfs:label "Distortion" .
+
+lv2:WaveshaperPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:DistortionPlugin ;
+ rdfs:label "Waveshaper" .
+
+lv2:DynamicsPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Plugin ;
+ rdfs:label "Dynamics" ;
+ rdfs:comment """Plugins that alter the envelope or dynamic range of audio.""" .
+
+lv2:CompressorPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:DynamicsPlugin ;
+ rdfs:label "Compressor" .
+
+lv2:ExpanderPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:DynamicsPlugin ;
+ rdfs:label "Expander" .
+
+lv2:LimiterPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:DynamicsPlugin ;
+ rdfs:label "Limiter" .
+
+lv2:GatePlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:DynamicsPlugin ;
+ rdfs:label "Gate" .
+
+lv2:FunctionPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:UtilityPlugin ;
+ rdfs:label "Function" .
+
+lv2:ConstantPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:GeneratorPlugin ;
+ rdfs:label "Constant" .
+
+lv2:MIDIPlugin
+ a rdfs:Class ,
+ owl:Class ;
+ rdfs:subClassOf lv2:Plugin ;
+ rdfs:label "MIDI" .
diff --git a/lv2/core/manifest.ttl b/lv2/core/manifest.ttl
new file mode 100644
index 0000000..d331434
--- /dev/null
+++ b/lv2/core/manifest.ttl
@@ -0,0 +1,14 @@
+@prefix doap: <http://usefulinc.com/ns/doap#> .
+@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
+@prefix owl: <http://www.w3.org/2002/07/owl#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+
+<http://lv2plug.in/ns/lv2core>
+ a lv2:Specification ;
+ lv2:minorVersion 15 ;
+ lv2:microVersion 0 ;
+ rdfs:seeAlso <lv2core.ttl> .
+
+<http://lv2plug.in/ns/lv2>
+ a doap:Project ;
+ rdfs:seeAlso <meta.ttl> .
diff --git a/lv2/core/meta.ttl b/lv2/core/meta.ttl
new file mode 100644
index 0000000..8ed9595
--- /dev/null
+++ b/lv2/core/meta.ttl
@@ -0,0 +1,213 @@
+@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 meta: <http://lv2plug.in/ns/meta#> .
+@prefix owl: <http://www.w3.org/2002/07/owl#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+
+<http://opensource.org/licenses/isc>
+ rdf:value """
+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.
+""" .
+
+<http://lv2plug.in/ns/lv2>
+ a doap:Project ;
+ lv2:symbol "lv2" ;
+ doap:name "LV2" ;
+ doap:license <http://opensource.org/licenses/isc> ;
+ doap:shortdesc "The LV2 Plugin Interface Project" ;
+ doap:description "LV2 is a plugin standard for audio systems. It defines a minimal yet extensible C API for plugin code and a format for plugin bundles" ;
+ doap:created "2006-05-10" ;
+ doap:homepage <http://lv2plug.in/> ;
+ doap:mailing-list <http://lists.lv2plug.in/listinfo.cgi/devel-lv2plug.in> ;
+ doap:programming-language "C" ;
+ doap:repository [
+ a doap:SVNRepository ;
+ doap:location <http://lv2plug.in/repo>
+ ] ;
+ doap:developer <http://drobilla.net/drobilla#me> ,
+ <http://plugin.org.uk/swh.xrdf#me> ;
+ doap:helper meta:larsl ,
+ meta:bmwiedemann ,
+ meta:gabrbedd ,
+ meta:daste ,
+ meta:kfoltman ,
+ meta:paniq ;
+ doap:release [
+ doap:revision "1.15.4" ;
+ doap:created "2018-09-22" ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Include waf sources and fix build with Python 3.7."
+ ] , [
+ rdfs:label "eg-sampler: Add waveform display to UI."
+ ] , [
+ rdfs:label "eg-midigate: Respond to \"all notes off\" MIDI message."
+ ] , [
+ rdfs:label "Add lv2_validate utility."
+ ]
+ ]
+ ] , [
+ doap:revision "1.14.0" ;
+ doap:created "2016-09-19" ;
+ doap:file-release <http://lv2plug.in/spec/lv2-1.14.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "eg-scope: Don't feed back UI state updates."
+ ] , [
+ rdfs:label "eg-sampler: Fix handling of state file paths."
+ ] , [
+ rdfs:label "eg-sampler: Support thread-safe state restoration."
+ ]
+ ]
+ ] , [
+ doap:revision "1.12.0" ;
+ doap:created "2015-04-07" ;
+ doap:file-release <http://lv2plug.in/spec/lv2-1.12.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "eg-sampler: Support patch:Get, and request initial state from UI."
+ ] , [
+ rdfs:label "eg-sampler: Add gain parameter."
+ ] , [
+ rdfs:label "Fix merging of version histories in specification documentation."
+ ] , [
+ rdfs:label "Improve API documentation."
+ ] , [
+ rdfs:label "Simplify property restrictions by removing redundancy."
+ ]
+ ]
+ ] , [
+ doap:revision "1.10.0" ;
+ doap:created "2014-08-08" ;
+ doap:file-release <http://lv2plug.in/spec/lv2-1.10.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "lv2specgen: Display deprecated warning on classes marked owl:deprecated."
+ ] , [
+ rdfs:label "Fix -Wconversion warnings in headers."
+ ] , [
+ rdfs:label "Upgrade to waf 1.7.16."
+ ]
+ ]
+ ] , [
+ doap:revision "1.8.0" ;
+ doap:created "2014-01-04" ;
+ doap:file-release <http://lv2plug.in/spec/lv2-1.8.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Add scope example plugin from Robin Gareus."
+ ] , [
+ rdfs:label "lv2specgen: Fix links to externally defined terms."
+ ] , [
+ rdfs:label "Install lv2specgen for use by other projects."
+ ]
+ ]
+ ] , [
+ doap:revision "1.6.0" ;
+ doap:created "2013-08-09" ;
+ doap:file-release <http://lv2plug.in/spec/lv2-1.6.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Fix port indices of metronome example."
+ ] , [
+ rdfs:label "Fix lv2specgen usage from command line."
+ ] , [
+ rdfs:label "Upgrade to waf 1.7.11."
+ ]
+ ]
+ ] , [
+ doap:revision "1.4.0" ;
+ doap:created "2013-02-17" ;
+ doap:file-release <http://lv2plug.in/spec/lv2-1.4.0.tar.bz2> ;
+ dcs:blame <http://drobilla.net/drobilla#me> ;
+ dcs:changeset [
+ dcs:item [
+ rdfs:label "Add metronome example plugin to demonstrate sample accurate tempo sync."
+ ] , [
+ rdfs:label "Generate book-style HTML documentation from example plugins."
+ ]
+ ]
+ ] , [
+ doap:revision "1.2.0" ;
+ 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 "Move all project metadata for extensions (e.g. change log) to separate files to spare hosts from loading them during discovery."
+ ] , [
+ rdfs:label "Use stricter datatype definitions conformant with the XSD and OWL specifications for better validation."
+ ]
+ ]
+ ] , [
+ doap:revision "1.0.0" ;
+ doap:created "2012-04-16" ;
+ 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 "Initial release as a unified project. Projects can now simply depend on the pkg-config package 'lv2' for all official LV2 APIs."
+ ] , [
+ rdfs:label "New extensions: atom, log, parameters, patch, port-groups, port-props, resize-port, state, time, worker."
+ ]
+ ]
+ ] .
+
+<http://drobilla.net/drobilla#me>
+ a foaf:Person ;
+ foaf:name "David Robillard" ;
+ foaf:mbox <mailto:d@drobilla.net> ;
+ rdfs:seeAlso <http://drobilla.net/drobilla> .
+
+<http://plugin.org.uk/swh.xrdf#me>
+ a foaf:Person ;
+ foaf:name "Steve Harris" ;
+ foaf:mbox <mailto:steve@plugin.org.uk> ;
+ rdfs:seeAlso <http://plugin.org.uk/swh.xrdf> .
+
+meta:larsl
+ a foaf:Person ;
+ foaf:name "Lars Luthman" ;
+ foaf:mbox <mailto:lars.luthman@gmail.com> .
+
+meta:gabrbedd
+ a foaf:Person ;
+ foaf:name "Gabriel M. Beddingfield" ;
+ foaf:mbox <mailto:gabrbedd@gmail.com> .
+
+meta:daste
+ a foaf:Person ;
+ foaf:name "Stefano D'Angelo" ;
+ foaf:mbox <mailto:zanga.mail@gmail.com> .
+
+meta:kfoltman
+ a foaf:Person ;
+ foaf:name "Krzysztof Foltman" ;
+ foaf:mbox <mailto:wdev@foltman.com> .
+
+meta:paniq
+ a foaf:Person ;
+ foaf:name "Leonard Ritter" ;
+ foaf:mbox <mailto:paniq@paniq.org> .
+
+meta:harry
+ a foaf:Person ;
+ foaf:name "Harry van Haaren" ;
+ foaf:mbox <harryhaaren@gmail.com> .
+
+meta:bmwiedemann
+ a foaf:Person ;
+ foaf:name "Bernhard M. Wiedemann" ;
+ foaf:mbox <bwiedemann@suse.de> .
+