summaryrefslogtreecommitdiff
path: root/libs/ardour/note.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/note.cc')
-rw-r--r--libs/ardour/note.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/libs/ardour/note.cc b/libs/ardour/note.cc
index 0ddd745242..ea1e7133af 100644
--- a/libs/ardour/note.cc
+++ b/libs/ardour/note.cc
@@ -19,6 +19,7 @@
*/
#include <ardour/note.h>
+#include <iostream>
namespace ARDOUR {
@@ -40,7 +41,8 @@ Note::Note(uint8_t chan, double t, double d, uint8_t n, uint8_t v)
assert(duration() == d);
assert(note() == n);
assert(velocity() == v);
- assert(_on_event.channel() == _off_event.channel());
+ assert(_on_event.channel() == _off_event.channel());
+ assert(channel() == chan);
}
@@ -69,6 +71,16 @@ Note::Note(const Note& copy)
assert(channel() == copy.channel());
}
+Note::~Note()
+{
+ std::cerr << "Note::~Note() Note time: " << time()
+ << " pitch: " << int(note())
+ << " duration: " << duration()
+ << " end-time: " << end_time()
+ << " velocity: " << int(velocity())
+ << std::endl;
+}
+
const Note&
Note::operator=(const Note& copy)