cutcutcodec.core.filter.cut.FilterCut

class cutcutcodec.core.filter.cut.FilterCut[source]

Splits the stream at the given positions.

Attributes

limitslist[Fraction]

The ordered limits of each slices in seconds (readonly).

init(in_streams: Iterable[Stream], stream_cls: type, *limits: Real)[source]

Initialise and create the class.

Parameters

in_streamstyping.Iterable[Stream]

Transmitted to cutcutcodec.core.classes.filter.Filter.

stream_clstype

A subclass of cutcutcodec.core.classes.stream.Stream. It is the constructor of the out_streams of self.

limitsnumbers.Real

The temporal limits between the differents slices. The timings are like a duration relative to the beginning of the first stream.

Returns

_limitslist[Fraction]

The verificated limits.

out_streamslist[cutcutcodec.core.classes.stream.Stream]

The instanciated out streams

property limits

Return the ordered limits of each slices in seconds.