Don't allocate then discard notes on note off.
authorDavid Robillard <d@drobilla.net>
Thu, 19 Feb 2015 20:55:16 +0000 (15:55 -0500)
committerDavid Robillard <d@drobilla.net>
Thu, 19 Feb 2015 23:38:30 +0000 (18:38 -0500)
commit6fb4bd578ef30fc65c06b98c32a3278d9c443696
tree084ccbd67707e7683b931fc7c234458cf00f4182
parent6a033a093b0ff48691352b98dc89ef20c557a4e8
Don't allocate then discard notes on note off.

Silly to make a junk Note just to pass to append_note_off_unlocked, which just
uses the fields that are on the MIDIEvent anyway then throws it away.

Also explicitly dispatch to append_note_off_unlocked in the caller for note ons
with velocity 0 rather than make append_note_on_unlocked deal with it.
libs/evoral/evoral/Sequence.hpp
libs/evoral/src/Sequence.cpp