diff options
author | David Robillard <d@drobilla.net> | 2008-07-28 23:38:03 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-07-28 23:38:03 +0000 |
commit | 2811066546dfe0bd9349502572ee3b35c2532bad (patch) | |
tree | d6ec436efe0d51185fc5e46103f8f8575319d46c /src/libs/client/PresetModel.hpp | |
parent | ed9e1aa15e5a9363653b46e12313878f82652393 (diff) | |
download | ingen-2811066546dfe0bd9349502572ee3b35c2532bad.tar.gz ingen-2811066546dfe0bd9349502572ee3b35c2532bad.tar.bz2 ingen-2811066546dfe0bd9349502572ee3b35c2532bad.zip |
Compatibility hacks for old Om patchages (many Smack patches now load successfully).
git-svn-id: http://svn.drobilla.net/lad/ingen@1299 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PresetModel.hpp')
-rw-r--r-- | src/libs/client/PresetModel.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libs/client/PresetModel.hpp b/src/libs/client/PresetModel.hpp index 6cc557a5..9bf0467b 100644 --- a/src/libs/client/PresetModel.hpp +++ b/src/libs/client/PresetModel.hpp @@ -42,9 +42,12 @@ public: /** Add a control value to this preset. An empty string for a node_name * means the port is on the patch itself (not a node in the patch). */ - void add_control(const string& node_name, - const string& port_name, float value) + void add_control(const string& node_name, string port_name, float value) { + // FIXME: filthy, filthy kludge for old Om patches + if (port_name == "note_number") + port_name = "note"; + if (node_name != "") _controls.push_back(ControlModel(_base_path + node_name +"/"+ port_name, value)); else |