summaryrefslogtreecommitdiffstats
path: root/src/engine/internals
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/internals')
-rw-r--r--src/engine/internals/Note.cpp5
-rw-r--r--src/engine/internals/Trigger.cpp1
2 files changed, 4 insertions, 2 deletions
diff --git a/src/engine/internals/Note.cpp b/src/engine/internals/Note.cpp
index 76659cfd..9ed45c96 100644
--- a/src/engine/internals/Note.cpp
+++ b/src/engine/internals/Note.cpp
@@ -35,6 +35,7 @@
#define LOG(s) s << "[NoteNode] "
using namespace std;
+using namespace Raul;
namespace Ingen {
namespace Internals {
@@ -353,7 +354,7 @@ NoteNode::free_voice(ProcessContext& context, uint32_t voice, FrameTime time)
} else {
// No new note for voice, deactivate (set gate low)
#ifdef LOG_DEBUG
- LOG(debug) << "Note off: key " << (int)note_num << " voice " << voice << endl;
+ LOG(debug) << "Note off: key " << (*_voices)[voice].note << " voice " << voice << endl;
#endif
((AudioBuffer*)_gate_port->buffer(voice).get())->set_value(0.0f, context.start(), time);
(*_voices)[voice].state = Voice::FREE;
@@ -368,7 +369,7 @@ NoteNode::all_notes_off(ProcessContext& context, FrameTime time)
assert(time - context.start() < _buffer_size);
#ifdef LOG_DEBUG
- LOG(debug) << "All notes off @ " << offset << endl;
+ LOG(debug) << "All notes off @ " << time << endl;
#endif
// FIXME: set all keys to Key::OFF?
diff --git a/src/engine/internals/Trigger.cpp b/src/engine/internals/Trigger.cpp
index 7c05a1d3..440e9a63 100644
--- a/src/engine/internals/Trigger.cpp
+++ b/src/engine/internals/Trigger.cpp
@@ -26,6 +26,7 @@
#include "OutputPort.hpp"
#include "ProcessContext.hpp"
#include "util.hpp"
+#include "ingen-config.h"
#define LOG(s) s << "[TriggerNode] "