MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_repeat()

void MayaFlux::Kakshya::CursorAccessProcessor::set_repeat ( const std::shared_ptr< const Kinesis::TimeMap > &  length)

Restart the time map over and over, with a length that can change.

Needs a time map. The length map takes seconds since the last reset() and returns how long, in seconds, the repeat that starts then should last. It is evaluated once per repeat. Each repeat restarts the time map from zero and plays its first stretch of that length, with the jump back exact to the frame, so a shrinking length gives a stutter or bouncing repeat. Passing the map already set is a no-op.

Parameters
lengthRepeat length in seconds, or null for no repeating.

Definition at line 259 of file CursorAccessProcessor.cpp.

260{
261 if (length == m_repeat)
262 return;
263
265 m_repeat_start = 0;
266 m_repeat_length = 0;
267}
uint64_t length
Definition Composite.cpp:11
std::shared_ptr< const Kinesis::TimeMap > m_repeat

References length, m_repeat, m_repeat_length, and m_repeat_start.