Skip to main content

attribute_spans

Function attribute_spans 

Source
pub fn attribute_spans(
    voices: &impl Voices,
    spans: &[Option<Range<u64>>],
) -> Vec<Option<Label>>
Expand description

Asks a track who owned each paragraph, skipping the ones nobody timed.

A paragraph without a span has no audio to point at. Passing some other span in its place would still get a confident answer, about somebody else’s audio, so it is left None for the settling pass to fill from a neighbour.