libtcspc.RetimePeriodicSequences¶
- final class libtcspc.RetimePeriodicSequences(max_time_shift, numeric_traits=None)[source]¶
Bases:
NodeProcessor that normalizes the abstime of periodic sequence model events.
Adjusts the
abstimeanddelayof eachPeriodicSequenceModelEventso the abstime precedes the modeled tick sequence, without altering the sequence. OnlyPeriodicSequenceModelEventis accepted.- Parameters:
max_time_shift (int or Param[int]) – Maximum allowed abstime shift (non-negative); exceeding it is an error.
numeric_traits (NumericTraits or None) – Numeric traits specifying
abstime_type. Defaults toNumericTraits().
Notes
Events handled:
PeriodicSequenceModelEvent: emit aPeriodicSequenceModelEventwith adjustedabstimeanddelay. This is the only accepted input event type.End of input: pass through.
See also
- tcspc::retime_periodic_sequences()
The underlying C++ factory function.