Interpolating act information
Acts are time-based definition on how a story evolves emotionally, dramatically, and how big the probability is to switch between a perspective (antagonist/protagonist). The function calculates the values for the actual time and stores them in the $style array:
$this->style[acts][wp] %
$this->style[acts][drama] x,y
$this->style[acts][emo] x,y
$this->style[acts][nr_db] = id
$this->style["actduration"]
$this->style["distance_from_actstart"]
The key ["acts"] in the $this->_style array is therefore always updated by the _interpolate_acts function. For further processing of the timeline, every frame has a distinctive set of act data prepared. E. g., if there is a long piece of material on the timeline, the dramatical and emotional value defined by the act database changes more drastically than for a short piece.
/* Setting up Act-Array
*/
if ($this->_interpolate_acts()) echo $this->ac_LOG("Act data interpolated.");
else $this->ac_ERR("Failed to interpolate act data.");

