Handle shrinked automation patterns correctly

This commit is contained in:
Hyunin Song
2017-11-26 21:02:07 +09:00
parent 46ef3c6a11
commit 72dcefc5f2

View File

@@ -296,6 +296,9 @@ AutomatedValueMap TrackContainer::automatedValuesFromTracks(const TrackList &tra
continue;
}
MidiTime relTime = time - p->startPosition();
if (! p->getAutoResize()) {
relTime = qMin(relTime, p->length());
}
float value = p->valueAt(relTime);
for (AutomatableModel* model : p->objects())