From a513af4218d0a62a45960d04ff6ddeecb8d3d4f5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 2 Oct 2016 23:56:47 -0400 Subject: Add event outputs to Trigger and Controller --- src/server/internals/Trigger.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/server/internals/Trigger.hpp') diff --git a/src/server/internals/Trigger.hpp b/src/server/internals/Trigger.hpp index 801e97f6..4d67395a 100644 --- a/src/server/internals/Trigger.hpp +++ b/src/server/internals/Trigger.hpp @@ -1,6 +1,6 @@ /* This file is part of Ingen. - Copyright 2007-2015 David Robillard + Copyright 2007-2016 David Robillard Ingen is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free @@ -50,8 +50,8 @@ public: void run(RunContext& context); - void note_on(RunContext& context, uint8_t note_num, uint8_t velocity, FrameTime time); - void note_off(RunContext& context, uint8_t note_num, FrameTime time); + bool note_on(RunContext& context, uint8_t note_num, uint8_t velocity, FrameTime time); + bool note_off(RunContext& context, uint8_t note_num, FrameTime time); void learn() { _learning = true; } @@ -61,6 +61,7 @@ private: bool _learning; InputPort* _midi_in_port; + OutputPort* _midi_out_port; InputPort* _note_port; OutputPort* _gate_port; OutputPort* _trig_port; -- cgit v1.2.1