aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/time
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-07 18:59:32 -0400
committerDavid Robillard <d@drobilla.net>2022-07-17 18:14:00 -0400
commit1eccbe4355685b322194df72b5de2382d5290b3b (patch)
tree0677b5c2f577a5024c351a164527f4bdd91a639b /lv2/time
parentd4a970f6962dda28133290194832b726b566ddab (diff)
downloadlv2-1eccbe4355685b322194df72b5de2382d5290b3b.tar.xz
Rearrange source tree to be directly usable by dependants
This allows the LV2 source distribution to be used as an include path for compilers and an LV2_PATH for applications, at the expense of self-contained bundles. That's a nice idea, but it made LV2 itself weird and annoying to depend on. This rearranges things so that directories in the source tree correspond more closely to installation directories. To make this possible, the "aux" directory in the documentation output has been changed to "style", to avoid the reserved name "aux" on Windows.
Diffstat (limited to 'lv2/time')
-rw-r--r--lv2/time/manifest.ttl9
-rw-r--r--lv2/time/meson.build40
-rw-r--r--lv2/time/time.h59
-rw-r--r--lv2/time/time.meta.ttl112
-rw-r--r--lv2/time/time.ttl122
5 files changed, 0 insertions, 342 deletions
diff --git a/lv2/time/manifest.ttl b/lv2/time/manifest.ttl
deleted file mode 100644
index d80aa75..0000000
--- a/lv2/time/manifest.ttl
+++ /dev/null
@@ -1,9 +0,0 @@
-@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-
-<http://lv2plug.in/ns/ext/time>
- a lv2:Specification ;
- lv2:minorVersion 1 ;
- lv2:microVersion 6 ;
- rdfs:seeAlso <time.ttl> .
-
diff --git a/lv2/time/meson.build b/lv2/time/meson.build
deleted file mode 100644
index 5f47e89..0000000
--- a/lv2/time/meson.build
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 2022 David Robillard <d@drobilla.net>
-# SPDX-License-Identifier: CC0-1.0 OR ISC
-
-name = 'time'
-path = 'ns' / 'ext' / 'time'
-
-time_data = files(
- 'time.meta.ttl',
- 'time.ttl',
- 'manifest.ttl',
-)
-
-headers = files(
- 'time.h',
-)
-
-# Install specification bundle
-install_data(time_data, install_dir: lv2dir / name + '.lv2')
-install_headers(headers, subdir: 'lv2' / name)
-if get_option('old_headers')
- install_headers(headers, subdir: 'lv2' / 'lv2plug.in' / path)
-endif
-
-# Build documentation
-if build_docs
- lv2_time_docs = custom_target(
- name + '.html',
- command: lv2specgen_command_prefix + [
- '--docdir=../../html',
- '--style-uri=../../aux/style.css',
- '@INPUT@',
- '@OUTPUT@',
- ],
- depends: doc_deps,
- input: files('time.ttl'),
- install: true,
- install_dir: lv2_docdir / 'ns' / 'ext',
- output: name + '.html',
- )
-endif
diff --git a/lv2/time/time.h b/lv2/time/time.h
deleted file mode 100644
index 1dce219..0000000
--- a/lv2/time/time.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- Copyright 2011-2016 David Robillard <d@drobilla.net>
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-
-#ifndef LV2_TIME_H
-#define LV2_TIME_H
-
-/**
- @defgroup time Time
- @ingroup lv2
-
- Properties for describing time.
-
- Note the time extension is purely data, this header merely defines URIs for
- convenience.
-
- See <http://lv2plug.in/ns/ext/time> for details.
-
- @{
-*/
-
-// clang-format off
-
-#define LV2_TIME_URI "http://lv2plug.in/ns/ext/time" ///< http://lv2plug.in/ns/ext/time
-#define LV2_TIME_PREFIX LV2_TIME_URI "#" ///< http://lv2plug.in/ns/ext/time#
-
-#define LV2_TIME__Time LV2_TIME_PREFIX "Time" ///< http://lv2plug.in/ns/ext/time#Time
-#define LV2_TIME__Position LV2_TIME_PREFIX "Position" ///< http://lv2plug.in/ns/ext/time#Position
-#define LV2_TIME__Rate LV2_TIME_PREFIX "Rate" ///< http://lv2plug.in/ns/ext/time#Rate
-#define LV2_TIME__position LV2_TIME_PREFIX "position" ///< http://lv2plug.in/ns/ext/time#position
-#define LV2_TIME__barBeat LV2_TIME_PREFIX "barBeat" ///< http://lv2plug.in/ns/ext/time#barBeat
-#define LV2_TIME__bar LV2_TIME_PREFIX "bar" ///< http://lv2plug.in/ns/ext/time#bar
-#define LV2_TIME__beat LV2_TIME_PREFIX "beat" ///< http://lv2plug.in/ns/ext/time#beat
-#define LV2_TIME__beatUnit LV2_TIME_PREFIX "beatUnit" ///< http://lv2plug.in/ns/ext/time#beatUnit
-#define LV2_TIME__beatsPerBar LV2_TIME_PREFIX "beatsPerBar" ///< http://lv2plug.in/ns/ext/time#beatsPerBar
-#define LV2_TIME__beatsPerMinute LV2_TIME_PREFIX "beatsPerMinute" ///< http://lv2plug.in/ns/ext/time#beatsPerMinute
-#define LV2_TIME__frame LV2_TIME_PREFIX "frame" ///< http://lv2plug.in/ns/ext/time#frame
-#define LV2_TIME__framesPerSecond LV2_TIME_PREFIX "framesPerSecond" ///< http://lv2plug.in/ns/ext/time#framesPerSecond
-#define LV2_TIME__speed LV2_TIME_PREFIX "speed" ///< http://lv2plug.in/ns/ext/time#speed
-
-// clang-format on
-
-/**
- @}
-*/
-
-#endif /* LV2_TIME_H */
diff --git a/lv2/time/time.meta.ttl b/lv2/time/time.meta.ttl
deleted file mode 100644
index 2b99cb7..0000000
--- a/lv2/time/time.meta.ttl
+++ /dev/null
@@ -1,112 +0,0 @@
-@prefix dcs: <http://ontologi.es/doap-changeset#> .
-@prefix doap: <http://usefulinc.com/ns/doap#> .
-@prefix foaf: <http://xmlns.com/foaf/0.1/> .
-@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-@prefix time: <http://lv2plug.in/ns/ext/time#> .
-
-<http://lv2plug.in/ns/ext/time>
- a doap:Project ;
- doap:name "LV2 Time" ;
- doap:shortdesc "A vocabulary for describing musical time." ;
- doap:created "2011-10-05" ;
- doap:developer <http://drobilla.net/drobilla#me> ;
- doap:release [
- doap:revision "1.6" ;
- doap:created "2019-02-03" ;
- doap:file-release <http://lv2plug.in/spec/lv2-1.16.0.tar.bz2> ;
- dcs:blame <http://drobilla.net/drobilla#me> ;
- dcs:changeset [
- dcs:item [
- rdfs:label "Clarify time:beat origin."
- ]
- ]
- ] , [
- doap:revision "1.4" ;
- doap:created "2016-07-31" ;
- 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 "Define LV2_TIME_PREFIX."
- ]
- ]
- ] , [
- doap:revision "1.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 "1.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 "Initial release."
- ]
- ]
- ] ;
- lv2:documentation """
-
-This is a vocabulary for describing a position in time and the speed of time
-passage, in both real and musical terms.
-
-In addition to real time (based on seconds), two units of time are used:
-_frames_ and _beats_. A frame is a numbered quantum of time. Frame time is
-related to real-time by the _frame rate_ or _sample rate_,
-time:framesPerSecond. A beat is a single pulse of musical time. Beat time is
-related to real-time by the _tempo_, time:beatsPerMinute.
-
-Musical time additionally has a _meter_ which describes passage of time in
-terms of musical _bars_. A bar is a higher level grouping of beats. The meter
-describes how many beats are in one bar.
-
-"""^^lv2:Markdown .
-
-time:Position
- lv2:documentation """
-
-A point in time and/or the speed at which time is passing. A position is both
-a point and a speed, which precisely defines a time within a timeline.
-
-"""^^lv2:Markdown .
-
-time:Rate
- lv2:documentation """
-
-The rate of passage of time in terms of one unit with respect to another.
-
-"""^^lv2:Markdown .
-
-time:beat
- lv2:documentation """
-
-This is not the beat within a bar like time:barBeat, but relative to the same
-origin as time:bar and monotonically increases unless the transport is
-repositioned.
-
-"""^^lv2:Markdown .
-
-time:beatUnit
- lv2:documentation """
-
-Beat unit, the note value that counts as one beat. This is the bottom number
-in a time signature: 2 for half note, 4 for quarter note, and so on.
-
-"""^^lv2:Markdown .
-
-time:speed
- lv2:documentation """
-
-The rate of the progress of time as a fraction of normal speed. For example, a
-rate of 0.0 is stopped, 1.0 is rolling at normal speed, 0.5 is rolling at half
-speed, -1.0 is reverse, and so on.
-
-"""^^lv2:Markdown .
-
diff --git a/lv2/time/time.ttl b/lv2/time/time.ttl
deleted file mode 100644
index a4085c6..0000000
--- a/lv2/time/time.ttl
+++ /dev/null
@@ -1,122 +0,0 @@
-@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 time: <http://lv2plug.in/ns/ext/time#> .
-@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
-
-<http://lv2plug.in/ns/ext/time>
- a owl:Ontology ;
- rdfs:label "LV2 Time" ;
- rdfs:comment "A vocabulary for describing musical time." ;
- rdfs:seeAlso <time.h> ,
- <time.meta.ttl> .
-
-time:Time
- a rdfs:Class ,
- owl:Class ;
- rdfs:subClassOf time:Position ;
- rdfs:label "Time" ;
- rdfs:comment "A point in time in some unit/dimension." .
-
-time:Position
- a rdfs:Class ,
- owl:Class ;
- rdfs:label "Position" ;
- rdfs:comment "A point in time and/or the speed at which time is passing." .
-
-time:Rate
- a rdfs:Class ,
- owl:Class ;
- rdfs:subClassOf time:Position ;
- rdfs:label "Rate" ;
- rdfs:comment "The rate of passage of time." .
-
-time:position
- a rdf:Property ,
- owl:ObjectProperty ,
- owl:FunctionalProperty ;
- rdfs:range time:Position ;
- rdfs:label "position" ;
- rdfs:comment "A musical position." .
-
-time:barBeat
- a rdf:Property ,
- owl:DatatypeProperty ,
- owl:FunctionalProperty ;
- rdfs:domain time:Time ;
- rdfs:range xsd:float ;
- rdfs:label "beat within bar" ;
- rdfs:comment "The beat number within the bar, from 0 to time:beatsPerBar." .
-
-time:bar
- a rdf:Property ,
- owl:DatatypeProperty ,
- owl:FunctionalProperty ;
- rdfs:domain time:Time ;
- rdfs:range xsd:long ;
- rdfs:label "bar" ;
- rdfs:comment "A musical bar or measure." .
-
-time:beat
- a rdf:Property ,
- owl:DatatypeProperty ,
- owl:FunctionalProperty ;
- rdfs:domain time:Time ;
- rdfs:range xsd:double ;
- rdfs:label "beat" ;
- rdfs:comment "The global running beat number." .
-
-time:beatUnit
- a rdf:Property ,
- owl:DatatypeProperty ,
- owl:FunctionalProperty ;
- rdfs:domain time:Rate ;
- rdfs:range xsd:nonNegativeInteger ;
- rdfs:label "beat unit" ;
- rdfs:comment "The note value that counts as one beat." .
-
-time:beatsPerBar
- a rdf:Property ,
- owl:DatatypeProperty ,
- owl:FunctionalProperty ;
- rdfs:domain time:Rate ;
- rdfs:range xsd:float ;
- rdfs:label "beats per bar" ;
- rdfs:comment "The number of beats in one bar." .
-
-time:beatsPerMinute
- a rdf:Property ,
- owl:DatatypeProperty ,
- owl:FunctionalProperty ;
- rdfs:domain time:Rate ;
- rdfs:range xsd:float ;
- rdfs:label "beats per minute" ;
- rdfs:comment "Tempo in beats per minute." .
-
-time:frame
- a rdf:Property ,
- owl:DatatypeProperty ,
- owl:FunctionalProperty ;
- rdfs:domain time:Time ;
- rdfs:range xsd:long ;
- rdfs:label "frame" ;
- rdfs:comment "A time stamp in audio frames." .
-
-time:framesPerSecond
- a rdf:Property ,
- owl:DatatypeProperty ,
- owl:FunctionalProperty ;
- rdfs:domain time:Rate ;
- rdfs:range xsd:float ;
- rdfs:label "frames per second" ;
- rdfs:comment "Frame rate in frames per second." .
-
-time:speed
- a rdf:Property ,
- owl:DatatypeProperty ,
- owl:FunctionalProperty ;
- rdfs:domain time:Rate ;
- rdfs:range xsd:float ;
- rdfs:label "speed" ;
- rdfs:comment "The rate of the progress of time as a fraction of normal speed." .
-