Closed orchetect closed 1 year ago
Fraction
needs isNegative
, negate()
and negated()
Timecode
rational inits need inline docs updated to clarify that negative fractions are possible but may throw an errorTimecodeInterval
needs init from Fraction
TimecodeInterval
needs rationalValue
propertyFraction
extension could use toTimecodeInterval
category methodDone. Will be in 1.6.3 release.
In Final Cut Pro XML (FCPXML) it's possible to encounter "negative" time values.
In this case, a chapter marker inserted on a clip has a thumbnail location (posterOffset) that is earlier on the timeline than the marker's position. It's expressed as the delta distance (offset) from the marker's position. In this case, with an additional negative "-" sign prior to it.
This would be formed in TimecodeKit by constructing
Fraction(-80163, 720000)
Timecode
should be able to process negative rational times and return an instance ofTimecodeInterval
in the event the time is negative.