Calculate length_beats of split MIDI regions from 'parent' region.
commitf20af6610711555e06dd1d6edf9a26240a25087f
authordrobilla <drobilla@d708f5d6-7413-0410-9779-e7cbd77b26cf>
Wed, 22 Dec 2010 00:48:59 +0000 (22 00:48 +0000)
committerdrobilla <drobilla@d708f5d6-7413-0410-9779-e7cbd77b26cf>
Wed, 22 Dec 2010 00:48:59 +0000 (22 00:48 +0000)
tree5daa2d7fcf1b662b7c643c15e55f3e83b3590c8e
parent9a302211f5c997de9253d29082e2b766313027d2
Calculate length_beats of split MIDI regions from 'parent' region.

This is probably less than ideal, since setting the properties later will
recompute from frames values.  It is, however, slightly more rightish :)

Seemingly correct cases (i.e. where length_beats is correct):
 * Recording a new MIDI region
 * Splitting said region

Broken:
 * Loading a region from XML

Untested:
 * Import

git-svn-id: http://subversion.ardour.org/svn/ardour2/ardour2/branches/3.0@8324 d708f5d6-7413-0410-9779-e7cbd77b26cf
libs/ardour/midi_region.cc