From 1ef3ac54c61a379fef14558fb73bee1eb7ce080f Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 18 Sep 2021 10:33:24 +0100 Subject: [PATCH] Update and add new files Signed-off-by: falkTX --- ...control-input-port-change-request.doap.ttl | 25 ++++++ cipcr/control-input-port-change-request.h | 84 +++++++++++++++++++ cipcr/control-input-port-change-request.ttl | 15 ++++ cipcr/manifest.ttl | 8 ++ extui/external-ui.doap.ttl | 15 +++- extui/external-ui.h | 21 +++-- extui/manifest.ttl | 2 +- index.html | 5 ++ progs/programs.doap.ttl | 4 +- rtmpl/manifest.ttl | 2 +- rtmpl/rtmempool.doap.ttl | 15 +++- rtmpl/rtmempool.h | 21 +++-- 12 files changed, 191 insertions(+), 26 deletions(-) create mode 100644 cipcr/control-input-port-change-request.doap.ttl create mode 100644 cipcr/control-input-port-change-request.h create mode 100644 cipcr/control-input-port-change-request.ttl create mode 100644 cipcr/manifest.ttl diff --git a/cipcr/control-input-port-change-request.doap.ttl b/cipcr/control-input-port-change-request.doap.ttl new file mode 100644 index 0000000..8dc445a --- /dev/null +++ b/cipcr/control-input-port-change-request.doap.ttl @@ -0,0 +1,25 @@ +@prefix dcs: . +@prefix doap: . +@prefix foaf: . +@prefix rdfs: . + + + a doap:Project ; + rdfs:seeAlso <../kx-meta/meta.ttl> ; + doap:license ; + doap:name "ControlPort Change Request" ; + doap:homepage ; + doap:created "2020-10-14" ; + doap:shortdesc "LV2 extension for allowing plugins to request changes on their own control input ports." ; + doap:developer ; + doap:maintainer ; + doap:release [ + doap:revision "0.0" ; + doap:created "2020-10-14" ; + doap:file-release ; + dcs:changeset [ + dcs:item [ + rdfs:label "First stable release." + ] + ] + ] . diff --git a/cipcr/control-input-port-change-request.h b/cipcr/control-input-port-change-request.h new file mode 100644 index 0000000..a0fc60e --- /dev/null +++ b/cipcr/control-input-port-change-request.h @@ -0,0 +1,84 @@ +/* + LV2 ControlInputPort change request extension + Copyright 2020 Filipe Coelho + + 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. +*/ + +/** + @file control-input-port-change-request.h + C header for the LV2 ControlInputPort change request extension . +*/ + +#ifndef LV2_CONTROL_INPUT_PORT_CHANGE_REQUEST_H +#define LV2_CONTROL_INPUT_PORT_CHANGE_REQUEST_H + +#include "lv2/lv2plug.in/ns/lv2core/lv2.h" + +#define LV2_CONTROL_INPUT_PORT_CHANGE_REQUEST_URI "http://kx.studio/ns/lv2ext/control-input-port-change-request" +#define LV2_CONTROL_INPUT_PORT_CHANGE_REQUEST_PREFIX LV2_CONTROL_INPUT_PORT_CHANGE_REQUEST_URI "#" + +#include + +#ifdef __cplusplus +extern "C" { +#else +#include +#endif + +/** A status code for LV2_CONTROL_INPUT_PORT_CHANGE_REQUEST_URI functions. */ +typedef enum { + LV2_CONTROL_INPUT_PORT_CHANGE_SUCCESS = 0, /**< Completed successfully. */ + LV2_CONTROL_INPUT_PORT_CHANGE_ERR_UNKNOWN = 1, /**< Unknown error. */ + LV2_CONTROL_INPUT_PORT_CHANGE_ERR_INVALID_INDEX = 2 /**< Failed due to invalid port index. */ +} LV2_ControlInputPort_Change_Status; + +/** + * Opaque handle for LV2_CONTROL_INPUT_PORT_CHANGE_REQUEST_URI feature. + */ +typedef void* LV2_ControlInputPort_Change_Request_Handle; + +/** + * On instantiation, host must supply LV2_CONTROL_INPUT_PORT_CHANGE_REQUEST_URI feature. + * LV2_Feature::data must be pointer to LV2_ControlInputPort_Change_Request. +*/ +typedef struct _LV2_ControlInputPort_Change_Request { + /** + * Opaque host data. + */ + LV2_ControlInputPort_Change_Request_Handle handle; + + /** + * request_change() + * + * Ask the host to change a plugin's control input port value. + * Parameter handle MUST be the 'handle' member of this struct. + * Parameter index is port index to change. + * Parameter value is the requested value to change the control port input to. + * + * Returns status of the request. + * The host may decline this request, if e.g. it is currently automating this port. + * + * The plugin MUST call this function during run(). + */ + LV2_ControlInputPort_Change_Status (*request_change)(LV2_ControlInputPort_Change_Request_Handle handle, + uint32_t index, + float value); + +} LV2_ControlInputPort_Change_Request; + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* LV2_CONTROL_INPUT_PORT_CHANGE_REQUEST_H */ diff --git a/cipcr/control-input-port-change-request.ttl b/cipcr/control-input-port-change-request.ttl new file mode 100644 index 0000000..8de8a5c --- /dev/null +++ b/cipcr/control-input-port-change-request.ttl @@ -0,0 +1,15 @@ +@prefix lv2: . +@prefix owl: . +@prefix rdfs: . + + + a owl:Ontology , + lv2:Feature ; + rdfs:seeAlso , + , + <../kx-meta/meta.ttl> ; + lv2:documentation """ +

+ LV2 Control Input Port Change Request is an LV2 Extension for allowing plugins to request changes on their own control input ports. +

+""" . diff --git a/cipcr/manifest.ttl b/cipcr/manifest.ttl new file mode 100644 index 0000000..adfee5f --- /dev/null +++ b/cipcr/manifest.ttl @@ -0,0 +1,8 @@ +@prefix lv2: . +@prefix rdfs: . + + + a lv2:Specification ; + lv2:minorVersion 0 ; + lv2:microVersion 0 ; + rdfs:seeAlso . diff --git a/extui/external-ui.doap.ttl b/extui/external-ui.doap.ttl index c011d2c..e440b45 100644 --- a/extui/external-ui.doap.ttl +++ b/extui/external-ui.doap.ttl @@ -11,12 +11,21 @@ doap:homepage ; doap:created "2015-07-03" ; doap:shortdesc "LV2 extension for implementing external UIs." ; - doap:developer ; - doap:maintainer ; + doap:developer ; + doap:maintainer ; doap:release [ + doap:revision "2.0" ; + doap:created "2020-08-08" ; + doap:file-release ; + dcs:changeset [ + dcs:item [ + rdfs:label "Relicense as ISC." + ] + ] + ] , [ doap:revision "1.0" ; doap:created "2015-07-03" ; - doap:file-release ; + doap:file-release ; dcs:changeset [ dcs:item [ rdfs:label "First stable release." diff --git a/extui/external-ui.h b/extui/external-ui.h index 2c9e6ee..f0216b6 100755 --- a/extui/external-ui.h +++ b/extui/external-ui.h @@ -1,13 +1,18 @@ /* LV2 External UI extension - This work is in public domain. - - This file 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. - - If you have questions, contact Filipe Coelho (aka falkTX) - or ask in #lad channel, FreeNode IRC network. + Copyright 2020 Filipe Coelho + + 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. */ /** diff --git a/extui/manifest.ttl b/extui/manifest.ttl index 5c7dc8b..7169821 100644 --- a/extui/manifest.ttl +++ b/extui/manifest.ttl @@ -3,6 +3,6 @@ a lv2:Specification ; - lv2:minorVersion 1 ; + lv2:minorVersion 2 ; lv2:microVersion 0 ; rdfs:seeAlso . diff --git a/index.html b/index.html index aa8103f..f7bc937 100644 --- a/index.html +++ b/index.html @@ -15,6 +15,11 @@
+ + [DIR] + Control Input Port Change Request/ + -   + [DIR] External UI/ diff --git a/progs/programs.doap.ttl b/progs/programs.doap.ttl index b4b72b3..32e6f1a 100644 --- a/progs/programs.doap.ttl +++ b/progs/programs.doap.ttl @@ -11,8 +11,8 @@ doap:homepage ; doap:created "2015-07-03" ; doap:shortdesc "LV2 extension for implementing plugin-side programs." ; - doap:developer ; - doap:maintainer ; + doap:developer ; + doap:maintainer ; doap:release [ doap:revision "1.0" ; doap:created "2015-07-03" ; diff --git a/rtmpl/manifest.ttl b/rtmpl/manifest.ttl index c9d5cf0..d324751 100644 --- a/rtmpl/manifest.ttl +++ b/rtmpl/manifest.ttl @@ -3,6 +3,6 @@ a lv2:Specification ; - lv2:minorVersion 1 ; + lv2:minorVersion 2 ; lv2:microVersion 0 ; rdfs:seeAlso . diff --git a/rtmpl/rtmempool.doap.ttl b/rtmpl/rtmempool.doap.ttl index bc8ea42..1599fa2 100644 --- a/rtmpl/rtmempool.doap.ttl +++ b/rtmpl/rtmempool.doap.ttl @@ -11,12 +11,21 @@ doap:homepage ; doap:created "2015-07-03" ; doap:shortdesc "LV2 extension that provides a realtime safe memory pool for plugins." ; - doap:developer ; - doap:maintainer ; + doap:developer ; + doap:maintainer ; doap:release [ + doap:revision "2.0" ; + doap:created "2020-08-08" ; + doap:file-release ; + dcs:changeset [ + dcs:item [ + rdfs:label "Relicense as ISC." + ] + ] + ] , [ doap:revision "1.0" ; doap:created "2015-07-03" ; - doap:file-release ; + doap:file-release ; dcs:changeset [ dcs:item [ rdfs:label "First stable release." diff --git a/rtmpl/rtmempool.h b/rtmpl/rtmempool.h index 5a06644..8956d9d 100644 --- a/rtmpl/rtmempool.h +++ b/rtmpl/rtmempool.h @@ -1,13 +1,18 @@ /* LV2 realtime safe memory pool extension definition - This work is in public domain. - - This file 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. - - If you have questions, contact Filipe Coelho (aka falkTX) - or ask in #lad channel, FreeNode IRC network. + Copyright 2020 Filipe Coelho + + 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. */ /**