the start (only the start) of MIDI diff commands

git-svn-id: svn://localhost/ardour2/branches/3.0@5637 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis
2009-09-06 18:11:55 +00:00
parent c3c5c9a559
commit 837bfc9af4
9 changed files with 536 additions and 65 deletions

View File

@@ -78,21 +78,20 @@ Note<Time>::~Note()
{
}
template<typename Time>
const Note<Time>&
Note<Time>::operator=(const Note<Time>& copy)
Note<Time>::operator=(const Note<Time>& other)
{
_on_event = copy._on_event;
_off_event = copy._off_event;
_on_event = other._on_event;
_off_event = other._off_event;
assert(time() == copy.time());
assert(end_time() == copy.end_time());
assert(note() == copy.note());
assert(velocity() == copy.velocity());
assert(length() == copy.length());
assert(time() == other.time());
assert(end_time() == other.end_time());
assert(note() == other.note());
assert(velocity() == other.velocity());
assert(length() == other.length());
assert(_on_event.channel() == _off_event.channel());
assert(channel() == copy.channel());
assert(channel() == other.channel());
return *this;
}