~hp/orbit.lv2

d62b58d6e33129506181b3a3e97389f90e8989b1 — Hanspeter Portner 3 months ago f8512dc
Migrate to new project layaout
23 files changed, 417 insertions(+), 668 deletions(-)

A .gitignore
D .gitlab-ci.yml
D .travis.yml
D COPYING
A LICENSES/Artistic-2.0.txt
A LICENSES/CC0-1.0.txt
M README.md
D VERSION
D gitlab-ci/generic.yml
M meson.build
A meson_options.txt
R orbit.h => orbit.lv2/orbit.h
R orbit.c => src/orbit.c
R orbit_beatbox.c => src/orbit_beatbox.c
R orbit_click.c => src/orbit_click.c
R orbit_looper.c => src/orbit_looper.c
R orbit_monitor.c => src/orbit_monitor.c
R orbit_pacemaker.c => src/orbit_pacemaker.c
R orbit_quantum.c => src/orbit_quantum.c
R orbit_subspace.c => src/orbit_subspace.c
R orbit_timecapsule.c => src/orbit_timecapsule.c
R manifest.ttl.in => ttl/manifest.ttl.in
R orbit.ttl => ttl/orbit.ttl
A .gitignore => .gitignore +5 -0
@@ 0,0 1,5 @@
# SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
# SPDX-License-Identifier: CC0-1.0

tags
*.taghl

D .gitlab-ci.yml => .gitlab-ci.yml +0 -2
@@ 1,2 0,0 @@
include:
  - local: 'gitlab-ci/generic.yml'

D .travis.yml => .travis.yml +0 -21
@@ 1,21 0,0 @@
language: c
os: linux
compiler:
 - gcc
 - clang
before_install:
 - wget http://lv2plug.in/spec/lv2-1.12.0.tar.bz2
 - tar xjf lv2-1.12.0.tar.bz2
 - if [ "$CC" = "clang" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm-upper; fi
 - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
 - sudo apt-get -q update
install:
 - if [ "$CC" = "clang" ]; then sudo apt-get install -y clang-3.6 libstdc++-5-dev; fi
 - if [ "$CC" = "gcc" ]; then sudo apt-get install -y gcc-5 g++-5; fi
 - pushd lv2-1.12.0 && ./waf configure --prefix=/usr && ./waf build && sudo ./waf install && popd
before_script:
 - if [ "$CC" = "clang" ]; then export CXX="clang++-3.6" CC="clang-3.6" CFLAGS="-ffreestanding"; fi
 - if [ "$CC" = "gcc" ]; then export CXX="g++-5" CC="gcc-5"; fi
 - mkdir build && pushd build && cmake .. && popd
script:
 - pushd build && make && sudo make install && popd

D COPYING => COPYING +0 -201
@@ 1,201 0,0 @@
		       The Artistic License 2.0

	    Copyright (c) 2000-2006, The Perl Foundation.

     Everyone is permitted to copy and distribute verbatim copies
      of this license document, but changing it is not allowed.

Preamble

This license establishes the terms under which a given free software
Package may be copied, modified, distributed, and/or redistributed.
The intent is that the Copyright Holder maintains some artistic
control over the development of that Package while still keeping the
Package available as open source and free software.

You are always permitted to make arrangements wholly outside of this
license directly with the Copyright Holder of a given Package.  If the
terms of this license do not permit the full use that you propose to
make of the Package, you should contact the Copyright Holder and seek
a different licensing arrangement. 

Definitions

    "Copyright Holder" means the individual(s) or organization(s)
    named in the copyright notice for the entire Package.

    "Contributor" means any party that has contributed code or other
    material to the Package, in accordance with the Copyright Holder's
    procedures.

    "You" and "your" means any person who would like to copy,
    distribute, or modify the Package.

    "Package" means the collection of files distributed by the
    Copyright Holder, and derivatives of that collection and/or of
    those files. A given Package may consist of either the Standard
    Version, or a Modified Version.

    "Distribute" means providing a copy of the Package or making it
    accessible to anyone else, or in the case of a company or
    organization, to others outside of your company or organization.

    "Distributor Fee" means any fee that you charge for Distributing
    this Package or providing support for this Package to another
    party.  It does not mean licensing fees.

    "Standard Version" refers to the Package if it has not been
    modified, or has been modified only in ways explicitly requested
    by the Copyright Holder.

    "Modified Version" means the Package, if it has been changed, and
    such changes were not explicitly requested by the Copyright
    Holder. 

    "Original License" means this Artistic License as Distributed with
    the Standard Version of the Package, in its current version or as
    it may be modified by The Perl Foundation in the future.

    "Source" form means the source code, documentation source, and
    configuration files for the Package.

    "Compiled" form means the compiled bytecode, object code, binary,
    or any other form resulting from mechanical transformation or
    translation of the Source form.


Permission for Use and Modification Without Distribution

(1)  You are permitted to use the Standard Version and create and use
Modified Versions for any purpose without restriction, provided that
you do not Distribute the Modified Version.


Permissions for Redistribution of the Standard Version

(2)  You may Distribute verbatim copies of the Source form of the
Standard Version of this Package in any medium without restriction,
either gratis or for a Distributor Fee, provided that you duplicate
all of the original copyright notices and associated disclaimers.  At
your discretion, such verbatim copies may or may not include a
Compiled form of the Package.

(3)  You may apply any bug fixes, portability changes, and other
modifications made available from the Copyright Holder.  The resulting
Package will still be considered the Standard Version, and as such
will be subject to the Original License.


Distribution of Modified Versions of the Package as Source 

(4)  You may Distribute your Modified Version as Source (either gratis
or for a Distributor Fee, and with or without a Compiled form of the
Modified Version) provided that you clearly document how it differs
from the Standard Version, including, but not limited to, documenting
any non-standard features, executables, or modules, and provided that
you do at least ONE of the following:

    (a)  make the Modified Version available to the Copyright Holder
    of the Standard Version, under the Original License, so that the
    Copyright Holder may include your modifications in the Standard
    Version.

    (b)  ensure that installation of your Modified Version does not
    prevent the user installing or running the Standard Version. In
    addition, the Modified Version must bear a name that is different
    from the name of the Standard Version.

    (c)  allow anyone who receives a copy of the Modified Version to
    make the Source form of the Modified Version available to others
    under
		
	(i)  the Original License or

	(ii)  a license that permits the licensee to freely copy,
	modify and redistribute the Modified Version using the same
	licensing terms that apply to the copy that the licensee
	received, and requires that the Source form of the Modified
	Version, and of any works derived from it, be made freely
	available in that license fees are prohibited but Distributor
	Fees are allowed.


Distribution of Compiled Forms of the Standard Version 
or Modified Versions without the Source

(5)  You may Distribute Compiled forms of the Standard Version without
the Source, provided that you include complete instructions on how to
get the Source of the Standard Version.  Such instructions must be
valid at the time of your distribution.  If these instructions, at any
time while you are carrying out such distribution, become invalid, you
must provide new instructions on demand or cease further distribution.
If you provide valid instructions or cease distribution within thirty
days after you become aware that the instructions are invalid, then
you do not forfeit any of your rights under this license.

(6)  You may Distribute a Modified Version in Compiled form without
the Source, provided that you comply with Section 4 with respect to
the Source of the Modified Version.


Aggregating or Linking the Package 

(7)  You may aggregate the Package (either the Standard Version or
Modified Version) with other packages and Distribute the resulting
aggregation provided that you do not charge a licensing fee for the
Package.  Distributor Fees are permitted, and licensing fees for other
components in the aggregation are permitted. The terms of this license
apply to the use and Distribution of the Standard or Modified Versions
as included in the aggregation.

(8) You are permitted to link Modified and Standard Versions with
other works, to embed the Package in a larger work of your own, or to
build stand-alone binary or bytecode versions of applications that
include the Package, and Distribute the result without restriction,
provided the result does not expose a direct interface to the Package.


Items That are Not Considered Part of a Modified Version 

(9) Works (including, but not limited to, modules and scripts) that
merely extend or make use of the Package, do not, by themselves, cause
the Package to be a Modified Version.  In addition, such works are not
considered parts of the Package itself, and are not subject to the
terms of this license.


General Provisions

(10)  Any use, modification, and distribution of the Standard or
Modified Versions is governed by this Artistic License. By using,
modifying or distributing the Package, you accept this license. Do not
use, modify, or distribute the Package, if you do not accept this
license.

(11)  If your Modified Version has been derived from a Modified
Version made by someone other than you, you are nevertheless required
to ensure that your Modified Version complies with the requirements of
this license.

(12)  This license does not grant you the right to use any trademark,
service mark, tradename, or logo of the Copyright Holder.

(13)  This license includes the non-exclusive, worldwide,
free-of-charge patent license to make, have made, use, offer to sell,
sell, import and otherwise transfer the Package with respect to any
patent claims licensable by the Copyright Holder that are necessarily
infringed by the Package. If you institute patent litigation
(including a cross-claim or counterclaim) against any party alleging
that the Package constitutes direct or contributory patent
infringement, then this Artistic License to you shall terminate on the
date that such litigation is filed.

(14)  Disclaimer of Warranty:
THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS
IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL
LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

A LICENSES/Artistic-2.0.txt => LICENSES/Artistic-2.0.txt +85 -0
@@ 0,0 1,85 @@
The Artistic License 2.0

Copyright (c) 2000-2006, The Perl Foundation.

Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

Preamble

This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is that the Copyright Holder maintains some artistic control over the development of that Package while still keeping the Package available as open source and free software.

You are always permitted to make arrangements wholly outside of this license directly with the Copyright Holder of a given Package.  If the terms of this license do not permit the full use that you propose to make of the Package, you should contact the Copyright Holder and seek a different licensing arrangement.

Definitions

     "Copyright Holder" means the individual(s) or organization(s) named in the copyright notice for the entire Package.

     "Contributor" means any party that has contributed code or other material to the Package, in accordance with the Copyright Holder's procedures.

     "You" and "your" means any person who would like to copy, distribute, or modify the Package.

     "Package" means the collection of files distributed by the Copyright Holder, and derivatives of that collection and/or of those files. A given Package may consist of either the Standard Version, or a Modified Version.

     "Distribute" means providing a copy of the Package or making it accessible to anyone else, or in the case of a company or organization, to others outside of your company or organization.

     "Distributor Fee" means any fee that you charge for Distributing this Package or providing support for this Package to another party.  It does not mean licensing fees.

     "Standard Version" refers to the Package if it has not been modified, or has been modified only in ways explicitly requested by the Copyright Holder.

     "Modified Version" means the Package, if it has been changed, and such changes were not explicitly requested by the Copyright Holder.

     "Original License" means this Artistic License as Distributed with the Standard Version of the Package, in its current version or as it may be modified by The Perl Foundation in the future.

     "Source" form means the source code, documentation source, and configuration files for the Package.

     "Compiled" form means the compiled bytecode, object code, binary, or any other form resulting from mechanical transformation or translation of the Source form.

Permission for Use and Modification Without Distribution

(1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version.

Permissions for Redistribution of the Standard Version

(2) You may Distribute verbatim copies of the Source form of the Standard Version of this Package in any medium without restriction, either gratis or for a Distributor Fee, provided that you duplicate all of the original copyright notices and associated disclaimers.  At your discretion, such verbatim copies may or may not include a Compiled form of the Package.

(3) You may apply any bug fixes, portability changes, and other modifications made available from the Copyright Holder.  The resulting Package will still be considered the Standard Version, and as such will be subject to the Original License.

Distribution of Modified Versions of the Package as Source

(4) You may Distribute your Modified Version as Source (either gratis or for a Distributor Fee, and with or without a Compiled form of the Modified Version) provided that you clearly document how it differs from the Standard Version, including, but not limited to, documenting any non-standard features, executables, or modules, and provided that you do at least ONE of the following:

     (a) make the Modified Version available to the Copyright Holder of the Standard Version, under the Original License, so that the Copyright Holder may include your modifications in the Standard Version.
     (b) ensure that installation of your Modified Version does not prevent the user installing or running the Standard Version. In addition, the Modified Version must bear a name that is different from the name of the Standard Version.
     (c) allow anyone who receives a copy of the Modified Version to make the Source form of the Modified Version available to others under

          (i) the Original License or
          (ii) a license that permits the licensee to freely copy, modify and redistribute the Modified Version using the same licensing terms that apply to the copy that the licensee received, and requires that the Source form of the Modified Version, and of any works derived from it, be made freely available in that license fees are prohibited but Distributor Fees are allowed.

Distribution of Compiled Forms of the Standard Version or Modified Versions without the Source

(5)  You may Distribute Compiled forms of the Standard Version without the Source, provided that you include complete instructions on how to get the Source of the Standard Version.  Such instructions must be valid at the time of your distribution.  If these instructions, at any time while you are carrying out such distribution, become invalid, you must provide new instructions on demand or cease further distribution. If you provide valid instructions or cease distribution within thirty days after you become aware that the instructions are invalid, then you do not forfeit any of your rights under this license.

(6)  You may Distribute a Modified Version in Compiled form without the Source, provided that you comply with Section 4 with respect to the Source of the Modified Version.

Aggregating or Linking the Package

(7)  You may aggregate the Package (either the Standard Version or Modified Version) with other packages and Distribute the resulting aggregation provided that you do not charge a licensing fee for the Package.  Distributor Fees are permitted, and licensing fees for other components in the aggregation are permitted. The terms of this license apply to the use and Distribution of the Standard or Modified Versions as included in the aggregation.

(8) You are permitted to link Modified and Standard Versions with other works, to embed the Package in a larger work of your own, or to build stand-alone binary or bytecode versions of applications that include the Package, and Distribute the result without restriction, provided the result does not expose a direct interface to the Package.

Items That are Not Considered Part of a Modified Version

(9) Works (including, but not limited to, modules and scripts) that merely extend or make use of the Package, do not, by themselves, cause the Package to be a Modified Version.  In addition, such works are not considered parts of the Package itself, and are not subject to the terms of this license.

General Provisions

(10)  Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license.

(11)  If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license.

(12)  This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder.

(13)  This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed.

(14)  Disclaimer of Warranty:
THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

A LICENSES/CC0-1.0.txt => LICENSES/CC0-1.0.txt +121 -0
@@ 0,0 1,121 @@
Creative Commons Legal Code

CC0 1.0 Universal

    CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
    LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
    ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
    INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
    REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
    PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
    THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
    HEREUNDER.

Statement of Purpose

The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator
and subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").

Certain owners wish to permanently relinquish those rights to a Work for
the purpose of contributing to a commons of creative, cultural and
scientific works ("Commons") that the public can reliably and without fear
of later claims of infringement build upon, modify, incorporate in other
works, reuse and redistribute as freely as possible in any form whatsoever
and for any purposes, including without limitation commercial purposes.
These owners may contribute to the Commons to promote the ideal of a free
culture and the further production of creative, cultural and scientific
works, or to gain reputation or greater distribution for their Work in
part through the use and efforts of others.

For these and/or other purposes and motivations, and without any
expectation of additional consideration or compensation, the person
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
is an owner of Copyright and Related Rights in the Work, voluntarily
elects to apply CC0 to the Work and publicly distribute the Work under its
terms, with knowledge of his or her Copyright and Related Rights in the
Work and the meaning and intended legal effect of CC0 on those rights.

1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not
limited to, the following:

  i. the right to reproduce, adapt, distribute, perform, display,
     communicate, and translate a Work;
 ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or
     likeness depicted in a Work;
 iv. rights protecting against unfair competition in regards to a Work,
     subject to the limitations in paragraph 4(a), below;
  v. rights protecting the extraction, dissemination, use and reuse of data
     in a Work;
 vi. database rights (such as those arising under Directive 96/9/EC of the
     European Parliament and of the Council of 11 March 1996 on the legal
     protection of databases, and under any national implementation
     thereof, including any amended or successor version of such
     directive); and
vii. other similar, equivalent or corresponding rights throughout the
     world based on applicable law or treaty, and any national
     implementations thereof.

2. Waiver. To the greatest extent permitted by, but not in contravention
of, applicable law, Affirmer hereby overtly, fully, permanently,
irrevocably and unconditionally waives, abandons, and surrenders all of
Affirmer's Copyright and Related Rights and associated claims and causes
of action, whether now known or unknown (including existing as well as
future claims and causes of action), in the Work (i) in all territories
worldwide, (ii) for the maximum duration provided by applicable law or
treaty (including future time extensions), (iii) in any current or future
medium and for any number of copies, and (iv) for any purpose whatsoever,
including without limitation commercial, advertising or promotional
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
member of the public at large and to the detriment of Affirmer's heirs and
successors, fully intending that such Waiver shall not be subject to
revocation, rescission, cancellation, termination, or any other legal or
equitable action to disrupt the quiet enjoyment of the Work by the public
as contemplated by Affirmer's express Statement of Purpose.

3. Public License Fallback. Should any part of the Waiver for any reason
be judged legally invalid or ineffective under applicable law, then the
Waiver shall be preserved to the maximum extent permitted taking into
account Affirmer's express Statement of Purpose. In addition, to the
extent the Waiver is so judged Affirmer hereby grants to each affected
person a royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer's Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future
time extensions), (iii) in any current or future medium and for any number
of copies, and (iv) for any purpose whatsoever, including without
limitation commercial, advertising or promotional purposes (the
"License"). The License shall be deemed effective as of the date CC0 was
applied by Affirmer to the Work. Should any part of the License for any
reason be judged legally invalid or ineffective under applicable law, such
partial invalidity or ineffectiveness shall not invalidate the remainder
of the License, and in such case Affirmer hereby affirms that he or she
will not (i) exercise any of his or her remaining Copyright and Related
Rights in the Work or (ii) assert any associated claims and causes of
action with respect to the Work, in either case contrary to Affirmer's
express Statement of Purpose.

4. Limitations and Disclaimers.

 a. No trademark or patent rights held by Affirmer are waived, abandoned,
    surrendered, licensed or otherwise affected by this document.
 b. Affirmer offers the Work as-is and makes no representations or
    warranties of any kind concerning the Work, express, implied,
    statutory or otherwise, including without limitation warranties of
    title, merchantability, fitness for a particular purpose, non
    infringement, or the absence of latent or other defects, accuracy, or
    the present or absence of errors, whether or not discoverable, all to
    the greatest extent permissible under applicable law.
 c. Affirmer disclaims responsibility for clearing rights of other persons
    that may apply to the Work or any use thereof, including without
    limitation any person's Copyright and Related Rights in the Work.
    Further, Affirmer disclaims responsibility for obtaining any necessary
    consents, permissions or other rights required for any use of the
    Work.
 d. Affirmer understands and acknowledges that Creative Commons is not a
    party to this document and has no duty or obligation with respect to
    this CC0 or use of the Work.

M README.md => README.md +4 -0
@@ 1,3 1,7 @@
<!--
  -- SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
  -- SPDX-License-Identifier: CC0-1.0
  -->
## Orbit

### An LV2 time event manipulation plugin bundle

D VERSION => VERSION +0 -1
@@ 1,1 0,0 @@
0.1.679

D gitlab-ci/generic.yml => gitlab-ci/generic.yml +0 -106
@@ 1,106 0,0 @@
stages:
  - build
  - deploy

variables:
  PKG_CONFIG_PATH: "/opt/lv2/lib/pkgconfig:/opt/${CI_BUILD_NAME}/lib/pkgconfig:/usr/lib/${CI_BUILD_NAME}/pkgconfig"
  BUILD_OPTS : ""

.native_template: &native_definition
  stage: build
  script:
    - meson --prefix="${CI_PROJECT_DIR}/${CI_PROJECT_NAME}-$(cat VERSION)/${CI_BUILD_NAME}" -Dlv2libdir="" --cross-file "${CI_BUILD_NAME}" ${BUILD_OPTS} build
    - ninja -C build
    - ninja -C build test
    - ninja -C build install

    - scan-build --status-bugs meson --prefix="${CI_PROJECT_DIR}/${CI_PROJECT_NAME}-$(cat VERSION)/${CI_BUILD_NAME}" -Dlv2libdir="" --cross-file "${CI_BUILD_NAME}" ${BUILD_OPTS} scanbuild 
    - scan-build --status-bugs ninja -C scanbuild
    - scan-build --status-bugs ninja -C scanbuild test
  artifacts:
    name: "${CI_PROJECT_NAME}-$(cat VERSION)-${CI_BUILD_NAME}"
    paths:
      - "${CI_PROJECT_NAME}-$(cat VERSION)/${CI_BUILD_NAME}/"

.cross_template: &cross_definition
  stage: build
  script:
    - meson --prefix="${CI_PROJECT_DIR}/${CI_PROJECT_NAME}-$(cat VERSION)/${CI_BUILD_NAME}" -Dlv2libdir="" --cross-file "${CI_BUILD_NAME}" ${BUILD_OPTS} build
    - ninja -C build
    - ninja -C build test
    - ninja -C build install
  artifacts:
    name: "${CI_PROJECT_NAME}-$(cat VERSION)-${CI_BUILD_NAME}"
    paths:
      - "${CI_PROJECT_NAME}-$(cat VERSION)/${CI_BUILD_NAME}/"

# build
.universal_linux_template_stretch: &universal_linux_definition_stretch
  image: ventosus/universal-linux-gnu:stretch
  <<: *cross_definition

.universal_linux_template_buster: &universal_linux_definition_buster
  image: ventosus/universal-linux-gnu:buster
  <<: *native_definition

.universal_linux_template_bullseye: &universal_linux_definition_bullseye
  image: ventosus/universal-linux-gnu:bullseye
  <<: *native_definition

.arm_linux_template_stretch: &arm_linux_definition_stretch
  image: ventosus/arm-linux-gnueabihf:stretch
  <<: *cross_definition

.arm_linux_template_buster: &arm_linux_definition_buster
  image: ventosus/arm-linux-gnueabihf:buster
  <<: *cross_definition

.arm_linux_template_bullseye: &arm_linux_definition_bullseye
  image: ventosus/arm-linux-gnueabihf:bullseye
  <<: *cross_definition

# build
x86_64-linux-gnu-stretch:
  <<: *universal_linux_definition_stretch

x86_64-linux-gnu-buster:
  <<: *universal_linux_definition_buster

x86_64-linux-gnu-bullseye:
  <<: *universal_linux_definition_bullseye

i686-linux-gnu-stretch:
  <<: *universal_linux_definition_stretch

i686-linux-gnu-buster:
  <<: *universal_linux_definition_buster

i686-linux-gnu-bullseye:
  <<: *universal_linux_definition_bullseye

arm-linux-gnueabihf-stretch:
  <<: *arm_linux_definition_stretch

arm-linux-gnueabihf-buster:
  <<: *arm_linux_definition_buster

arm-linux-gnueabihf-bullseye:
  <<: *arm_linux_definition_bullseye

aarch64-linux-gnu-stretch:
  <<: *arm_linux_definition_stretch

aarch64-linux-gnu-buster:
  <<: *arm_linux_definition_buster

aarch64-linux-gnu-bullseye:
  <<: *arm_linux_definition_bullseye

pack:
  stage: deploy
  script:
    - echo 'packing up'
  artifacts:
    name: "${CI_PROJECT_NAME}-$(cat VERSION)"
    paths:
      - "${CI_PROJECT_NAME}-$(cat VERSION)/"

M meson.build => meson.build +84 -70
@@ 1,10 1,26 @@
# SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
# SPDX-License-Identifier: CC0-1.0

project('orbit.lv2', 'c', default_options : [
	'buildtype=release',
	'warning_level=1',
	'warning_level=3',
	'werror=false',
	'b_lto=false',
	'c_std=c11'])

	'b_lto=true',
	'c_std=gnu11'])

varchunk = subproject('varchunk')
netatom_lv2 = subproject('netatom.lv2')
props_lv2 = subproject('props.lv2')
timely_lv2 = subproject('timely.lv2')
lv2libdir = get_option('lv2libdir')
build_tests = get_option('build-tests')

inst_dir = join_paths(lv2libdir, meson.project_name())

varchunk_dep = varchunk.get_variable('varchunk')
netatom_lv2_dep = netatom_lv2.get_variable('netatom_lv2')
props_lv2_dep = props_lv2.get_variable('props_lv2')
timely_lv2_dep = timely_lv2.get_variable('timely_lv2')
source_root = meson.source_root()
build_root = meson.build_root()



@@ 13,89 29,87 @@ add_project_arguments('-D_GNU_SOURCE', language : 'c')
conf_data = configuration_data()
cc = meson.get_compiler('c')

cp = find_program('cp')
lv2_validate = find_program('lv2_validate', native : true, required : false)
sord_validate = find_program('sord_validate', native : true, required : false)
lv2lint = find_program('lv2lint', required : false)
clone = [cp, '@INPUT@', '@OUTPUT@']

reuse = find_program('reuse', required : false)
m_dep = cc.find_library('m')
lv2_dep = dependency('lv2', version : '>=1.14.0')
zlib_dep = dependency('zlib', version : '>=1.2.0',
	static : meson.is_cross_build() and false) #FIXME
dsp_deps = [m_dep, lv2_dep, zlib_dep]

props_inc = include_directories('props.lv2')
netatom_inc = include_directories('netatom.lv2')
timely_inc = include_directories('timely.lv2')
varchunk_inc = include_directories('varchunk')
inc_dir = [props_inc, netatom_inc, timely_inc, varchunk_inc]

inst_dir = join_paths(get_option('libdir'), 'lv2', meson.project_name())

dsp_srcs = ['orbit.c',
	'orbit_beatbox.c',
	'orbit_click.c',
	'orbit_looper.c',
	'orbit_pacemaker.c',
	'orbit_quantum.c',
	'orbit_subspace.c',
	'orbit_monitor.c',
	'orbit_timecapsule.c']

c_args = ['-fvisibility=hidden',
	'-ffast-math',
	'-Wno-unused-variable']

if host_machine.system() == 'windows'
	dsp_deps += cc.find_library('ws2_32')
elif host_machine.system() == 'darwin'
	# nothing
else
	# nothing
endif
lv2_dep = dependency('lv2', version : '>=1.16.0')
zlib_dep = dependency('zlib', version : '>=1.2.0')

dsp_deps = [m_dep, lv2_dep, varchunk_dep, netatom_lv2_dep, props_lv2_dep, timely_lv2_dep, zlib_dep]


dsp_srcs = [
  join_paths('src', 'orbit.c'),
  join_paths('src', 'orbit_beatbox.c'),
  join_paths('src', 'orbit_click.c'),
  join_paths('src', 'orbit_looper.c'),
  join_paths('src', 'orbit_pacemaker.c'),
  join_paths('src', 'orbit_quantum.c'),
  join_paths('src', 'orbit_subspace.c'),
  join_paths('src', 'orbit_monitor.c'),
  join_paths('src', 'orbit_timecapsule.c')
]

c_args = [
  '-fvisibility=hidden'
]

version = get_option('version').split('.')
add_project_arguments('-DORBIT_VERSION="'
	+ version[0] + '.' + version[1] + '.' + version[2] + '"', language : 'c')
conf_data.set('MAJOR_VERSION', version[0])
conf_data.set('MINOR_VERSION', version[1])
conf_data.set('MICRO_VERSION', version[2])

mod = shared_module('orbit', dsp_srcs,
	c_args : c_args,
	include_directories : inc_dir,
	name_prefix : '',
	dependencies : dsp_deps,
	install : true,
	install_dir : inst_dir)

version = run_command('cat', 'VERSION').stdout().strip().split('.')
conf_data.set('MAJOR_VERSION', version[0])
conf_data.set('MINOR_VERSION', version[1])
conf_data.set('MICRO_VERSION', version[2])

suffix = mod.full_path().strip().split('.')[-1]
conf_data.set('MODULE_SUFFIX', '.' + suffix)

manifest_ttl = configure_file(input : 'manifest.ttl.in', output : 'manifest.ttl',
manifest_ttl = configure_file(
  input : join_paths('ttl', 'manifest.ttl.in'),
  output : 'manifest.ttl',
	configuration : conf_data,
	install : true,
	install_dir : inst_dir)
dsp_ttl = custom_target('orbit_ttl',
	input : 'orbit.ttl',
	output : 'orbit.ttl',
	command : clone,
	install : true,
	install_dir : inst_dir)

if lv2_validate.found() and sord_validate.found()
	test('LV2 validate', lv2_validate,
		args : [manifest_ttl, dsp_ttl])
endif

if lv2lint.found()
	test('LV2 lint', lv2lint,
		args : ['-I', join_paths(build_root, ''),
			'http://open-music-kontrollers.ch/lv2/orbit#beatbox',
			'http://open-music-kontrollers.ch/lv2/orbit#click',
			'http://open-music-kontrollers.ch/lv2/orbit#looper',
			'http://open-music-kontrollers.ch/lv2/orbit#pacemaker',
			'http://open-music-kontrollers.ch/lv2/orbit#quantum',
			'http://open-music-kontrollers.ch/lv2/orbit#subspace',
			'http://open-music-kontrollers.ch/lv2/orbit#monitor',
			'http://open-music-kontrollers.ch/lv2/orbit#timecapsule'])
dsp_ttl = configure_file(
  input : join_paths('ttl', 'orbit.ttl'),
  output : 'orbit.ttl',
  copy : true,
  install : true,
  install_dir : inst_dir)

if build_tests
  if lv2_validate.found() and sord_validate.found()
    test('LV2 validate', lv2_validate,
      args : [manifest_ttl, dsp_ttl])
  endif

  if lv2lint.found()
    test('LV2 lint', lv2lint,
      args : ['-I', join_paths(build_root, ''),
        'http://open-music-kontrollers.ch/lv2/orbit#beatbox',
        'http://open-music-kontrollers.ch/lv2/orbit#click',
        'http://open-music-kontrollers.ch/lv2/orbit#looper',
        'http://open-music-kontrollers.ch/lv2/orbit#pacemaker',
        'http://open-music-kontrollers.ch/lv2/orbit#quantum',
        'http://open-music-kontrollers.ch/lv2/orbit#subspace',
        'http://open-music-kontrollers.ch/lv2/orbit#monitor',
        'http://open-music-kontrollers.ch/lv2/orbit#timecapsule'])
  endif

	if reuse.found() and not meson.is_cross_build()
		test('REUSE', reuse, args : [
			'--root', source_root,
			'lint'
		])
	endif
endif

A meson_options.txt => meson_options.txt +12 -0
@@ 0,0 1,12 @@
# SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
# SPDX-License-Identifier: CC0-1.0

option('build-tests',
	type : 'boolean',
	value : true)

option('lv2libdir',
	type : 'string',
	value : 'lib/lv2')

option('version', type : 'string', value : '0.1.679')

R orbit.h => orbit.lv2/orbit.h +5 -20
@@ 1,30 1,13 @@
/*
 * Copyright (c) 2015-2016 Hanspeter Portner (dev@open-music-kontrollers.ch)
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 * SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
 * SPDX-License-Identifier: Artistic-2.0
 */

#ifndef _ORBIT_LV2_H
#define _ORBIT_LV2_H

#include <stdint.h>
#if !defined(_WIN32)
#	include <sys/mman.h>
#else
#	define mlock(...)
#	define munlock(...)
#endif
#include <sys/mman.h>

#include <lv2/lv2plug.in/ns/ext/atom/atom.h>
#include <lv2/lv2plug.in/ns/ext/atom/forge.h>


@@ 37,6 20,8 @@
#include <lv2/lv2plug.in/ns/ext/log/logger.h>
#include <lv2/lv2plug.in/ns/lv2core/lv2.h>

#define UNUSED __attribute__((unused))

#define ORBIT_URI										"http://open-music-kontrollers.ch/lv2/orbit"

#define ORBIT_PATH_URI							ORBIT_URI"#Path"

R orbit.c => src/orbit.c +3 -15
@@ 1,21 1,9 @@
/*
 * Copyright (c) 2015-2016 Hanspeter Portner (dev@open-music-kontrollers.ch)
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 * SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
 * SPDX-License-Identifier: Artistic-2.0
 */

#include <orbit.h>
#include <orbit.lv2/orbit.h>

LV2_SYMBOL_EXPORT const LV2_Descriptor*
lv2_descriptor(uint32_t index)

R orbit_beatbox.c => src/orbit_beatbox.c +8 -20
@@ 1,27 1,15 @@
/*
 * Copyright (c) 2015-2016 Hanspeter Portner (dev@open-music-kontrollers.ch)
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 * SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
 * SPDX-License-Identifier: Artistic-2.0
 */

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include <orbit.h>
#include <timely.h>
#include <props.h>
#include <orbit.lv2/orbit.h>
#include <timely.lv2/timely.h>
#include <props.lv2/props.h>

#define MAX_NPROPS 12



@@ 115,7 103,7 @@ _note_off(plughandle_t *handle, int64_t frames, uint8_t channel, uint8_t note)
}

static void
_bar_intercept(void *data, int64_t frames, props_impl_t *impl)
_bar_intercept(void *data, int64_t frames, props_impl_t *impl UNUSED)
{
	plughandle_t *handle = data;



@@ 139,7 127,7 @@ _bar_intercept(void *data, int64_t frames, props_impl_t *impl)
}

static void
_beat_intercept(void *data, int64_t frames, props_impl_t *impl)
_beat_intercept(void *data, int64_t frames, props_impl_t *impl UNUSED)
{
	plughandle_t *handle = data;



@@ 313,7 301,7 @@ _cb(timely_t *timely, int64_t frames, LV2_URID type, void *data)

static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
	const char *bundle_path, const LV2_Feature *const *features)
	const char *bundle_path UNUSED, const LV2_Feature *const *features)
{
	plughandle_t *handle = calloc(1, sizeof(plughandle_t));
	if(!handle)

R orbit_click.c => src/orbit_click.c +17 -30
@@ 1,39 1,26 @@
/*
 * Copyright (c) 2015-2016 Hanspeter Portner (dev@open-music-kontrollers.ch)
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 * SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
 * SPDX-License-Identifier: Artistic-2.0
 */

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include <orbit.h>
#include <timely.h>
#include <props.h>
#include <orbit.lv2/orbit.h>
#include <timely.lv2/timely.h>
#include <props.lv2/props.h>

#define MAX_NPROPS 6

typedef enum _state_t state_t;
typedef struct _wave_t wave_t;
typedef struct _plugstate_t plugstate_t;
typedef struct _plughandle_t plughandle_t;

enum _state_t {
typedef enum _state_t {
	STATE_ON,
	STATE_OFF
};
} state_t;

struct _wave_t {
	state_t state;        // Current play state


@@ 98,7 85,7 @@ _midi2cps(float pitch)
}

static void
_bar_intercept(void *data, int64_t frames, props_impl_t *impl)
_bar_intercept(void *data, int64_t frames UNUSED, props_impl_t *impl UNUSED)
{
	plughandle_t *handle = data;



@@ 115,7 102,7 @@ _bar_intercept(void *data, int64_t frames, props_impl_t *impl)
}

static void
_beat_intercept(void *data, int64_t frames, props_impl_t *impl)
_beat_intercept(void *data, int64_t frames UNUSED, props_impl_t *impl UNUSED)
{
	plughandle_t *handle = data;



@@ 132,7 119,7 @@ _beat_intercept(void *data, int64_t frames, props_impl_t *impl)
}

static void
_intercept_toggle(void *data, int64_t frames, props_impl_t *impl)
_intercept_toggle(void *data, int64_t frames, props_impl_t *impl UNUSED)
{
	plughandle_t *handle = data;



@@ 193,7 180,7 @@ static const props_def_t defs [MAX_NPROPS] = {
};

static void
_cb(timely_t *timely, int64_t frames, LV2_URID type, void *data)
_cb(timely_t *timely, int64_t frames UNUSED, LV2_URID type, void *data)
{
	plughandle_t *handle = data;



@@ 229,7 216,7 @@ _cb(timely_t *timely, int64_t frames, LV2_URID type, void *data)

static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
	const char *bundle_path, const LV2_Feature *const *features)
	const char *bundle_path UNUSED, const LV2_Feature *const *features)
{
	plughandle_t *handle = calloc(1, sizeof(plughandle_t));
	if(!handle)


@@ 324,7 311,7 @@ activate(LV2_Handle instance)
}

static inline void
_play(plughandle_t *handle, wave_t *wave, uint32_t begin, uint32_t end)
_play(wave_t *wave, uint32_t begin, uint32_t end)
{
	float *const output = wave->audio;



@@ 372,8 359,8 @@ run(LV2_Handle instance, uint32_t nsamples)

	LV2_ATOM_SEQUENCE_FOREACH(handle->event_in, ev)
	{
		_play(handle, &handle->bar, last_t, ev->time.frames);
		_play(handle, &handle->beat, last_t, ev->time.frames);
		_play(&handle->bar, last_t, ev->time.frames);
		_play(&handle->beat, last_t, ev->time.frames);

		const LV2_Atom_Object *obj = (const LV2_Atom_Object *)&ev->body;
		if(!timely_advance(&handle->timely, obj, last_t, ev->time.frames))


@@ 382,8 369,8 @@ run(LV2_Handle instance, uint32_t nsamples)
		last_t = ev->time.frames;
	}

	_play(handle, &handle->bar, last_t, nsamples);
	_play(handle, &handle->beat, last_t, nsamples);
	_play(&handle->bar, last_t, nsamples);
	_play(&handle->beat, last_t, nsamples);
	timely_advance(&handle->timely, NULL, last_t, nsamples);

	if(handle->ref)

R orbit_looper.c => src/orbit_looper.c +16 -33
@@ 1,18 1,6 @@
/*
 * Copyright (c) 2015-2016 Hanspeter Portner (dev@open-music-kontrollers.ch)
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 * SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
 * SPDX-License-Identifier: Artistic-2.0
 */

#include <stdio.h>


@@ 20,23 8,22 @@
#include <math.h>
#include <inttypes.h>

#include <orbit.h>
#include <timely.h>
#include <props.h>
#include <orbit.lv2/orbit.h>
#include <timely.lv2/timely.h>
#include <props.lv2/props.h>

#define MAX_NPROPS 10

#define BUF_SIZE 0x2000000 // 32 MB
#define BUF_PERCENT (100.f / (BUF_SIZE - sizeof(LV2_Atom)))

typedef enum _punchmode_t punchmode_t;
typedef struct _plugstate_t plugstate_t;
typedef struct _plughandle_t plughandle_t;

enum _punchmode_t {
typedef enum _punchmode_t {
	PUNCH_BEAT				= 0,
	PUNCH_BAR					= 1
};
} punchmode_t;

struct _plugstate_t {
	int32_t punch;


@@ 117,7 104,7 @@ _window_refresh(plughandle_t *handle)
}

static void
_intercept_window(void *data, int64_t frames, props_impl_t *impl)
_intercept_window(void *data, int64_t frames UNUSED, props_impl_t *impl UNUSED)
{
	plughandle_t *handle = data;



@@ 125,7 112,7 @@ _intercept_window(void *data, int64_t frames, props_impl_t *impl)
}

static void
_intercept_toggle(void *data, int64_t frames, props_impl_t *impl)
_intercept_toggle(void *data, int64_t frames, props_impl_t *impl UNUSED)
{
	plughandle_t *handle = data;



@@ 149,7 136,7 @@ _intercept_toggle(void *data, int64_t frames, props_impl_t *impl)
}

static void
_intercept_play(void *data, int64_t frames, props_impl_t *impl)
_intercept_play(void *data, int64_t frames UNUSED, props_impl_t *impl)
{
	plughandle_t *handle = data;



@@ 231,7 218,7 @@ static const props_def_t defs [MAX_NPROPS] = {
	     (iter) = lv2_atom_sequence_next(iter))

static inline void
_play(plughandle_t *handle, int64_t to, uint32_t capacity)
_play(plughandle_t *handle, int64_t to, uint32_t capacity UNUSED)
{
	const LV2_Atom_Sequence *play_seq = (LV2_Atom_Sequence *)handle->buf[handle->play];



@@ 424,14 411,10 @@ _cb(timely_t *timely, int64_t frames, LV2_URID type, void *data)
				handle->play = !handle->play;

				// store new playback sequence in state
				props_impl_t *impl = _props_impl_get(&handle->props, handle->urid.play_sequence);
				if(impl)
				{
					const LV2_Atom *play_seq = (LV2_Atom *)handle->buf[handle->play];
				const LV2_Atom *play_seq = (LV2_Atom *)handle->buf[handle->play];

					_props_impl_set(&handle->props, impl, play_seq->type,
						play_seq->size, LV2_ATOM_BODY_CONST(play_seq));
				}
				props_update(&handle->props, handle->urid.play_sequence,
					play_seq->type, play_seq->size, LV2_ATOM_BODY_CONST(play_seq));
			}

			// terminate hanging notes


@@ 468,7 451,7 @@ _cb(timely_t *timely, int64_t frames, LV2_URID type, void *data)

		if(beats == 0.0) // clear sequence buffers when transport is rewound
		{
			LV2_Atom_Sequence *play_seq = (LV2_Atom_Sequence *)handle->buf[handle->play];
			//LV2_Atom_Sequence *play_seq = (LV2_Atom_Sequence *)handle->buf[handle->play];
			LV2_Atom_Sequence *rec_seq = (LV2_Atom_Sequence *)handle->buf[!handle->play];

			//lv2_atom_sequence_clear(play_seq);


@@ 484,7 467,7 @@ _cb(timely_t *timely, int64_t frames, LV2_URID type, void *data)

static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
	const char *bundle_path, const LV2_Feature *const *features)
	const char *bundle_path UNUSED, const LV2_Feature *const *features)
{
	plughandle_t *handle = calloc(1, sizeof(plughandle_t));
	if(!handle)

R orbit_monitor.c => src/orbit_monitor.c +8 -21
@@ 1,27 1,15 @@
/*
 * Copyright (c) 2015-2016 Hanspeter Portner (dev@open-music-kontrollers.ch)
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 * SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
 * SPDX-License-Identifier: Artistic-2.0
 */

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include <orbit.h>
#include <timely.h>
#include <props.h>
#include <orbit.lv2/orbit.h>
#include <timely.lv2/timely.h>
#include <props.lv2/props.h>

#define MAX_NPROPS 8



@@ 127,16 115,15 @@ static const props_def_t defs [MAX_NPROPS] = {
};

static void
_cb(timely_t *timely, int64_t frames, LV2_URID type, void *data)
_cb(timely_t *timely UNUSED, int64_t frames UNUSED, LV2_URID type UNUSED,
	void *data UNUSED)
{
	plughandle_t *handle = data;

	// do nothing
}

static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
	const char *bundle_path, const LV2_Feature *const *features)
	const char *bundle_path UNUSED, const LV2_Feature *const *features)
{
	plughandle_t *handle = calloc(1, sizeof(plughandle_t));
	if(!handle)

R orbit_pacemaker.c => src/orbit_pacemaker.c +6 -18
@@ 1,26 1,15 @@
/*
 * Copyright (c) 2015-2016 Hanspeter Portner (dev@open-music-kontrollers.ch)
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 * SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
 * SPDX-License-Identifier: Artistic-2.0
 */

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include <orbit.h>
#include <props.h>
#include <orbit.lv2/orbit.h>
#include <timely.lv2/timely.h>
#include <props.lv2/props.h>

#define MAX_NPROPS 6



@@ 238,7 227,7 @@ static const props_def_t defs [MAX_NPROPS] = {

static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
	const char *bundle_path, const LV2_Feature *const *features)
	const char *bundle_path UNUSED, const LV2_Feature *const *features)
{
	int i;
	plughandle_t *handle = calloc(1, sizeof(plughandle_t));


@@ 366,7 355,6 @@ run(LV2_Handle instance, uint32_t nsamples)
{
	uint32_t last_t = 0;
	plughandle_t *handle = instance;
	position_t *pos = &handle->pos;

	uint32_t capacity = handle->event_out->atom.size;
	LV2_Atom_Forge_Frame frame;

R orbit_quantum.c => src/orbit_quantum.c +9 -22
@@ 1,32 1,19 @@
/*
 * Copyright (c) 2015-2016 Hanspeter Portner (dev@open-music-kontrollers.ch)
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 * SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
 * SPDX-License-Identifier: Artistic-2.0
 */

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include <orbit.h>
#include <timely.h>
#include <props.h>
#include <varchunk.h>
#include <orbit.lv2/orbit.h>
#include <timely.lv2/timely.h>
#include <props.lv2/props.h>
#include <varchunk/varchunk.h>

#define MAX_NPROPS 1

typedef enum _quantum_mode_t quantum_mode_t;
typedef struct _plugstate_t plugstate_t;
typedef struct _plughandle_t plughandle_t;



@@ 34,11 21,11 @@ struct _plugstate_t {
	int32_t mode;
};

enum _quantum_mode_t {
typedef  enum _quantum_mode_t {
	MODE_FLOOR = 0,
	MODE_ROUND = 1,
	MODE_CEIL  = 2
};
} quantum_mode_t;

struct _plughandle_t {
	LV2_URID_Map *map;


@@ 121,7 108,7 @@ _cb(timely_t *timely, int64_t frames, LV2_URID type, void *data)

static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
	const char *bundle_path, const LV2_Feature *const *features)
	const char *bundle_path UNUSED, const LV2_Feature *const *features)
{
	plughandle_t *handle = calloc(1, sizeof(plughandle_t));
	if(!handle)

R orbit_subspace.c => src/orbit_subspace.c +9 -22
@@ 1,27 1,15 @@
/*
 * Copyright (c) 2015-2016 Hanspeter Portner (dev@open-music-kontrollers.ch)
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 * SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
 * SPDX-License-Identifier: Artistic-2.0
 */

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include <orbit.h>
#include <timely.h>
#include <props.h>
#include <orbit.lv2/orbit.h>
#include <timely.lv2/timely.h>
#include <props.lv2/props.h>

#define MAX_NPROPS 2



@@ 132,7 120,7 @@ _position_atomize(plughandle_t *handle, LV2_Atom_Forge *forge, int64_t frames)
}

static void
_intercept(void *data, int64_t frames, props_impl_t *impl)
_intercept(void *data, int64_t frames, props_impl_t *impl UNUSED)
{
	plughandle_t *handle = data;



@@ 156,16 144,15 @@ static const props_def_t defs [MAX_NPROPS] = {
};

static void
_cb(timely_t *timely, int64_t frames, LV2_URID type, void *data)
_cb(timely_t *timely UNUSED, int64_t frames UNUSED, LV2_URID type UNUSED,
 UNUSED	void *data UNUSED)
{
	plughandle_t *handle = data;

	// do nothing
}

static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
	const char *bundle_path, const LV2_Feature *const *features)
	const char *bundle_path UNUSED, const LV2_Feature *const *features)
{
	plughandle_t *handle = calloc(1, sizeof(plughandle_t));
	if(!handle)

R orbit_timecapsule.c => src/orbit_timecapsule.c +21 -38
@@ 1,18 1,6 @@
/*
 * Copyright (c) 2015-2016 Hanspeter Portner (dev@open-music-kontrollers.ch)
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 * SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
 * SPDX-License-Identifier: Artistic-2.0
 */

#include <stdio.h>


@@ 23,12 11,11 @@
#include <errno.h>
#include <string.h>

#include <orbit.h>
#include <timely.h>
#include <props.h>
#include <varchunk.h>
#include <orbit.lv2/orbit.h>
#include <timely.lv2/timely.h>
#include <props.lv2/props.h>
#include <varchunk/varchunk.h>

#define NETATOM_IMPLEMENTATION
#include <netatom.lv2/netatom.h>

#define MAX_NPROPS 5


@@ 36,7 23,6 @@
#define MAX_BUF 8192

typedef struct _item_t item_t;
typedef enum _job_type_t job_type_t;
typedef struct _job_t job_t;
typedef struct _plugstate_t plugstate_t;
typedef struct _plughandle_t plughandle_t;


@@ 49,21 35,21 @@ struct _item_t {
	uint32_t size;
} __attribute__((packed));

enum _job_type_t {
typedef enum _job_type_t {
	TC_JOB_DRAIN,
	TC_JOB_REPOSITION_PLAY,
	TC_JOB_READ,
	TC_JOB_REPOSITION_REC,
	TC_JOB_WRITE,
	TC_JOB_CHANGE_PATH
};
} job_type_t;

struct _job_t {
	job_type_t type;
	double beats;
	union {
		LV2_Atom atom [0];
		char file_path [0];
		LV2_Atom atom [1];
		char file_path [1];
	};
};



@@ 119,8 105,6 @@ struct _plughandle_t {
	char file_path [PATH_MAX];
};

static const char magic [MAGIC_SIZE] = "netatom"; //FIXME use

static const char *reading_mode = "rb";
static const char *writing_mode = "wb9";



@@ 199,7 183,7 @@ _reposition_rec(plughandle_t *handle, double beats)
}

static void
_mute_intercept(void *data, int64_t frames, props_impl_t *impl)
_mute_intercept(void *data, int64_t frames, props_impl_t *impl UNUSED)
{
	plughandle_t *handle = data;



@@ 214,7 198,7 @@ _mute_intercept(void *data, int64_t frames, props_impl_t *impl)
}

static void
_record_intercept(void *data, int64_t frames, props_impl_t *impl)
_record_intercept(void *data, int64_t frames, props_impl_t *impl UNUSED)
{
	plughandle_t *handle = data;



@@ 238,7 222,7 @@ _record_intercept(void *data, int64_t frames, props_impl_t *impl)
}

static void
_path_intercept(void *data, int64_t frames, props_impl_t *impl)
_path_intercept(void *data, int64_t frames UNUSED, props_impl_t *impl UNUSED)
{
	plughandle_t *handle = data;



@@ 384,7 368,7 @@ _rec(plughandle_t *handle, const LV2_Atom_Event *ev)
}

static void
_cb(timely_t *timely, int64_t frames, LV2_URID type, void *data)
_cb(timely_t *timely, int64_t frames UNUSED, LV2_URID type, void *data)
{
	plughandle_t *handle = data;



@@ 607,7 591,7 @@ _read_from(plughandle_t *handle)

static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
	const char *bundle_path, const LV2_Feature *const *features)
	const char *bundle_path UNUSED, const LV2_Feature *const *features)
{
	plughandle_t *handle = calloc(1, sizeof(plughandle_t));
	if(!handle)


@@ 827,10 811,10 @@ static const LV2_State_Interface state_iface = {
// non-rt thread
static LV2_Worker_Status
_work(LV2_Handle instance,
	LV2_Worker_Respond_Function respond,
	LV2_Worker_Respond_Handle worker,
	uint32_t size,
	const void *body)
	LV2_Worker_Respond_Function respond UNUSED,
	LV2_Worker_Respond_Handle worker UNUSED,
	uint32_t size UNUSED,
	const void *body UNUSED)
{
	plughandle_t *handle = instance;



@@ 908,10 892,9 @@ _work(LV2_Handle instance,

// rt-thread
static LV2_Worker_Status
_work_response(LV2_Handle instance, uint32_t size, const void *body)
_work_response(LV2_Handle instance UNUSED, uint32_t size UNUSED,
	const void *body UNUSED)
{
	plughandle_t *handle = instance;

	// nothing

	return LV2_WORKER_SUCCESS;

R manifest.ttl.in => ttl/manifest.ttl.in +2 -14
@@ 1,17 1,5 @@
# Copyright (c) 2015-2016 Hanspeter Portner (dev@open-music-kontrollers.ch)
#
# This is free software: you can redistribute it and/or modify
# it under the terms of the Artistic License 2.0 as published by
# The Perl Foundation.
#
# This source is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# Artistic License 2.0 for more details.
#
# You should have received a copy of the Artistic License 2.0
# along the source as a COPYING file. If not, obtain it from
# http://www.perlfoundation.org/artistic_license_2_0.
# SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
# SPDX-License-Identifier: Artistic-2.0

@prefix lv2:      <http://lv2plug.in/ns/lv2core#> .
@prefix owl:			<http://www.w3.org/2002/07/owl#> .

R orbit.ttl => ttl/orbit.ttl +2 -14
@@ 1,17 1,5 @@
# Copyright (c) 2015-2016 Hanspeter Portner (dev@open-music-kontrollers.ch)
#
# This is free software: you can redistribute it and/or modify
# it under the terms of the Artistic License 2.0 as published by
# The Perl Foundation.
#
# This source is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# Artistic License 2.0 for more details.
#
# You should have received a copy of the Artistic License 2.0
# along the source as a COPYING file. If not, obtain it from
# http://www.perlfoundation.org/artistic_license_2_0.
# SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
# SPDX-License-Identifier: Artistic-2.0

@prefix owl:			<http://www.w3.org/2002/07/owl#> .
@prefix xsd:			<http://www.w3.org/2001/XMLSchema#> .