AutomationLine time-unit conversion and paste API update

This fixes copy/paste of MIDI automation (time-unit: beat) from/to
Parameter automation (time-unit: samples).

It also fixes repeatedly pasting with tempo-ramps: pre-multiply length
before converting to samples.
This commit is contained in:
Robin Gareus 2017-04-26 16:21:39 +02:00
parent 8bb26628e3
commit 0b5db91ee9
6 changed files with 61 additions and 9 deletions

View file

@ -1652,7 +1652,7 @@ ControlList::clear (double start, double end)
/** @param pos Position in model coordinates */
bool
ControlList::paste (const ControlList& alist, double pos, float /*times*/)
ControlList::paste (const ControlList& alist, double pos)
{
if (alist._events.empty()) {
return false;