diff options
author | David Robillard <d@drobilla.net> | 2008-08-18 19:50:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-18 19:50:53 +0000 |
commit | 625c01a594f9cc73d7b83a85d314ddb859d8d029 (patch) | |
tree | a3da6b3646c9f44b19fd6ae99bd5b7fc6f8d2baa /src/libs/engine/events | |
parent | 68477f501356cc1a59dcb875012ec59199c39d70 (diff) | |
download | ingen-625c01a594f9cc73d7b83a85d314ddb859d8d029.tar.gz ingen-625c01a594f9cc73d7b83a85d314ddb859d8d029.tar.bz2 ingen-625c01a594f9cc73d7b83a85d314ddb859d8d029.zip |
Fix copy/paste of internal nodes.
git-svn-id: http://svn.drobilla.net/lad/ingen@1433 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events')
-rw-r--r-- | src/libs/engine/events/NoteEvent.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libs/engine/events/NoteEvent.cpp b/src/libs/engine/events/NoteEvent.cpp index d74d5cd0..58842ae6 100644 --- a/src/libs/engine/events/NoteEvent.cpp +++ b/src/libs/engine/events/NoteEvent.cpp @@ -23,6 +23,7 @@ #include "MidiNoteNode.hpp" #include "MidiTriggerNode.hpp" #include "PluginImpl.hpp" +#include "InternalPlugin.hpp" #include "ProcessContext.hpp" namespace Ingen { @@ -71,14 +72,14 @@ NoteEvent::execute(ProcessContext& context) if (_node != NULL && _node->plugin()->type() == Plugin::Internal) { if (_on) { - if (_node->plugin_impl()->uri() == "ingen:note_node") + if (_node->plugin_impl()->uri() == NS_INGEN "note_node") ((MidiNoteNode*)_node)->note_on(context, _note_num, _velocity, _time); - else if (_node->plugin_impl()->uri() == "ingen:trigger_node") + else if (_node->plugin_impl()->uri() == NS_INGEN "trigger_node") ((MidiTriggerNode*)_node)->note_on(context, _note_num, _velocity, _time); } else { - if (_node->plugin_impl()->uri() == "ingen:note_node") + if (_node->plugin_impl()->uri() == NS_INGEN "note_node") ((MidiNoteNode*)_node)->note_off(context, _note_num, _time); - else if (_node->plugin_impl()->uri() == "ingen:trigger_node") + else if (_node->plugin_impl()->uri() == NS_INGEN "trigger_node") ((MidiTriggerNode*)_node)->note_off(context, _note_num, _time); } } |