_off_event.buffer()[1] = n;
_off_event.buffer()[2] = 0x40;
- assert(time() == t);
+ assert(musical_time_equal (time(),t));
assert(musical_time_equal (length(), l));
assert(note() == n);
assert(velocity() == v);
_off_event.buffer = _off_event_buffer;
memcpy(_off_event_buffer, copy._off_event_buffer, 3);
*/
-
- assert(time() == copy.time());
- assert(end_time() == copy.end_time());
+
+ assert(musical_time_equal (time(),copy.time()));
+ assert(musical_time_equal (end_time(), copy.end_time()));
+ assert(musical_time_equal (length(), copy.length()));
assert(note() == copy.note());
assert(velocity() == copy.velocity());
- assert(length() == copy.length());
assert(_on_event.channel() == _off_event.channel());
assert(channel() == copy.channel());
}
_on_event = other._on_event;
_off_event = other._off_event;
- assert(time() == other.time());
- assert(end_time() == other.end_time());
+ assert(musical_time_equal (time(),other.time()));
+ assert(musical_time_equal (end_time(), other.end_time()));
+ assert(musical_time_equal (length(), other.length()));
assert(note() == other.note());
assert(velocity() == other.velocity());
- assert(length() == other.length());
assert(_on_event.channel() == _off_event.channel());
assert(channel() == other.channel());