summaryrefslogtreecommitdiffstats
path: root/src/libs/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-07-29 04:39:59 +0000
committerDavid Robillard <d@drobilla.net>2008-07-29 04:39:59 +0000
commitde58b508b28a42b072fb26d2633aa0af37ee7c0e (patch)
treede1ea38fe51dabe98b21f8533885ec3c1030069b /src/libs/client
parent99aacf95b16b828ca5f50d7dab34487240d07eff (diff)
downloadingen-de58b508b28a42b072fb26d2633aa0af37ee7c0e.tar.gz
ingen-de58b508b28a42b072fb26d2633aa0af37ee7c0e.tar.bz2
ingen-de58b508b28a42b072fb26d2633aa0af37ee7c0e.zip
Bump Ingen librdf dependency to 1.0.8.
Several serialization fixes. Include Smack 808 Om patches converted to Ingen files. git-svn-id: http://svn.drobilla.net/lad/ingen@1301 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client')
-rw-r--r--src/libs/client/DeprecatedLoader.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libs/client/DeprecatedLoader.cpp b/src/libs/client/DeprecatedLoader.cpp
index fa1dc7b9..e5179fa0 100644
--- a/src/libs/client/DeprecatedLoader.cpp
+++ b/src/libs/client/DeprecatedLoader.cpp
@@ -72,9 +72,9 @@ DeprecatedLoader::translate_load_path(const string& path)
// (FIXME: apply these less heavy handedly, only when it's an internal module)
} else if (path.find("midi") != string::npos) {
assert(Path::is_valid(path));
- if (path.substr(path.find_last_of("/")) == "/midi_in")
+ if (path.substr(path.find_last_of("/")) == "/MIDI_In")
return path.substr(0, path.find_last_of("/")) + "/input";
- else if (path.substr(path.find_last_of("/")) == "/note_number")
+ else if (path.substr(path.find_last_of("/")) == "/Note_Number")
return path.substr(0, path.find_last_of("/")) + "/note";
else if (path.substr(path.find_last_of("/")) == "/Gate")
return path.substr(0, path.find_last_of("/")) + "/gate";
@@ -284,7 +284,8 @@ DeprecatedLoader::load_patch(const Glib::ustring& filename,
list<ControlModel>::const_iterator i = pm->controls().begin();
for ( ; i != pm->controls().end(); ++i) {
const float value = i->value();
- _engine->set_port_value(i->port_path(), "ingen:Float", sizeof(float), &value);
+ _engine->set_port_value(translate_load_path(i->port_path()),
+ "ingen:Float", sizeof(float), &value);
}
} else {
cerr << "WARNING: Unknown preset: \"" << pm->name() << endl;