summaryrefslogtreecommitdiffstats
path: root/src/engine/MidiTriggerNode.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/MidiTriggerNode.hpp')
-rw-r--r--src/engine/MidiTriggerNode.hpp4
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;