From a3ed37433cd283109b2593c7f47421e9e61327c5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 7 Aug 2007 22:34:57 +0000 Subject: SLV2 0.1.0... maybe. git-svn-id: http://svn.drobilla.net/lad/slv2@681 a436a847-0d15-0410-975c-d299462d15a1 --- data/Makefile.am | 4 +- data/lv2.ttl | 616 ------------------------------------------ data/lv2core.lv2/Makefile.am | 4 + data/lv2core.lv2/lv2.ttl | 616 ++++++++++++++++++++++++++++++++++++++++++ data/lv2core.lv2/manifest.ttl | 7 + 5 files changed, 628 insertions(+), 619 deletions(-) delete mode 100644 data/lv2.ttl create mode 100644 data/lv2core.lv2/Makefile.am create mode 100644 data/lv2core.lv2/lv2.ttl create mode 100644 data/lv2core.lv2/manifest.ttl (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am index 2b7dd69..3eab75c 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,4 +1,2 @@ -EXTRA_DIST = lv2.ttl +SUBDIRS = lv2core.lv2 -ontologydir = $(datadir)/slv2 -ontology_DATA = lv2.ttl diff --git a/data/lv2.ttl b/data/lv2.ttl deleted file mode 100644 index c842489..0000000 --- a/data/lv2.ttl +++ /dev/null @@ -1,616 +0,0 @@ -# RDF Schema for LV2 plugins -# *** PROVISIONAL Revision 2007-08-03 *** -# -# This document describes the classes and properties that are defined by the -# core LV2 specification. See for more information. -# -# Copyright (C) 2006-2007 Steve Harris, Dave Robillard -# -# Permission is hereby granted, free of charge, to any person obtaining a -# copy of this software and associated documentation files (the "Software"), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR -# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -# OTHER DEALINGS IN THE SOFTWARE. - -@prefix : . -@prefix rdf: . -@prefix rdfs: . -@prefix xsd: . -@prefix doap: . -@prefix foaf: . - -:Specification a rdfs:Class ; - rdfs:comment """ -An LV2 specification (ie this specification, or an LV2 extension). - -Specification data, like plugins, is distributed in standardized -bundles so hosts may discover all present LV2 data. -See http://lv2plug.in/docs for more details. -""" . - -<> a doap:Project ; - a :Specification ; - doap:license ; - doap:name "LV2" ; - doap:homepage ; - doap:created "2004-04-21" ; - doap:shortdesc "An audio processing plugin specification" ; - doap:programming-language "C" ; - doap:release [ - doap:revision "1.0beta4" ; - doap:created "2007-08-03" - ] ; - doap:maintainer [ - a foaf:Person ; - foaf:name "Steve Harris" ; - foaf:homepage ; - rdfs:seeAlso - ] , [ - a foaf:Person ; - foaf:name "Dave Robillard" ; - foaf:homepage ; - rdfs:seeAlso - ]. - - -################## -## Plugin Class ## -################## - -:Plugin a rdfs:Class ; - rdfs:label "Plugin" ; - rdfs:comment """ -The class which represents an LV2 plugin. - -To be used by a host a Plugin must have at least the following properties: - rdf:type (with object :Plugin) - doap:name (one without language tag) - doap:license - :port - -The doap:name property should be at most a few words in length using title -capitalization, e.g. "Tape Delay Unit". Use doap:shortdesc or -doap:description for more detailed descriptions. -""" . - - - -################## -## Port Classes ## -################## - -:Port a rdfs:Class ; - rdfs:label "Port" ; - rdfs:comment """ -The class which represents an LV2 port. - -In order for it to be used by a host it must have at least -the following properties: - rdf:type (with object one of :Port, :InputPort, :OutputPort) - rdf:type (more specific port class, see below) - :index - :symbol - :name - -All LV2 port descriptions MUST have a property rdf:type where the object -is one of :Port :InputPort or :OutputPort. Additionally there MUST be -at least one other rdf:type property which more specifically describes -type of the port (e.g. :AudioPort). - -Hosts that do not support a specific port class MUST NOT instantiate the -plugin, unless that port has the connectionOptional hint set (in which case -the host can simply "connect" 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). -""" . - -:InputPort a rdfs:Class ; - rdfs:label "Input port" ; - rdfs:subClassOf :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. -""" . - -:OutputPort a rdfs:Class ; - rdfs:label "Output port" ; - rdfs:subClassOf :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. -""" . - -:ControlPort a rdfs:Class ; - rdfs:label "Control port" ; - rdfs:subClassOf :Port ; - rdfs:comment """ -Ports of this type will be connected to a pointer to a single value conforming -to the 32bit IEEE-754 floating point specification. -""" . - -:AudioPort a rdfs:Class ; - rdfs:label "Audio port" ; - rdfs:subClassOf :Port ; - rdfs:comment """ -Ports of this type will be connected to an array of length SampleCount -conforming to the 32bit IEEE-754 floating point specification. -""" . - - - -################################## -# Optional Plugin RDF:Properties # -################################## - -:documentation a rdf:Property ; - rdfs:domain :Plugin ; - rdfs:label "documentation" ; - rdfs:comment "Relates a Plugin to some text/audio/video documentation either online or included with the plugin package" . - - - -################################# -# Mandatory Port RDF:Properties # -################################# - -:index a rdf:Property ; - rdfs:domain :Port ; - rdfs:range xsd:nonNegativeInteger ; - rdfs:label "index" ; - rdfs:comment """ -Specifies the index of the port, passed as an argument to the connect port -function. This number uniqely identifies the port within the plugin. - -The plugin author MUST change the plugin URI if a port index is changed. -""" . - -:symbol a rdf:Property ; - rdfs:label "symbol" ; - rdfs:comment """ -A short name used as a machine and human readable identifier. - -The first character must be one of _, a-z or A-Z and subsequenct characters can -be from _, a-z, A-Z and 0-9. - -A language tag MUST NOT be used on this property. The plugin author MUST change -the plugin URI if a port symbol is changed. -""" . - -:name a rdf:Property ; - rdfs:domain :Port ; - rdfs:label "name" ; - rdfs:comment """ -A display name for labeling the Port in a user interface. - -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. -""" . - - - -################################ -# Optional Port RDF:Properties # -################################ - -:Point a rdfs:Class ; - rdfs:label "Port value point" ; - rdfs:comment """ -Used to describe interesting values in a Port's range. To be valid it requires -two rdf:properties, rdfs:label and rdf:value. - -There are 3 specially defined Points in the LV2 specification (default, -minimum, and maximum), though future extensions may define more. -""" . - -:ScalePoint a rdfs:Class ; - rdfs:subClassOf :Point ; - rdfs:comment "A single :float Point (for control inputs)" . - -:scalePoint a rdf:Property ; - rdfs:domain :Port ; - rdfs:range :ScalePoint ; - rdfs:label "Scale point" ; - rdfs:comment "Relates a Port to its ScalePoints." . - -:default a rdf:Property ; - rdfs:subPropertyOf :scalePoint ; - rdfs:label "Default value" ; - rdfs:comment """ -The default value that the host SHOULD set this port to when there is no other -information available. -""" . - -:minimum a rdf:Property ; - rdfs:subPropertyOf :scalePoint ; - rdfs:label "Minimum value" ; - rdfs:comment """ -A hint to the host for the minimum useful value that the port will use. -This is a "soft" limit - the plugin is required to gracefully accept all -values in the range of :float. -""" . - -:maximum a rdf:Property ; - rdfs:subPropertyOf :scalePoint ; - rdfs:label "Maximum value" ; - rdfs:comment """ -A hint to the host for the maximum useful value that the port will use. -This is a "soft" limit - the plugin is required to gracefully accept all -values in the range of :float. -""" . - - - -################### -## Host Features ## -################### - -:HostFeature a rdfs:Class ; - rdfs:label "Host feature" ; - rdfs:comment "A host feature which a plugin may use (possibly require).". - -:optionalHostFeature a rdf:Property ; - rdfs:domain :Plugin ; - rdfs:range :HostFeature ; - rdfs:label "Optional host feature" ; - rdfs:comment """ -Signifies that a plugin is able to make use of a certain host feature. -The plugin MUST NOT fail to instantiate if an optional host feature is -not present.""" . - -:requiredHostFeature a rdf:Property ; - rdfs:domain :Plugin ; - rdfs:range :HostFeature ; - rdfs:label "Required host feature" ; - rdfs:comment """ -Signifies that a plugin requires a certain host feature to function. -The plugin MUST fail to instantiate if a required host feature is not present; -hosts SHOULD always check this before attempting to instantiate a plugin -(eg discovery by attempting to instantiate is strongly discouraged). -""" . - - - -#################### -## LV2 Properties ## -#################### - -:Property a rdfs:Class ; - rdfs:label "Property" ; - rdfs:comment """ -An LV2 Property. A host MUST NOT ignore the presence of a Property -(eg if it does, something catastrophic will happen and the plugin will not -function). If a piece of information can be ignored by the host and the -plugin can still function correctly, it is NOT a Property, it is a Hint. -""" . - -:PluginProperty a rdfs:Class ; - rdfs:label "Plugin property" ; - rdfs:subClassOf :Property ; - rdfs:comment "Property of a Plugin." . - -:PortProperty a rdfs:Class ; - rdfs:label "Port property" ; - rdfs:subClassOf :Property ; - rdfs:comment "Property of a Port." . - -:pluginProperty a rdf:Property ; - rdfs:domain :Plugin ; - rdfs:range :PluginProperty ; - rdfs:label "Plugin property" ; - rdfs:comment "Relates Plugins to PluginProperties." . - -:portProperty a rdf:Property ; - rdfs:domain :Port ; - rdfs:range :PortProperty ; - rdfs:label "hint" ; - rdfs:comment "Relates Ports to PortProperties." . - - - -############### -## LV2 Hints ## -############### - -:Hint a rdfs:Class ; - rdfs:label "Hint" ; - rdfs:comment """ -An LV2 Hint - a useful piece of information that allows a host to make more -sensible decisions (eg to provide a better interface). Unlike a Property -a Hint may be ignored without catastrophic effects (though this doesn't mean -a Hint is less "important" than a Property, whether or not it can be safely -ignored and have the plugin still function correctly is the sole distinction). -""" . - -:PluginHint a rdfs:Class ; - rdfs:label "Plugin hint" ; - rdfs:subClassOf :Hint ; - rdfs:comment "Hint for a Plugin." . - -:PortHint a rdfs:Class ; - rdfs:label "Port hint" ; - rdfs:subClassOf :Hint ; - rdfs:comment "Hint for a Port." . - -:pluginHint a rdf:Property ; - rdfs:domain :Plugin ; - rdfs:range :PluginHint ; - rdfs:label "Plugin hint" ; - rdfs:comment "Relates Plugins to PluginHints." . - -:portHint a rdf:Property ; - rdfs:domain :Port ; - rdfs:range :PortHint ; - rdfs:label "Port hint" ; - rdfs:comment "Relates Ports to PortHints." . - - - -############################# -# Standard PluginProperties # -############################# - -:isLive a :PluginProperty ; - rdfs:label "Has a live (realtime) dependency" ; - rdfs:comment """ -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. -""" . - -:inPlaceBroken a :PluginProperty ; - rdfs:label "in-place broken" ; - rdfs:comment """ -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 buffer is set to the same location as ANY output -buffer (with connect_port()) MUST set this property. Doing so should be -avoided as enabling this flag makes it impossible for hosts to use the plugin -to process audio "in-place". -""" . - - - -######################## -# Standard PluginHints # -######################## - -:hardRTCapable a :PluginHint ; - rdfs:label "Hard realtime capable" ; - rdfs:comment """ -Indicates that the plugin is capable of running not only in a conventional host -but also in a "hard real-time" environment. To qualify for this the plugin must -satisfy all of the following: - - (1) The plugin must not use malloc(), free() or other heap memory - management within its Audio class functions. All new memory used in - Audio class functions must be managed via the stack. These restrictions - only apply to the Audio class functions. - - (2) The plugin will not attempt to make use of any library - functions in its Audio class functions, with the exceptions of functions - in the ANSI standard C and C maths libraries, which the host is expected to - provide. - - (3) 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. - - (4) The plugin will take an amount of time to execute a run() call - approximately of form (A+B*SampleCount) where A and B depend on the - machine and host in use. This amount of time may not depend on input - signals or plugin state. The host is left the responsibility to perform - timings to estimate upper bounds for A and B. The plugin will also take an - approximately constant amount of time to execute a connect_port() call. -""" . - - - -###################### -# Standard PortHints # -###################### - -:connectionOptional a :PortHint ; - rdfs:label "Optionally connected port" ; - 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. -""" . - -:reportsLatency a :PortHint ; - rdfs:label "Latency reporting port" ; - rdfs:comment """ -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 hint set which informs the host of the "correct" -latency. In "fuzzy" 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). -""". - -:toggled a :PortHint ; - rdfs:label "Toggled" ; - rdfs:comment """ -Indicates that the data item should be considered a Boolean toggle. Data less -than or equal to zero should be considered "off" or "false", and data above -zero should be considered "on" or "true". -""" . - -:sampleRate a :PortHint ; - 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 hint in conjunction with -:minimum 0.0 and :maximum 0.5. Hosts that support bounds at all must support -this hint to retain meaning. -""" . - -:integer a :PortHint ; - 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. -""" . - - - -############################### -# Plugin Categories (Classes) # -############################### - -:UtilityPlugin a rdfs:Class ; - rdfs:subClassOf :Plugin ; - rdfs:label "Utility" ; - rdfs:comment """ -Includes things like mathematical functions and non-musical delays. -""" . - -:GeneratorPlugin a rdfs:Class ; - rdfs:subClassOf :Plugin ; - rdfs:label "Generator" ; - rdfs:comment """ -Any plugin that generates sound internally, rather than processing its input. -""" . - -:InstrumentPlugin a rdfs:Class ; - rdfs:subClassOf :GeneratorPlugin ; - rdfs:label "Instrument" ; - rdfs:comment """ -Any plugin that is intended to be played as a musical instrument. -""" . - -:OscillatorPlugin a rdfs:Class ; - rdfs:subClassOf :GeneratorPlugin ; - rdfs:label "Oscillator" . - -:SimulatorPlugin a rdfs:Class ; - rdfs:subClassOf :Plugin ; - rdfs:label "Simulator" ; - rdfs:comment """ -Plugins that aim to duplicate the effect of some environmental effect or -musical equipment. -""" . - -:DelayPlugin a rdfs:Class ; - rdfs:subClassOf :Plugin ; - rdfs:label "Delay" ; - rdfs:comment """ -Plugins that intentionally delay their input signal as an effect. -""" . - -:ModulatorPlugin a rdfs:Class ; - rdfs:subClassOf :Plugin ; - rdfs:label "Modulator" . - -:PhaserPlugin a rdfs:Class ; - rdfs:subClassOf :ModulatorPlugin ; - rdfs:label "Phaser" . - -:FlangerPlugin a rdfs:Class ; - rdfs:subClassOf :ModulatorPlugin ; - rdfs:label "Flanger" . - -:ChorusPlugin a rdfs:Class ; - rdfs:subClassOf :ModulatorPlugin ; - rdfs:label "Chorus" . - -:ReverbPlugin a rdfs:Class ; - rdfs:subClassOf :Plugin ; - rdfs:subClassOf :SimulatorPlugin ; - rdfs:subClassOf :DelayPlugin ; - rdfs:label "Reverb" . - -:FilterPlugin a rdfs:Class ; - rdfs:subClassOf :Plugin ; - rdfs:label "Filter" . - -:LowpassPlugin a rdfs:Class ; - rdfs:subClassOf :FilterPlugin ; - rdfs:label "Lowpass" . - -:BandpassPlugin a rdfs:Class ; - rdfs:subClassOf :FilterPlugin ; - rdfs:label "Bandpass" . - -:HighpassPlugin a rdfs:Class ; - rdfs:subClassOf :FilterPlugin ; - rdfs:label "Highpass" . - -:CombPlugin a rdfs:Class ; - rdfs:subClassOf :FilterPlugin ; - rdfs:label "Comb" . - -:AllpassPlugin a rdfs:Class ; - rdfs:subClassOf :FilterPlugin ; - rdfs:label "Allpass" . - -:EQPlugin a rdfs:Class ; - rdfs:subClassOf :FilterPlugin ; - rdfs:label "Equaliser" . - -:ParaEQPlugin a rdfs:Class ; - rdfs:subClassOf :EQPlugin ; - rdfs:label "Parametric" . - -:MultiEQPlugin a rdfs:Class ; - rdfs:subClassOf :EQPlugin ; - rdfs:label "Multiband" . - -:PitchPlugin a rdfs:Class ; - rdfs:subClassOf :Plugin ; - rdfs:label "Pitch Shifter" . - -:AmplifierPlugin a rdfs:Class ; - rdfs:subClassOf :Plugin ; - rdfs:label "Amplifier" . - -:WaveshaperPlugin a rdfs:Class ; - rdfs:subClassOf :Plugin ; - rdfs:label "Waveshaper" . - -:DistortionPlugin a rdfs:Class ; - rdfs:subClassOf :Plugin ; - rdfs:label "Distortion" . - -:DynamicsPlugin a rdfs:Class ; - rdfs:subClassOf :Plugin ; - rdfs:label "Dynamics Processor" ; - rdfs:comment """ -Plugins that alter the envelope or dynamic range of the processed audio. -""" . - -:CompressorPlugin a rdfs:Class ; - rdfs:subClassOf :DynamicsPlugin ; - rdfs:label "Compressor" . - -:ExpanderPlugin a rdfs:Class ; - rdfs:subClassOf :DynamicsPlugin ; - rdfs:label "Expander" . - -:LimiterPlugin a rdfs:Class ; - rdfs:subClassOf :DynamicsPlugin ; - rdfs:label "Limiter" . - -:GatePlugin a rdfs:Class ; - rdfs:subClassOf :DynamicsPlugin ; - rdfs:label "Gate" . diff --git a/data/lv2core.lv2/Makefile.am b/data/lv2core.lv2/Makefile.am new file mode 100644 index 0000000..f227629 --- /dev/null +++ b/data/lv2core.lv2/Makefile.am @@ -0,0 +1,4 @@ +EXTRA_DIST = manifest.ttl lv2.ttl + +bundledir = $(libdir)/lv2/lv2core.lv2 +bundle_DATA = manifest.ttl lv2.ttl diff --git a/data/lv2core.lv2/lv2.ttl b/data/lv2core.lv2/lv2.ttl new file mode 100644 index 0000000..c842489 --- /dev/null +++ b/data/lv2core.lv2/lv2.ttl @@ -0,0 +1,616 @@ +# RDF Schema for LV2 plugins +# *** PROVISIONAL Revision 2007-08-03 *** +# +# This document describes the classes and properties that are defined by the +# core LV2 specification. See for more information. +# +# Copyright (C) 2006-2007 Steve Harris, Dave Robillard +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. + +@prefix : . +@prefix rdf: . +@prefix rdfs: . +@prefix xsd: . +@prefix doap: . +@prefix foaf: . + +:Specification a rdfs:Class ; + rdfs:comment """ +An LV2 specification (ie this specification, or an LV2 extension). + +Specification data, like plugins, is distributed in standardized +bundles so hosts may discover all present LV2 data. +See http://lv2plug.in/docs for more details. +""" . + +<> a doap:Project ; + a :Specification ; + doap:license ; + doap:name "LV2" ; + doap:homepage ; + doap:created "2004-04-21" ; + doap:shortdesc "An audio processing plugin specification" ; + doap:programming-language "C" ; + doap:release [ + doap:revision "1.0beta4" ; + doap:created "2007-08-03" + ] ; + doap:maintainer [ + a foaf:Person ; + foaf:name "Steve Harris" ; + foaf:homepage ; + rdfs:seeAlso + ] , [ + a foaf:Person ; + foaf:name "Dave Robillard" ; + foaf:homepage ; + rdfs:seeAlso + ]. + + +################## +## Plugin Class ## +################## + +:Plugin a rdfs:Class ; + rdfs:label "Plugin" ; + rdfs:comment """ +The class which represents an LV2 plugin. + +To be used by a host a Plugin must have at least the following properties: + rdf:type (with object :Plugin) + doap:name (one without language tag) + doap:license + :port + +The doap:name property should be at most a few words in length using title +capitalization, e.g. "Tape Delay Unit". Use doap:shortdesc or +doap:description for more detailed descriptions. +""" . + + + +################## +## Port Classes ## +################## + +:Port a rdfs:Class ; + rdfs:label "Port" ; + rdfs:comment """ +The class which represents an LV2 port. + +In order for it to be used by a host it must have at least +the following properties: + rdf:type (with object one of :Port, :InputPort, :OutputPort) + rdf:type (more specific port class, see below) + :index + :symbol + :name + +All LV2 port descriptions MUST have a property rdf:type where the object +is one of :Port :InputPort or :OutputPort. Additionally there MUST be +at least one other rdf:type property which more specifically describes +type of the port (e.g. :AudioPort). + +Hosts that do not support a specific port class MUST NOT instantiate the +plugin, unless that port has the connectionOptional hint set (in which case +the host can simply "connect" 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). +""" . + +:InputPort a rdfs:Class ; + rdfs:label "Input port" ; + rdfs:subClassOf :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. +""" . + +:OutputPort a rdfs:Class ; + rdfs:label "Output port" ; + rdfs:subClassOf :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. +""" . + +:ControlPort a rdfs:Class ; + rdfs:label "Control port" ; + rdfs:subClassOf :Port ; + rdfs:comment """ +Ports of this type will be connected to a pointer to a single value conforming +to the 32bit IEEE-754 floating point specification. +""" . + +:AudioPort a rdfs:Class ; + rdfs:label "Audio port" ; + rdfs:subClassOf :Port ; + rdfs:comment """ +Ports of this type will be connected to an array of length SampleCount +conforming to the 32bit IEEE-754 floating point specification. +""" . + + + +################################## +# Optional Plugin RDF:Properties # +################################## + +:documentation a rdf:Property ; + rdfs:domain :Plugin ; + rdfs:label "documentation" ; + rdfs:comment "Relates a Plugin to some text/audio/video documentation either online or included with the plugin package" . + + + +################################# +# Mandatory Port RDF:Properties # +################################# + +:index a rdf:Property ; + rdfs:domain :Port ; + rdfs:range xsd:nonNegativeInteger ; + rdfs:label "index" ; + rdfs:comment """ +Specifies the index of the port, passed as an argument to the connect port +function. This number uniqely identifies the port within the plugin. + +The plugin author MUST change the plugin URI if a port index is changed. +""" . + +:symbol a rdf:Property ; + rdfs:label "symbol" ; + rdfs:comment """ +A short name used as a machine and human readable identifier. + +The first character must be one of _, a-z or A-Z and subsequenct characters can +be from _, a-z, A-Z and 0-9. + +A language tag MUST NOT be used on this property. The plugin author MUST change +the plugin URI if a port symbol is changed. +""" . + +:name a rdf:Property ; + rdfs:domain :Port ; + rdfs:label "name" ; + rdfs:comment """ +A display name for labeling the Port in a user interface. + +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. +""" . + + + +################################ +# Optional Port RDF:Properties # +################################ + +:Point a rdfs:Class ; + rdfs:label "Port value point" ; + rdfs:comment """ +Used to describe interesting values in a Port's range. To be valid it requires +two rdf:properties, rdfs:label and rdf:value. + +There are 3 specially defined Points in the LV2 specification (default, +minimum, and maximum), though future extensions may define more. +""" . + +:ScalePoint a rdfs:Class ; + rdfs:subClassOf :Point ; + rdfs:comment "A single :float Point (for control inputs)" . + +:scalePoint a rdf:Property ; + rdfs:domain :Port ; + rdfs:range :ScalePoint ; + rdfs:label "Scale point" ; + rdfs:comment "Relates a Port to its ScalePoints." . + +:default a rdf:Property ; + rdfs:subPropertyOf :scalePoint ; + rdfs:label "Default value" ; + rdfs:comment """ +The default value that the host SHOULD set this port to when there is no other +information available. +""" . + +:minimum a rdf:Property ; + rdfs:subPropertyOf :scalePoint ; + rdfs:label "Minimum value" ; + rdfs:comment """ +A hint to the host for the minimum useful value that the port will use. +This is a "soft" limit - the plugin is required to gracefully accept all +values in the range of :float. +""" . + +:maximum a rdf:Property ; + rdfs:subPropertyOf :scalePoint ; + rdfs:label "Maximum value" ; + rdfs:comment """ +A hint to the host for the maximum useful value that the port will use. +This is a "soft" limit - the plugin is required to gracefully accept all +values in the range of :float. +""" . + + + +################### +## Host Features ## +################### + +:HostFeature a rdfs:Class ; + rdfs:label "Host feature" ; + rdfs:comment "A host feature which a plugin may use (possibly require).". + +:optionalHostFeature a rdf:Property ; + rdfs:domain :Plugin ; + rdfs:range :HostFeature ; + rdfs:label "Optional host feature" ; + rdfs:comment """ +Signifies that a plugin is able to make use of a certain host feature. +The plugin MUST NOT fail to instantiate if an optional host feature is +not present.""" . + +:requiredHostFeature a rdf:Property ; + rdfs:domain :Plugin ; + rdfs:range :HostFeature ; + rdfs:label "Required host feature" ; + rdfs:comment """ +Signifies that a plugin requires a certain host feature to function. +The plugin MUST fail to instantiate if a required host feature is not present; +hosts SHOULD always check this before attempting to instantiate a plugin +(eg discovery by attempting to instantiate is strongly discouraged). +""" . + + + +#################### +## LV2 Properties ## +#################### + +:Property a rdfs:Class ; + rdfs:label "Property" ; + rdfs:comment """ +An LV2 Property. A host MUST NOT ignore the presence of a Property +(eg if it does, something catastrophic will happen and the plugin will not +function). If a piece of information can be ignored by the host and the +plugin can still function correctly, it is NOT a Property, it is a Hint. +""" . + +:PluginProperty a rdfs:Class ; + rdfs:label "Plugin property" ; + rdfs:subClassOf :Property ; + rdfs:comment "Property of a Plugin." . + +:PortProperty a rdfs:Class ; + rdfs:label "Port property" ; + rdfs:subClassOf :Property ; + rdfs:comment "Property of a Port." . + +:pluginProperty a rdf:Property ; + rdfs:domain :Plugin ; + rdfs:range :PluginProperty ; + rdfs:label "Plugin property" ; + rdfs:comment "Relates Plugins to PluginProperties." . + +:portProperty a rdf:Property ; + rdfs:domain :Port ; + rdfs:range :PortProperty ; + rdfs:label "hint" ; + rdfs:comment "Relates Ports to PortProperties." . + + + +############### +## LV2 Hints ## +############### + +:Hint a rdfs:Class ; + rdfs:label "Hint" ; + rdfs:comment """ +An LV2 Hint - a useful piece of information that allows a host to make more +sensible decisions (eg to provide a better interface). Unlike a Property +a Hint may be ignored without catastrophic effects (though this doesn't mean +a Hint is less "important" than a Property, whether or not it can be safely +ignored and have the plugin still function correctly is the sole distinction). +""" . + +:PluginHint a rdfs:Class ; + rdfs:label "Plugin hint" ; + rdfs:subClassOf :Hint ; + rdfs:comment "Hint for a Plugin." . + +:PortHint a rdfs:Class ; + rdfs:label "Port hint" ; + rdfs:subClassOf :Hint ; + rdfs:comment "Hint for a Port." . + +:pluginHint a rdf:Property ; + rdfs:domain :Plugin ; + rdfs:range :PluginHint ; + rdfs:label "Plugin hint" ; + rdfs:comment "Relates Plugins to PluginHints." . + +:portHint a rdf:Property ; + rdfs:domain :Port ; + rdfs:range :PortHint ; + rdfs:label "Port hint" ; + rdfs:comment "Relates Ports to PortHints." . + + + +############################# +# Standard PluginProperties # +############################# + +:isLive a :PluginProperty ; + rdfs:label "Has a live (realtime) dependency" ; + rdfs:comment """ +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. +""" . + +:inPlaceBroken a :PluginProperty ; + rdfs:label "in-place broken" ; + rdfs:comment """ +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 buffer is set to the same location as ANY output +buffer (with connect_port()) MUST set this property. Doing so should be +avoided as enabling this flag makes it impossible for hosts to use the plugin +to process audio "in-place". +""" . + + + +######################## +# Standard PluginHints # +######################## + +:hardRTCapable a :PluginHint ; + rdfs:label "Hard realtime capable" ; + rdfs:comment """ +Indicates that the plugin is capable of running not only in a conventional host +but also in a "hard real-time" environment. To qualify for this the plugin must +satisfy all of the following: + + (1) The plugin must not use malloc(), free() or other heap memory + management within its Audio class functions. All new memory used in + Audio class functions must be managed via the stack. These restrictions + only apply to the Audio class functions. + + (2) The plugin will not attempt to make use of any library + functions in its Audio class functions, with the exceptions of functions + in the ANSI standard C and C maths libraries, which the host is expected to + provide. + + (3) 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. + + (4) The plugin will take an amount of time to execute a run() call + approximately of form (A+B*SampleCount) where A and B depend on the + machine and host in use. This amount of time may not depend on input + signals or plugin state. The host is left the responsibility to perform + timings to estimate upper bounds for A and B. The plugin will also take an + approximately constant amount of time to execute a connect_port() call. +""" . + + + +###################### +# Standard PortHints # +###################### + +:connectionOptional a :PortHint ; + rdfs:label "Optionally connected port" ; + 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. +""" . + +:reportsLatency a :PortHint ; + rdfs:label "Latency reporting port" ; + rdfs:comment """ +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 hint set which informs the host of the "correct" +latency. In "fuzzy" 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). +""". + +:toggled a :PortHint ; + rdfs:label "Toggled" ; + rdfs:comment """ +Indicates that the data item should be considered a Boolean toggle. Data less +than or equal to zero should be considered "off" or "false", and data above +zero should be considered "on" or "true". +""" . + +:sampleRate a :PortHint ; + 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 hint in conjunction with +:minimum 0.0 and :maximum 0.5. Hosts that support bounds at all must support +this hint to retain meaning. +""" . + +:integer a :PortHint ; + 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. +""" . + + + +############################### +# Plugin Categories (Classes) # +############################### + +:UtilityPlugin a rdfs:Class ; + rdfs:subClassOf :Plugin ; + rdfs:label "Utility" ; + rdfs:comment """ +Includes things like mathematical functions and non-musical delays. +""" . + +:GeneratorPlugin a rdfs:Class ; + rdfs:subClassOf :Plugin ; + rdfs:label "Generator" ; + rdfs:comment """ +Any plugin that generates sound internally, rather than processing its input. +""" . + +:InstrumentPlugin a rdfs:Class ; + rdfs:subClassOf :GeneratorPlugin ; + rdfs:label "Instrument" ; + rdfs:comment """ +Any plugin that is intended to be played as a musical instrument. +""" . + +:OscillatorPlugin a rdfs:Class ; + rdfs:subClassOf :GeneratorPlugin ; + rdfs:label "Oscillator" . + +:SimulatorPlugin a rdfs:Class ; + rdfs:subClassOf :Plugin ; + rdfs:label "Simulator" ; + rdfs:comment """ +Plugins that aim to duplicate the effect of some environmental effect or +musical equipment. +""" . + +:DelayPlugin a rdfs:Class ; + rdfs:subClassOf :Plugin ; + rdfs:label "Delay" ; + rdfs:comment """ +Plugins that intentionally delay their input signal as an effect. +""" . + +:ModulatorPlugin a rdfs:Class ; + rdfs:subClassOf :Plugin ; + rdfs:label "Modulator" . + +:PhaserPlugin a rdfs:Class ; + rdfs:subClassOf :ModulatorPlugin ; + rdfs:label "Phaser" . + +:FlangerPlugin a rdfs:Class ; + rdfs:subClassOf :ModulatorPlugin ; + rdfs:label "Flanger" . + +:ChorusPlugin a rdfs:Class ; + rdfs:subClassOf :ModulatorPlugin ; + rdfs:label "Chorus" . + +:ReverbPlugin a rdfs:Class ; + rdfs:subClassOf :Plugin ; + rdfs:subClassOf :SimulatorPlugin ; + rdfs:subClassOf :DelayPlugin ; + rdfs:label "Reverb" . + +:FilterPlugin a rdfs:Class ; + rdfs:subClassOf :Plugin ; + rdfs:label "Filter" . + +:LowpassPlugin a rdfs:Class ; + rdfs:subClassOf :FilterPlugin ; + rdfs:label "Lowpass" . + +:BandpassPlugin a rdfs:Class ; + rdfs:subClassOf :FilterPlugin ; + rdfs:label "Bandpass" . + +:HighpassPlugin a rdfs:Class ; + rdfs:subClassOf :FilterPlugin ; + rdfs:label "Highpass" . + +:CombPlugin a rdfs:Class ; + rdfs:subClassOf :FilterPlugin ; + rdfs:label "Comb" . + +:AllpassPlugin a rdfs:Class ; + rdfs:subClassOf :FilterPlugin ; + rdfs:label "Allpass" . + +:EQPlugin a rdfs:Class ; + rdfs:subClassOf :FilterPlugin ; + rdfs:label "Equaliser" . + +:ParaEQPlugin a rdfs:Class ; + rdfs:subClassOf :EQPlugin ; + rdfs:label "Parametric" . + +:MultiEQPlugin a rdfs:Class ; + rdfs:subClassOf :EQPlugin ; + rdfs:label "Multiband" . + +:PitchPlugin a rdfs:Class ; + rdfs:subClassOf :Plugin ; + rdfs:label "Pitch Shifter" . + +:AmplifierPlugin a rdfs:Class ; + rdfs:subClassOf :Plugin ; + rdfs:label "Amplifier" . + +:WaveshaperPlugin a rdfs:Class ; + rdfs:subClassOf :Plugin ; + rdfs:label "Waveshaper" . + +:DistortionPlugin a rdfs:Class ; + rdfs:subClassOf :Plugin ; + rdfs:label "Distortion" . + +:DynamicsPlugin a rdfs:Class ; + rdfs:subClassOf :Plugin ; + rdfs:label "Dynamics Processor" ; + rdfs:comment """ +Plugins that alter the envelope or dynamic range of the processed audio. +""" . + +:CompressorPlugin a rdfs:Class ; + rdfs:subClassOf :DynamicsPlugin ; + rdfs:label "Compressor" . + +:ExpanderPlugin a rdfs:Class ; + rdfs:subClassOf :DynamicsPlugin ; + rdfs:label "Expander" . + +:LimiterPlugin a rdfs:Class ; + rdfs:subClassOf :DynamicsPlugin ; + rdfs:label "Limiter" . + +:GatePlugin a rdfs:Class ; + rdfs:subClassOf :DynamicsPlugin ; + rdfs:label "Gate" . diff --git a/data/lv2core.lv2/manifest.ttl b/data/lv2core.lv2/manifest.ttl new file mode 100644 index 0000000..fabe17e --- /dev/null +++ b/data/lv2core.lv2/manifest.ttl @@ -0,0 +1,7 @@ +@prefix lv2: . +@prefix rdfs: . + + + a lv2:Specification ; + rdfs:seeAlso . + -- cgit v1.2.1