From 625c01a594f9cc73d7b83a85d314ddb859d8d029 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 18 Aug 2008 19:50:53 +0000 Subject: Fix copy/paste of internal nodes. git-svn-id: http://svn.drobilla.net/lad/ingen@1433 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/events/NoteEvent.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/libs/engine/events') 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); } } -- cgit v1.2.1