From 4c299323440923891b9c583a354116000eb143cc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 11 Mar 2012 05:22:08 +0000 Subject: 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 --- include/ingen/client/PortModel.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/ingen/client') 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; -- cgit v1.2.1