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

◆ Time() [1/2]

MAYAFLUX_API TimeSpec MayaFlux::Time ( double  seconds,
std::vector< uint32_t >  channels 
)

Creates a TimeSpec with the specified duration and a list of channels.

This overload allows specifying multiple channels to activate.

Example usage:

// Activate a processing node for 2 seconds on channels 0 and 1
process_node >> Time(2.0, {0, 1});
TimeSpec Time(double seconds, uint32_t channel)
Creates a TimeSpec with the specified duration and a single channel.
Definition Temporal.cpp:9
Parameters
secondsDuration in seconds.
channelsList of channels to activate.
Returns
A TimeSpec object representing the specified duration and channels.

Definition at line 14 of file Temporal.cpp.

15{
16 return { seconds, std::move(channels) };
17}