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

◆ operator*()

MAYAFLUX_API std::shared_ptr< Nodes::Node > MayaFlux::operator* ( const std::shared_ptr< Nodes::Node > &  lhs,
const std::shared_ptr< Nodes::Node > &  rhs 
)

Combines two nodes in parallel (multiplication)

Parameters
lhsFirst node
rhsSecond node
Returns
A BinaryOpNode that multiplies both outputs

Creates a new node that processes both input nodes and multiplies their outputs. This is useful for amplitude modulation, scaling operations, and other multiplicative transformations:

auto modulated = carrier * modulator;

The resulting node takes an input, passes it to both source nodes, and returns the product of their outputs.

Definition at line 371 of file Graph.cpp.

372{
373 auto manager = get_node_graph_manager();
374 auto result = std::make_shared<Nodes::BinaryOpNode>(
375 lhs, rhs, [](double a, double b) { return a * b; }, *manager);
376 result->initialize();
377 return result;
378}
size_t a
size_t b
std::shared_ptr< Nodes::NodeGraphManager > get_node_graph_manager()
Gets the node graph manager from the default engine.
Definition Graph.cpp:35

References a, b, and get_node_graph_manager().

+ Here is the call graph for this function: