I'm a software developer working on an application which takes a Final Cut Pro 7 xml file as input, and reads the audio in that XML file (for reporting purposes).
For any given
<clipitem> which represents an audio file there is often an
<effect> which represents audio levels. The audio level
<effect> element has a child
<parameter> element which contains multiple
<filter> <effect> <name>Audio Levels</name> <effectid>audiolevels</effectid> <effectcategory>audiolevels</effectcategory> <effecttype>audiolevels</effecttype> <mediatype>audio</mediatype> <parameter> <name>Level</name> <parameterid>level</parameterid> <valuemin>0</valuemin> <valuemax>3.98109</valuemax> <keyframe> <when>0</when> <value>0</value> </keyframe> <keyframe> <when>94.1429</when> <value>0.125893</value> </keyframe> </parameter> </effect> </filter>
I need to figure out what the audio level at any given point in time is for the given
What I don't get is that the
<clipitem> may have
<start> set to 1757 and
<end> set to 2523. That's a duration of 766 frames.
However, for that very same clip I see the below which to me indicates that the audio level changes to 0.0562341 in frame 1252.57.
<keyframe> <when>1252.57</when> <value>0.0562341</value> </keyframe>
How can a keyframe occur at 1252.57 for a clip that has a duration of 766 frames?
The documentation says...
The first keyframe always has a value of 0 for when, and the last keyframe always has the duration of the clipitem as the value for when