Skip to main content

Module edit

Module edit 

Source
Expand description

The edit operations remove_ranges, split_at and bake, which apply data to a project once.

Operations are named for primitives, never for features, and are pure: a project and a request in, a project and a report out, with no I/O. Clips are split so each part continues its source and time map, keyframes move with their clip or transition, timeline-anchored data and caption cues are cut and shifted, transitions whose cut point is removed are removed, and mattes and via bindings follow the part beside them or the edit is refused. Bus curves keep their shape across a cut. Before editing, split_at leaves out cuts it cannot make exactly and remove_ranges refuses them, so a valid request never ends as an invalid result. Kept moments render as before except for reversed parts off the frame grid and the sound at a loop wrap a cut turns into a part boundary. The result validates and is canonical.

Structs§

Created
A clip an operation created by cutting another.
DataRef
A data set an operation reads.
EditFailure
Why apply_json gave no result.
EditReport
What an operation changed, so a caller can show and select it.
EditedJson
An operation’s result as canonical JSON text.
Moved
A kept stretch of timeline that moved.
RangeList
Ranges given in the request.
RawRange
A range as written, before its order is checked.
Skipped
A cut split_at left out.
TimeList
Times given in the request.

Enums§

BakeTarget
One value or caption track to bake.
EditError
Why an operation refused.
EditRequest
One edit operation, applied to a project once.
Ranges
Ranges an operation reads.
Ripple
What closes the gaps a removal leaves.
SkipReason
Why split_at left a cut out.
Target
The clips an operation works on.
Times
Times an operation reads.

Functions§

apply
Applies request to project.
apply_json
Applies the request request_json to the project project_json.