diff options
author | David Robillard <d@drobilla.net> | 2010-02-03 04:46:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-03 04:46:56 +0000 |
commit | 87597f85c5a69a9accd3ce2ed88f2a006173e885 (patch) | |
tree | a3ffa393e9aecbc55dae64bad3bd45ee317e6d26 /src/client/PatchModel.cpp | |
parent | a645d2b8be4d7d31f6eef1649156b166a01e0c31 (diff) | |
download | ingen-87597f85c5a69a9accd3ce2ed88f2a006173e885.tar.gz ingen-87597f85c5a69a9accd3ce2ed88f2a006173e885.tar.bz2 ingen-87597f85c5a69a9accd3ce2ed88f2a006173e885.zip |
Comprehensive use of cached URIs and more advanced Value (Atom) system.
Atoms (e.g. property values or port values) can now be an Atom::DICT, which
maps directly to/from an RDF resource. This is now used to store control
bindings as a port property, eliminating the special API.
Full interned URIs used everywhere, instead of CURIEs pretending to be URIs.
Avoid converting string literals to URIs all over the place.
Support for binding MIDI pitch bender and MIDI channel pressure.
Saving/restoring of MIDI bindings as a free side-effect of the above.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2409 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/PatchModel.cpp')
-rw-r--r-- | src/client/PatchModel.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/PatchModel.cpp b/src/client/PatchModel.cpp index 7b29b3f6..7d44eb1c 100644 --- a/src/client/PatchModel.cpp +++ b/src/client/PatchModel.cpp @@ -17,7 +17,6 @@ #include <cassert> #include "raul/log.hpp" -#include "module/ingen_module.hpp" #include "shared/LV2URIMap.hpp" #include "PatchModel.hpp" #include "NodeModel.hpp" @@ -165,7 +164,7 @@ PatchModel::remove_connection(const Path& src_port_path, const Path& dst_port_pa bool PatchModel::enabled() const { - const Raul::Atom& enabled = get_property(ingen_get_world()->uris->ingen_enabled); + const Raul::Atom& enabled = get_property(Shared::LV2URIMap::instance().ingen_enabled); return (enabled.is_valid() && enabled.get_bool()); } @@ -173,7 +172,7 @@ PatchModel::enabled() const Raul::Atom& PatchModel::set_meta_property(const Raul::URI& key, const Atom& value) { - if (key == ingen_get_world()->uris->ingen_polyphony) + if (key == Shared::LV2URIMap::instance().ingen_polyphony) _poly = value.get_int32(); return NodeModel::set_meta_property(key, value); |