Animating pauses only between words, not at start or end of recording

This commit is contained in:
Daniel Wolf 2016-08-11 16:03:24 +02:00
parent a632e7a3b3
commit 8fd78d63cf
1 changed files with 1 additions and 0 deletions

View File

@ -176,6 +176,7 @@ Timeline<Shape> animatePauses(const ContinuousTimeline<Shape>& shapes) {
// Don't close mouth for short pauses
for (const auto& timedShape : shapes) {
if (timedShape.getValue() != X) continue;
if (timedShape.getStart() == 0_cs || timedShape.getEnd() == shapes.getRange().getEnd()) continue;
const centiseconds maxPausedOpenMouthDuration = 35_cs;
const TimeRange timeRange = timedShape.getTimeRange();