diff options
author | David Robillard <d@drobilla.net> | 2008-11-28 01:26:54 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-11-28 01:26:54 +0000 |
commit | 0bf73b59335d917400c18ae9d664226c1a4da4c2 (patch) | |
tree | 5403e1c54de2e1e9e8e4aaedd1a69d674f8c4963 /src/engine/events | |
parent | 6bf8ac34199f1c3e8d57a43bf1ed7025ce0cc3f9 (diff) | |
download | ingen-0bf73b59335d917400c18ae9d664226c1a4da4c2.tar.gz ingen-0bf73b59335d917400c18ae9d664226c1a4da4c2.tar.bz2 ingen-0bf73b59335d917400c18ae9d664226c1a4da4c2.zip |
MIDI learn for note trigger node.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1812 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/events')
-rw-r--r-- | src/engine/events/MidiLearnEvent.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/engine/events/MidiLearnEvent.cpp b/src/engine/events/MidiLearnEvent.cpp index b542eccd..8c2439a2 100644 --- a/src/engine/events/MidiLearnEvent.cpp +++ b/src/engine/events/MidiLearnEvent.cpp @@ -51,11 +51,9 @@ MidiLearnEvent::execute(ProcessContext& context) QueuedEvent::execute(context); if (_node != NULL) { - if (_node->plugin_impl()->type() == Plugin::Internal - && _node->plugin_impl()->uri() == "http://drobilla.net/ns/ingen#control_node") { - ((MidiControlNode*)_node)->learn(); + if (_node->plugin_impl()->type() == Plugin::Internal) { + ((NodeBase*)_node)->learn(); } else { - std::cout << "NOT CAPABLE: " << _node->plugin_impl()->uri() << std::endl; _error = INVALID_NODE_TYPE; } } |