summaryrefslogtreecommitdiff
path: root/libs/evoral/src/Note.cpp
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-09-14 16:01:32 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-09-14 16:01:32 +0000
commitbf0a99f0c0a8f76725fba89d076010009c4cdcb0 (patch)
tree128afdd123424872c922260a8f180912ff996431 /libs/evoral/src/Note.cpp
parent3023d53d7d3f6dd726bcd07b0ebec8d7cfc2948d (diff)
fix up marshall/unmarshall of note data for MidiModel::DiffCommand
git-svn-id: svn://localhost/ardour2/branches/3.0@5662 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/src/Note.cpp')
-rw-r--r--libs/evoral/src/Note.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/evoral/src/Note.cpp b/libs/evoral/src/Note.cpp
index 9440cde273..d97cfef429 100644
--- a/libs/evoral/src/Note.cpp
+++ b/libs/evoral/src/Note.cpp
@@ -39,7 +39,7 @@ Note<Time>::Note(uint8_t chan, Time t, Time l, uint8_t n, uint8_t v)
_off_event.buffer()[2] = 0x40;
assert(time() == t);
- assert(length() - l <= 1.0/1920.0); /* acceptable tolerance is 1/ppqn. Nice if there was no magic number here */
+ assert(musical_time_equal (length(), l));
assert(note() == n);
assert(velocity() == v);
assert(_on_event.channel() == _off_event.channel());