From 57698964f1e88b2b74a0ce31ffaba3044d884dac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 12 Oct 2008 00:23:16 +0000 Subject: Eliminate redundant ingen ontology parts, and save ingen Patchage in an LV2 compatible format. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1651 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/DeprecatedLoader.cpp | 8 ++++---- src/client/NodeModel.cpp | 4 ++-- src/client/PortModel.hpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/client') diff --git a/src/client/DeprecatedLoader.cpp b/src/client/DeprecatedLoader.cpp index 2b4e34a4..82b99aa9 100644 --- a/src/client/DeprecatedLoader.cpp +++ b/src/client/DeprecatedLoader.cpp @@ -462,16 +462,16 @@ DeprecatedLoader::load_node(const Path& parent, xmlDocPtr doc, const xmlNodePtr if (plugin_type == "Internal") { // FIXME: indices if (plugin_label == "audio_input") { - _engine->new_port(path, 0, "ingen:AudioPort", false); + _engine->new_port(path, 0, "lv2:AudioPort", false); is_port = true; } else if (plugin_label == "audio_output") { - _engine->new_port(path, 0, "ingen:AudioPort", true); + _engine->new_port(path, 0, "lv2:AudioPort", true); is_port = true; } else if (plugin_label == "control_input") { - _engine->new_port(path, 0, "ingen:ControlPort", false); + _engine->new_port(path, 0, "lv2:ControlPort", false); is_port = true; } else if (plugin_label == "control_output" ) { - _engine->new_port(path, 0, "ingen:ControlPort", true); + _engine->new_port(path, 0, "lv2:ControlPort", true); is_port = true; } else if (plugin_label == "midi_input") { _engine->new_port(path, 0, "ingen:MIDIPort", false); diff --git a/src/client/NodeModel.cpp b/src/client/NodeModel.cpp index ad04892f..ee4988e3 100644 --- a/src/client/NodeModel.cpp +++ b/src/client/NodeModel.cpp @@ -198,8 +198,8 @@ NodeModel::port_value_range(SharedPtr port, float& min, float& max) c #endif // Possibly overriden - const Atom& min_atom = port->get_variable("ingen:minimum"); - const Atom& max_atom = port->get_variable("ingen:maximum"); + const Atom& min_atom = port->get_variable("lv2:minimum"); + const Atom& max_atom = port->get_variable("lv2:maximum"); if (min_atom.type() == Atom::FLOAT) min = min_atom.get_float(); if (max_atom.type() == Atom::FLOAT) diff --git a/src/client/PortModel.hpp b/src/client/PortModel.hpp index cf0d7ddc..0a078aaa 100644 --- a/src/client/PortModel.hpp +++ b/src/client/PortModel.hpp @@ -50,8 +50,8 @@ public: bool has_hint(const std::string& qname) const; bool is_logarithmic() const { return has_hint("ingen:logarithmic"); } - bool is_integer() const { return has_hint("ingen:integer"); } - bool is_toggle() const { return has_hint("ingen:toggled"); } + bool is_integer() const { return has_hint("lv2:integer"); } + bool is_toggle() const { return has_hint("lv2:toggled"); } inline bool operator==(const PortModel& pm) const { return (_path == pm._path); } -- cgit v1.2.1