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/MidiTriggerNode.hpp | |
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/MidiTriggerNode.hpp')
-rw-r--r-- | src/engine/MidiTriggerNode.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/MidiTriggerNode.hpp b/src/engine/MidiTriggerNode.hpp index ba96589b..413b8102 100644 --- a/src/engine/MidiTriggerNode.hpp +++ b/src/engine/MidiTriggerNode.hpp @@ -46,8 +46,12 @@ public: void note_on(ProcessContext& context, uchar note_num, uchar velocity, FrameTime time); void note_off(ProcessContext& context, uchar note_num, FrameTime time); + + void learn() { _learning = true; } private: + bool _learning; + InputPort* _midi_in_port; InputPort* _note_port; OutputPort* _gate_port; |