TimedValueControlSource#
Superclasses: ControlSource
, Object
, InitiallyUnowned
, Object
Subclasses: InterpolationControlSource
, TriggerControlSource
Base class for ControlSource
that use time-stamped values.
When overriding bind, chain up first to give this bind implementation a chance to setup things.
All functions are MT-safe.
Methods#
- class TimedValueControlSource
- find_control_point_iter(timestamp: int) SequenceIter | None #
Find last value before given timestamp in control point list. If all values in the control point list come after the given timestamp or no values exist,
None
is returned.For use in control source implementations.
- Parameters:
timestamp – the search key
- get_all() list[TimedValue] #
Returns a read-only copy of the list of
TimedValue
for the given property. Free the list after done with it.
- set(timestamp: int, value: float) bool #
Set the value of given controller-handled property at a certain time.
- Parameters:
timestamp – the time the control-change is scheduled for
value – the control-value
- set_from_list(timedvalues: list[TimedValue]) bool #
Sets multiple timed values at once.
- Parameters:
timedvalues – a list with
TimedValue
items
Signals#
- class TimedValueControlSource.signals
- value_added(timed_value: ControlPoint) None #
The type of the None singleton.
Added in version 1.6.
- Parameters:
timed_value – The newly added
TimedValue
- value_changed(timed_value: ControlPoint) None #
The type of the None singleton.
Added in version 1.6.
- Parameters:
timed_value – The
TimedValue
where the value changed
- value_removed(timed_value: ControlPoint) None #
The type of the None singleton.
Added in version 1.6.
- Parameters:
timed_value – The removed
TimedValue