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

◆ route_node() [1/2]

MAYAFLUX_API void MayaFlux::route_node ( const std::shared_ptr< Nodes::Node > &  node,
const std::vector< uint32_t > &  channels,
double  seconds_to_fade = 1.F,
const Nodes::ProcessingToken token = Nodes::ProcessingToken::AUDIO_RATE 
)

@breif Moves the node from its current channel(s) to the specified channel(s) with an optional fade time

Parameters
nodeNode to route
channelsVector of channel indices to route the node to
seconds_to_fadeTime in seconds to fade the routing (optional, default is 1 second)
tokenProcessing domain to route within (default is AUDIO_RATE)

This method adds the specified node to the root nodes of the target channels within the given processing domain. If seconds_to_fade is greater than 0, the routing will be smoothly faded in over that time period.

Definition at line 110 of file Graph.cpp.

115{
116 get_node_graph_manager()->route_node_to_channels(node, channels, seconds_to_samples(seconds_to_fade), token);
117}
std::shared_ptr< Nodes::NodeGraphManager > get_node_graph_manager()
Gets the node graph manager from the default engine.
Definition Graph.cpp:35
uint64_t seconds_to_samples(double seconds)
Converts a time duration in seconds to the equivalent number of audio samples.
Definition Chronie.cpp:244

References get_node_graph_manager(), and seconds_to_samples().

+ Here is the call graph for this function: