Clean up MidiPlaylist::read, kill copy-paste code.
authorDavid Robillard <d@drobilla.net>
Fri, 27 Feb 2015 21:51:09 +0000 (16:51 -0500)
committerDavid Robillard <d@drobilla.net>
Thu, 5 Mar 2015 22:11:24 +0000 (17:11 -0500)
commit09f1571fc0c9dd164601cfd3d12fac31a084b9f6
tree11712d2a224c9353be764d224bc1a10e748dc3c5
parent5bf90524df6a1a6d62fabd83cda7fac393bfdcbc
Clean up MidiPlaylist::read, kill copy-paste code.

Towards putting more advanced logic here, where two copies of everything will
get even more hairy.

The two cases of reading from one or many regions are not very different in the
read phase, the only difference is the target.  So, point a reference to the
appropriate target, use the same read code in either case, then sort/etc
afterwards only if necessary.
libs/ardour/ardour/midi_playlist.h
libs/ardour/midi_playlist.cc