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.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/note.cc b/libs/ardour/note.cc
index 27f50e4092..0ddd745242 100644
--- a/libs/ardour/note.cc
+++ b/libs/ardour/note.cc
@@ -40,6 +40,7 @@ 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());
}
@@ -64,6 +65,8 @@ Note::Note(const Note& copy)
assert(note() == copy.note());
assert(velocity() == copy.velocity());
assert(duration() == copy.duration());
+ assert(_on_event.channel() == _off_event.channel());
+ assert(channel() == copy.channel());
}
@@ -86,7 +89,9 @@ Note::operator=(const Note& copy)
assert(note() == copy.note());
assert(velocity() == copy.velocity());
assert(duration() == copy.duration());
-
+ assert(_on_event.channel() == _off_event.channel());
+ assert(channel() == copy.channel());
+
return *this;
}