summaryrefslogtreecommitdiff
path: root/libs/evoral/src/Note.cpp
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-08-17 15:58:47 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-08-17 15:58:47 +0000
commit3162ffb4f418d85088d53d5e0a4a5d6ce7235e04 (patch)
tree851bf4f3ad5d7ae0e9a8917dfc3ad8d2c2f7899c /libs/evoral/src/Note.cpp
parent902a087f15dbdb5546b42930b6cd69294cb0851f (diff)
move assignments out of assert() in editor_drag (thanks lincoln); change mouse mode buttons when in internal/MIDI mode; arrow key control of note velocity, value and position - hey look ma, MIDI editing!
git-svn-id: svn://localhost/ardour2/branches/3.0@5539 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 51aee00958..d86f7b8948 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 <= std::numeric_limits<Time>::epsilon());
+ assert(length() - l <= 1.0/1920.0); /* acceptable tolerance is 1/ppqn. Nice if there was no magic number here */
assert(note() == n);
assert(velocity() == v);
assert(_on_event.channel() == _off_event.channel());