Improved timing of bilabial stops ("B", "P")
This commit is contained in:
parent
c566ac56cc
commit
b62fe8af98
|
@ -41,10 +41,12 @@ Timeline<Viseme> animate(optional<Phone> phone, centiseconds duration, centiseco
|
||||||
};
|
};
|
||||||
|
|
||||||
auto bilabialStop = [&]() {
|
auto bilabialStop = [&]() {
|
||||||
centiseconds closedDuration = clamp(previousPhoneDuration / 2, 4cs, 16cs);
|
centiseconds maxDuration = 12cs;
|
||||||
|
centiseconds leftOverlap = clamp(previousPhoneDuration / 2, 4cs, maxDuration);
|
||||||
|
centiseconds rightOverlap = min(duration, maxDuration - leftOverlap);
|
||||||
return Timeline<Viseme>{
|
return Timeline<Viseme>{
|
||||||
{ -closedDuration, 0cs, { A } },
|
{ -leftOverlap, rightOverlap, { A } },
|
||||||
{ 0cs, duration, {{ B, C, D, E, F }} }
|
{ rightOverlap, duration, {{ B, C, D, E, F }} }
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue