summaryrefslogtreecommitdiffstats
path: root/include/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-11 05:22:08 +0000
committerDavid Robillard <d@drobilla.net>2012-03-11 05:22:08 +0000
commit4c299323440923891b9c583a354116000eb143cc (patch)
treef2873fdd9849561608b7eebbfad89c04d56ba58e /include/ingen
parentc2ea4e3c59ce8c06066780d67237fdb07255c89e (diff)
downloadingen-4c299323440923891b9c583a354116000eb143cc.tar.gz
ingen-4c299323440923891b9c583a354116000eb143cc.tar.bz2
ingen-4c299323440923891b9c583a354116000eb143cc.zip
Implement cv:CVPort (fix #790). Not well-tested, but at least works somewhat.
Use new style LV2 URI defines (and fix invalid atom URIs). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4050 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'include/ingen')
-rw-r--r--include/ingen/client/PortModel.hpp5
-rw-r--r--include/ingen/shared/URIs.hpp5
2 files changed, 7 insertions, 3 deletions
diff --git a/include/ingen/client/PortModel.hpp b/include/ingen/client/PortModel.hpp
index 4ba1acbc..ae4ac6d3 100644
--- a/include/ingen/client/PortModel.hpp
+++ b/include/ingen/client/PortModel.hpp
@@ -51,10 +51,13 @@ public:
bool port_property(const Raul::URI& uri) const;
- bool is_numeric() const { return ObjectModel::is_a("http://lv2plug.in/ns/lv2core#ControlPort"); }
bool is_logarithmic() const { return port_property("http://drobilla.net/ns/ingen#logarithmic"); }
bool is_integer() const { return port_property("http://lv2plug.in/ns/lv2core#integer"); }
bool is_toggle() const { return port_property("http://lv2plug.in/ns/lv2core#toggled"); }
+ bool is_numeric() const {
+ return ObjectModel::is_a("http://lv2plug.in/ns/lv2core#ControlPort")
+ || ObjectModel::is_a("http://lv2plug.in/ns/ext/cv-port#CVPort");
+ }
bool has_context(const Raul::URI& context) const;
diff --git a/include/ingen/shared/URIs.hpp b/include/ingen/shared/URIs.hpp
index 94103832..405f1276 100644
--- a/include/ingen/shared/URIs.hpp
+++ b/include/ingen/shared/URIs.hpp
@@ -38,18 +38,19 @@ public:
uint32_t id;
};
- const Quark atom_AtomTransfer;
const Quark atom_Bool;
- const Quark atom_Float32;
+ const Quark atom_Float;
const Quark atom_Int32;
const Quark atom_MessagePort;
const Quark atom_String;
const Quark atom_ValuePort;
const Quark atom_Vector;
+ const Quark atom_eventTransfer;
const Quark atom_supports;
const Quark ctx_audioContext;
const Quark ctx_context;
const Quark ctx_messageContext;
+ const Quark cv_CVPort;
const Quark doap_name;
const Quark ev_EventPort;
const Quark ingen_Internal;